AliPhysics  754e963 (754e963)
LInfo.h
Go to the documentation of this file.
1 #if !defined(__CINT__) || defined(__MAKECINT__)
2 #include <Riostream.h>
3 #include <TArrayF.h>
4 #include <TObject.h>
5 #include <TString.h>
6 
7 class TH1;
8 class TH2;
9 class TCanvas;
10 
11 #ifndef _LINFO_
12 #define _LINFO_
13 class LInfo : public TObject {
14  public:
16  virtual ~LInfo() {;}
17  void Compute();
18  TCanvas *DrawHist(Int_t which, Int_t gain=1, const char *opt=0) const;
19  TH1 *GetStripHist(Int_t sm, Int_t gain=1) const { return fhStrip[sm][gain]; }
20  TH1 *GetStripRmsHist(Int_t sm, Int_t gain=1) const { return fhStripCount[sm][gain]; }
21  TH1 *GetLedMonHist(Int_t sm, Int_t gain=1) const { return fhStrip[sm][gain]; }
22  TH1 *GetLedMonRmsHist(Int_t sm, Int_t gain=1) const { return fhStripCount[sm][gain]; }
23  TH2 *GetLedHist(Int_t sm, Int_t gain=1) const { return fhLed[sm][gain]; }
24  TH2 *GetLedRmsHist(Int_t sm, Int_t gain=1) const { return fhLedCount[sm][gain]; }
25  TH2 *GetLedOverMonHist(Int_t sm, Int_t gain=1) const { return fhAmpOverMon[sm][gain]; }
26  TH1 *GetLedMonDispHist(Int_t sm, Int_t gain=1) const { return fhStripRmsOverMean[sm][gain]; }
27  TH2 *GetLedDispHist(Int_t sm, Int_t gain=1) const { return fhLedRmsOverMean[sm][gain]; }
28  const char *GetName() const { return Form("LEDInfo_%d",fRunNo); }
29  Int_t GetRunNo() const { return fRunNo; }
30  void FillLed(Int_t mod,Int_t gain, Int_t col, Int_t row, Double_t amp, Double_t rms);
31  void FillStrip(Int_t mod,Int_t gain, Int_t strip, Double_t amp, Double_t rms);
32  Double_t FracLeds(Int_t sm, Int_t gain=1) const;
33  Double_t FracStrips(Int_t sm, Int_t gain=1) const;
34  void Print(Option_t *option="") const;
35 
36  static const Int_t kNSM = 20;
37  static Int_t NSM() { return kNSM; }
38  static Int_t NCol() { return 48; } //eta direction
39  static Int_t NRow() { return 24; } //phi direction
40  static Int_t NStrip() { return NCol()/2; }
41 
42  protected:
43  void CreateHistograms();
44  Int_t fRunNo; // run number
45  TH1 *fhStrip[kNSM][2]; // LedMon info
46  TH1 *fhStripCount[kNSM][2]; // LedMon counts
47  TH2 *fhLed[kNSM][2]; // Led info
48  TH2 *fhLedCount[kNSM][2]; // Led counts
53  ClassDef(LInfo, 2); // LED info class
54 };
55 #endif
56 #endif
double Double_t
Definition: External.C:58
Double_t FracLeds(Int_t sm, Int_t gain=1) const
Definition: LInfo.cxx:199
TH1 * GetLedMonDispHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:26
TCanvas * DrawHist(Int_t which, Int_t gain=1, const char *opt=0) const
Definition: LInfo.cxx:128
TH1 * GetStripHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:19
TH1 * GetLedMonRmsHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:22
void Print(Option_t *option="") const
Definition: LInfo.cxx:247
virtual ~LInfo()
Definition: LInfo.h:16
TH2 * fhAmpOverMon[kNSM][2]
Definition: LInfo.h:49
static Int_t NCol()
Definition: LInfo.h:38
LInfo(Int_t rn=0)
Definition: LInfo.h:15
TH1 * fhStripCount[kNSM][2]
Definition: LInfo.h:46
const char * GetName() const
Definition: LInfo.h:28
Definition: LInfo.h:13
TH1 * GetLedMonHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:21
int Int_t
Definition: External.C:63
Bool_t fIsComputed
RMS over Mean for Led.
Definition: LInfo.h:52
static Int_t NStrip()
Definition: LInfo.h:40
void FillLed(Int_t mod, Int_t gain, Int_t col, Int_t row, Double_t amp, Double_t rms)
Definition: LInfo.cxx:122
void Compute()
Definition: LInfo.cxx:11
TH2 * fhLedCount[kNSM][2]
Definition: LInfo.h:48
Double_t FracStrips(Int_t sm, Int_t gain=1) const
Definition: LInfo.cxx:226
TH1 * fhStripRmsOverMean[kNSM][2]
Led/LedMon ratio.
Definition: LInfo.h:50
TH2 * GetLedRmsHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:24
Int_t GetRunNo() const
Definition: LInfo.h:29
static const Int_t kNSM
Definition: LInfo.h:36
void CreateHistograms()
Definition: LInfo.cxx:81
TH1 * GetStripRmsHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:20
TH2 * GetLedDispHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:27
Int_t fRunNo
Definition: LInfo.h:44
TH2 * fhLed[kNSM][2]
Definition: LInfo.h:47
void FillStrip(Int_t mod, Int_t gain, Int_t strip, Double_t amp, Double_t rms)
Definition: LInfo.cxx:193
Definition: External.C:220
TH1 * fhStrip[kNSM][2]
Definition: LInfo.h:45
const char Option_t
Definition: External.C:48
TH2 * fhLedRmsOverMean[kNSM][2]
RMS over Mean for LedMon.
Definition: LInfo.h:51
bool Bool_t
Definition: External.C:53
TH2 * GetLedHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:23
static Int_t NSM()
Definition: LInfo.h:37
Definition: External.C:196
TH2 * GetLedOverMonHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:25
static Int_t NRow()
Definition: LInfo.h:39