AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTriggerDisplay Class Reference

Converts histograms as a function of strip/board/slat number in human readable histograms. More...

#include <AliMUONTriggerDisplay.h>

Inheritance diagram for AliMUONTriggerDisplay:

Public Types

enum  EDisplayType { kDisplayStrips, kDisplayBoards, kDisplaySlats }
 Display element inidices (strip,board,slat) More...
 
enum  EDisplayOption { kDefaultDisplay, kNumbered, kShowZeroes, kNormalizeToArea }
 Display options inidices. More...
 

Public Member Functions

 AliMUONTriggerDisplay ()
 
virtual ~AliMUONTriggerDisplay ()
 
TH2 * GetEmptyDisplayHisto (TString displayHistoName, EDisplayType displayType, Int_t cathode, Int_t chamber=11, TString displayHistoTitle="")
 
TH2 * GetBoardNumberHisto (TString displayHistoName, Int_t chamber=11, TString displayHistoTitle="")
 
TH2 * GetDisplayHistogram (TH1 *inputHisto, TString displayHistoName, EDisplayType displayType, Int_t cathode, Int_t chamber=11, TString displayHistoTitle="", EDisplayOption displayOpt=kDefaultDisplay)
 
TH2 * GetDisplayHistogram (TGraph *inputGraph, TString displayHistoName, EDisplayType displayType, Int_t cathode, Int_t chamber=11, TString displayHistoTitle="", EDisplayOption displayOpt=kDefaultDisplay)
 
Bool_t FillDisplayHistogram (TH1 *inputHisto, TH2 *displayHisto, EDisplayType displayType, Int_t cathode, Int_t chamber=11, EDisplayOption displayOpt=kDefaultDisplay)
 
Bool_t FillDisplayHistogram (TGraph *inputGraph, TH2 *displayHisto, EDisplayType displayType, Int_t cathode, Int_t chamber=11, EDisplayOption displayOpt=kDefaultDisplay)
 

Private Member Functions

Bool_t AddSortedPoint (Float_t currVal, TArrayD &position, const Float_t kResetValue)
 
Int_t GetIndex (Int_t chamber, Int_t cathode) const
 Return index. More...
 
Bool_t InitOrDisplayTriggerInfo (TObject *inputHisto, TH2 *displayHisto, EDisplayType displayType, Int_t cathode, Int_t chamber, TString displayHistoName, TString displayHistoTitle, EDisplayOption displayOpt=kDefaultDisplay)
 
void FillBins (TObject *inputHisto, TH2 *displayHisto, Int_t iElement1, Int_t iElement2, Float_t x1, Float_t x2, Float_t y1, Float_t y2, const Float_t kShiftX, const Float_t kShiftY, EDisplayOption displayOpt)
 

Detailed Description

Converts histograms as a function of strip/board/slat number in human readable histograms.

MUON base class for converting histos as a function of strip/board/slat number into display histos showing the detection element position in the trigger chamber.

Input histos can be given as:

  • TH2 with x -> board # [1-234] and y -> strip # in board [0-15]. Option: kDisplayStrips
  • TH1 with x -> board # [1-234] Option: kDisplayBoards
  • TH1 with x -> slat # [0-17] Option: kDisplaySlats
Author
D. Stocco

Definition at line 22 of file AliMUONTriggerDisplay.h.

Member Enumeration Documentation

Display options inidices.

Enumerator
kDefaultDisplay 

Default display.

kNumbered 

Histogram filled with board numbers.

kShowZeroes 

Displays strip/board/slat content even if it is 0.

kNormalizeToArea 

Draw input histo divided by element area.

Definition at line 36 of file AliMUONTriggerDisplay.h.

Display element inidices (strip,board,slat)

Enumerator
kDisplayStrips 

Draw strips.

kDisplayBoards 

Draw boards.

kDisplaySlats 

Draw slats.

Definition at line 29 of file AliMUONTriggerDisplay.h.

Constructor & Destructor Documentation

AliMUONTriggerDisplay::AliMUONTriggerDisplay ( )

ctor

Definition at line 56 of file AliMUONTriggerDisplay.cxx.

AliMUONTriggerDisplay::~AliMUONTriggerDisplay ( )
virtual

dtor

Definition at line 63 of file AliMUONTriggerDisplay.cxx.

Member Function Documentation

Bool_t AliMUONTriggerDisplay::AddSortedPoint ( Float_t  currVal,
TArrayD &  position,
const Float_t  kResetValue 
)
private

Add sorted point in array according to an increasing order. Used to build display histograms axis.

Definition at line 416 of file AliMUONTriggerDisplay.cxx.

Referenced by InitOrDisplayTriggerInfo().

void AliMUONTriggerDisplay::FillBins ( TObject *  inputHisto,
TH2 *  displayHisto,
Int_t  iElement1,
Int_t  iElement2,
Float_t  x1,
Float_t  x2,
Float_t  y1,
Float_t  y2,
const Float_t  kShiftX,
const Float_t  kShiftY,
EDisplayOption  displayOpt 
)
private

Given the bin in inputHisto, search the corresponding bins in display histo and fill it.

Definition at line 447 of file AliMUONTriggerDisplay.cxx.

Referenced by InitOrDisplayTriggerInfo().

Bool_t AliMUONTriggerDisplay::FillDisplayHistogram ( TH1 *  inputHisto,
TH2 *  displayHisto,
EDisplayType  displayType,
Int_t  cathode,
Int_t  chamber = 11,
EDisplayOption  displayOpt = kDefaultDisplay 
)

Fill a previously initialized display histogram with the information contained in inputHisto. To get initialized display, please use GetEmptyDisplayHisto method

Definition at line 148 of file AliMUONTriggerDisplay.cxx.

Referenced by AliMUONTriggerQADataMakerRec::DisplayTriggerInfo(), GetBoardNumberHisto(), and GetDisplayHistogram().

Bool_t AliMUONTriggerDisplay::FillDisplayHistogram ( TGraph *  inputGraph,
TH2 *  displayHisto,
EDisplayType  displayType,
Int_t  cathode,
Int_t  chamber = 11,
EDisplayOption  displayOpt = kDefaultDisplay 
)

Fill a previously initialized display histogram with the information contained in inputGraph. To get initialized display, please use GetEmptyDisplayHisto method

Definition at line 162 of file AliMUONTriggerDisplay.cxx.

TH2 * AliMUONTriggerDisplay::GetBoardNumberHisto ( TString  displayHistoName,
Int_t  chamber = 11,
TString  displayHistoTitle = "" 
)

Return the display histogram with optimized binning and fill it with the board number

Definition at line 88 of file AliMUONTriggerDisplay.cxx.

Referenced by AliMUONTriggerChamberEfficiency::DisplayEfficiency().

TH2 * AliMUONTriggerDisplay::GetDisplayHistogram ( TH1 *  inputHisto,
TString  displayHistoName,
EDisplayType  displayType,
Int_t  cathode,
Int_t  chamber = 11,
TString  displayHistoTitle = "",
EDisplayOption  displayOpt = kDefaultDisplay 
)

Get histogram displaying the information contained in the input histogram

Definition at line 114 of file AliMUONTriggerDisplay.cxx.

Referenced by AliMUONTriggerChamberEfficiency::DisplayEfficiency().

TH2 * AliMUONTriggerDisplay::GetDisplayHistogram ( TGraph *  inputGraph,
TString  displayHistoName,
EDisplayType  displayType,
Int_t  cathode,
Int_t  chamber = 11,
TString  displayHistoTitle = "",
EDisplayOption  displayOpt = kDefaultDisplay 
)

Get histogram displaying the information contained in the input graph

Definition at line 131 of file AliMUONTriggerDisplay.cxx.

TH2 * AliMUONTriggerDisplay::GetEmptyDisplayHisto ( TString  displayHistoName,
EDisplayType  displayType,
Int_t  cathode,
Int_t  chamber = 11,
TString  displayHistoTitle = "" 
)

Return the display histogram with optimized binning but do not fill it.

Definition at line 70 of file AliMUONTriggerDisplay.cxx.

Referenced by GetBoardNumberHisto(), GetDisplayHistogram(), and AliMUONTriggerQADataMakerRec::InitRaws().

Int_t AliMUONTriggerDisplay::GetIndex ( Int_t  chamber,
Int_t  cathode 
) const
inlineprivate

Return index.

Definition at line 71 of file AliMUONTriggerDisplay.h.

Bool_t AliMUONTriggerDisplay::InitOrDisplayTriggerInfo ( TObject *  inputHisto,
TH2 *  displayHisto,
EDisplayType  displayType,
Int_t  cathode,
Int_t  chamber,
TString  displayHistoName,
TString  displayHistoTitle,
EDisplayOption  displayOpt = kDefaultDisplay 
)
private

Initialize trigger information display histograms using mapping Trigger information is displayed in a user-friendly way: from local board and strip numbers to their position on chambers.

Load mapping

Definition at line 176 of file AliMUONTriggerDisplay.cxx.

Referenced by FillDisplayHistogram(), and GetEmptyDisplayHisto().


The documentation for this class was generated from the following files: