AliPhysics  64f4410 (64f4410)
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 #include <TProfile2D.h>
7 class TCanvas;
8 
9 #ifndef _LINFO_
10 #define _LINFO_
11 class LInfo : public TObject {
12  public:
14  virtual ~LInfo() {;}
15  void Compute();
16  TCanvas *DrawHist(Int_t which, Int_t gain=1, const char *opt=0) const;
17  TProfile *GetStripHist(Int_t sm, Int_t gain=1) const { return fhStrip[sm][gain]; }
18  TProfile *GetStripRmsHist(Int_t sm, Int_t gain=1) const { return fhStripCount[sm][gain]; }
19  TProfile *GetStripWeightedHist(Int_t sm, Int_t gain=1) const { return fhStripWeighted[sm][gain]; }
20  TProfile *GetLedMonHist(Int_t sm, Int_t gain=1) const { return GetStripHist(sm,gain); }
21  TProfile *GetLedMonRmsHist(Int_t sm, Int_t gain=1) const { return GetStripRmsHist(sm,gain); }
22  TProfile *GetLedMonWeightedHist(Int_t sm, Int_t gain=1)const { return GetStripWeightedHist(sm,gain); }
23  TProfile2D *GetLedHist(Int_t sm, Int_t gain=1) const { return fhLed[sm][gain]; }
24  TProfile2D *GetLedRmsHist(Int_t sm, Int_t gain=1) const { return fhLedCount[sm][gain]; }
25  TProfile2D *GetLedWeightedHist(Int_t sm, Int_t gain=1) const { return fhLedWeighted[sm][gain]; }
26  TH2 *GetLedOverMonHist(Int_t sm, Int_t gain=1) const { return fhAmpOverMon[sm][gain]; }
27  TH1 *GetLedMonDispHist(Int_t sm, Int_t gain=1) const { return fhStripRmsOverMean[sm][gain]; }
28  TH2 *GetLedDispHist(Int_t sm, Int_t gain=1) const { return fhLedRmsOverMean[sm][gain]; }
29  const char *GetName() const { return Form("LEDInfo_%d",fRunNo); }
30  Int_t GetRunNo() const { return fRunNo; }
31  void FillLed(Int_t mod,Int_t gain, Int_t col, Int_t row, Double_t amp, Double_t rms);
32  void FillStrip(Int_t mod,Int_t gain, Int_t strip, Double_t amp, Double_t rms);
33  Double_t FracLeds(Int_t sm, Int_t gain=1) const;
34  Double_t FracStrips(Int_t sm, Int_t gain=1) const;
35  void Print(Option_t *option="") const;
36 
37  static const Int_t kNSM = 20;
38  static Int_t NSM() { return kNSM; }
39  static Int_t NCol() { return 48; } //eta direction
40  static Int_t NRow() { return 24; } //phi direction
41  static Int_t NStrip() { return NCol()/2; }
42 
43  protected:
44  void CreateHistograms();
45  Int_t fRunNo; // run number
46  TProfile *fhStrip[kNSM][2]; // LedMon average
47  TProfile *fhStripCount[kNSM][2]; // LedMon rms
48  TProfile *fhStripWeighted[kNSM][2]; // LedMon weighted average
49  TProfile2D *fhLed[kNSM][2]; // Led average
50  TProfile2D *fhLedCount[kNSM][2]; // Led rms
51  TProfile2D *fhLedWeighted[kNSM][2]; // Led weighted average
56  ClassDef(LInfo, 3); // LED info class
57 };
58 #endif
59 #endif
TProfile * fhStripWeighted[kNSM][2]
Definition: LInfo.h:48
double Double_t
Definition: External.C:58
Double_t FracLeds(Int_t sm, Int_t gain=1) const
Definition: LInfo.cxx:224
TH1 * GetLedMonDispHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:27
TCanvas * DrawHist(Int_t which, Int_t gain=1, const char *opt=0) const
Definition: LInfo.cxx:145
TProfile * fhStripCount[kNSM][2]
Definition: LInfo.h:47
TProfile * fhStrip[kNSM][2]
Definition: LInfo.h:46
void Print(Option_t *option="") const
Definition: LInfo.cxx:272
virtual ~LInfo()
Definition: LInfo.h:14
TH2 * fhAmpOverMon[kNSM][2]
Definition: LInfo.h:52
static Int_t NCol()
Definition: LInfo.h:39
LInfo(Int_t rn=0)
Definition: LInfo.h:13
const char * GetName() const
Definition: LInfo.h:29
Definition: LInfo.h:11
TProfile2D * fhLedCount[kNSM][2]
Definition: LInfo.h:50
TProfile * GetStripWeightedHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:19
TProfile * GetLedMonRmsHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:21
TProfile2D * fhLedWeighted[kNSM][2]
Definition: LInfo.h:51
int Int_t
Definition: External.C:63
Bool_t fIsComputed
RMS over Mean for Led.
Definition: LInfo.h:55
static Int_t NStrip()
Definition: LInfo.h:41
void FillLed(Int_t mod, Int_t gain, Int_t col, Int_t row, Double_t amp, Double_t rms)
Definition: LInfo.cxx:134
TProfile2D * GetLedRmsHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:24
void Compute()
Definition: LInfo.cxx:12
Double_t FracStrips(Int_t sm, Int_t gain=1) const
Definition: LInfo.cxx:251
TProfile * GetStripHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:17
TProfile2D * GetLedWeightedHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:25
TProfile * GetLedMonHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:20
TH1 * fhStripRmsOverMean[kNSM][2]
Led/LedMon ratio.
Definition: LInfo.h:53
TProfile * GetLedMonWeightedHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:22
Int_t GetRunNo() const
Definition: LInfo.h:30
static const Int_t kNSM
Definition: LInfo.h:37
TProfile2D * GetLedHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:23
void CreateHistograms()
Definition: LInfo.cxx:82
TH2 * GetLedDispHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:28
Int_t fRunNo
Definition: LInfo.h:45
void FillStrip(Int_t mod, Int_t gain, Int_t strip, Double_t amp, Double_t rms)
Definition: LInfo.cxx:210
Definition: External.C:220
TProfile * GetStripRmsHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:18
const char Option_t
Definition: External.C:48
TH2 * fhLedRmsOverMean[kNSM][2]
RMS over Mean for LedMon.
Definition: LInfo.h:54
bool Bool_t
Definition: External.C:53
TProfile2D * fhLed[kNSM][2]
Definition: LInfo.h:49
static Int_t NSM()
Definition: LInfo.h:38
Definition: External.C:196
TH2 * GetLedOverMonHist(Int_t sm, Int_t gain=1) const
Definition: LInfo.h:26
static Int_t NRow()
Definition: LInfo.h:40