![]() |
AliRoot Core
v5-06-15 (45dab64)
|
Converts histograms as a function of strip/board/slat number in human readable histograms. More...
#include <AliMUONTriggerDisplay.h>
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) |
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:
Definition at line 22 of file AliMUONTriggerDisplay.h.
Display options inidices.
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.
AliMUONTriggerDisplay::AliMUONTriggerDisplay | ( | ) |
ctor
Definition at line 56 of file AliMUONTriggerDisplay.cxx.
|
virtual |
dtor
Definition at line 63 of file AliMUONTriggerDisplay.cxx.
|
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().
|
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().
|
inlineprivate |
Return index.
Definition at line 71 of file AliMUONTriggerDisplay.h.
|
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().