AliRoot Core  edcc906 (edcc906)
AliFMDCalibDrawer.h
Go to the documentation of this file.
1 #ifndef ALIFMDCALIBDRAWER_H
2 #define ALIFMDCALIBDRAWER_H
3 #include <TObject.h>
4 class TH2D;
5 class TH1D;
6 class TH1;
7 
8 class AliFMDCalibDrawer : public TObject
9 {
10 public:
14  enum EWhat {
22  };
23 
31  void Init(Int_t runNo, const char* ocdb=0);
40  void DrawPedestals(Short_t d=-1, Char_t r='\0',
41  Short_t s=-1, Short_t t=-1) const
42  {
43  DrawOne(kPedestal, d, r, s, t);
44  }
53  void DrawNoise(Short_t d=-1, Char_t r='\0',
54  Short_t s=-1, Short_t t=-1) const
55  {
56  DrawOne(kNoise, d, r, s, t);
57  }
66  void DrawGains(Short_t d=-1, Char_t r='\0',
67  Short_t s=-1, Short_t t=-1) const
68  {
69  DrawOne(kGain, d, r, s, t);
70  }
79  void DrawDead(Short_t d=-1, Char_t r='\0', Short_t s=-1, Short_t t=-1) const
80  {
81  DrawOne(kDead, d, r, s, t);
82  }
83 
84  void DrawRates(Short_t d=-1, Char_t r='\0', Short_t s=-1, Short_t t=-1) const
85  {
86  DrawOne(kRate, d, r, s, t);
87  }
88  void DrawRanges(Short_t d=-1, Char_t r='\0', Short_t s=-1, Short_t t=-1) const
89  {
90  DrawOne(kRange, d, r, s, t);
91  }
92  void DrawThresholds(Short_t d=-1, Char_t r='\0', Short_t s=-1,
93  Short_t t=-1) const
94  {
95  DrawOne(kZeroSuppression, d, r, s, t);
96  }
106  void DrawOne(EWhat what, Short_t d=-1, Char_t r='\0',
107  Short_t s=-1, Short_t t=-1) const;
108 protected:
109  void SetAttributes(TH1* ret, EWhat what, UShort_t d, Char_t r) const;
110  Double_t GetHistMax(EWhat what) const;
111  Double_t GetHistMin(EWhat what) const;
119  const char* GetHistName(EWhat what) const;
127  const char* GetHistTitle(EWhat what) const;
139  void GetNumber(EWhat what, UShort_t d, Char_t r, UShort_t s, UShort_t t,
140  Double_t& val, Double_t& err) const;
151  TH1D* Make1D(EWhat what, UShort_t d, Char_t r, UShort_t s) const;
161  TH2D* Make2D(EWhat what, UShort_t d, Char_t r) const;
171  TH1* FillRing(EWhat what, UShort_t d, Char_t r) const;
182  TH1* FillSector(EWhat what, UShort_t d, Char_t r, UShort_t s) const;
183 
184  Int_t GetRingColor(UShort_t d, Char_t r) const;
185  ClassDef(AliFMDCalibDrawer,0); // Draw calibrations
186 };
187 #endif
188 // Local Variables:
189 // mode: C++
190 // End:
191 
void DrawDead(Short_t d=-1, Char_t r='\0', Short_t s=-1, Short_t t=-1) const
TH1 * FillSector(EWhat what, UShort_t d, Char_t r, UShort_t s) const
Double_t GetHistMin(EWhat what) const
void DrawGains(Short_t d=-1, Char_t r='\0', Short_t s=-1, Short_t t=-1) const
void DrawPedestals(Short_t d=-1, Char_t r='\0', Short_t s=-1, Short_t t=-1) const
Int_t GetRingColor(UShort_t d, Char_t r) const
void DrawNoise(Short_t d=-1, Char_t r='\0', Short_t s=-1, Short_t t=-1) const
TH1D * Make1D(EWhat what, UShort_t d, Char_t r, UShort_t s) const
void DrawRates(Short_t d=-1, Char_t r='\0', Short_t s=-1, Short_t t=-1) const
void DrawOne(EWhat what, Short_t d=-1, Char_t r='\0', Short_t s=-1, Short_t t=-1) const
void SetAttributes(TH1 *ret, EWhat what, UShort_t d, Char_t r) const
void GetNumber(EWhat what, UShort_t d, Char_t r, UShort_t s, UShort_t t, Double_t &val, Double_t &err) const
const char * GetHistTitle(EWhat what) const
Double_t GetHistMax(EWhat what) const
void DrawRanges(Short_t d=-1, Char_t r='\0', Short_t s=-1, Short_t t=-1) const
void DrawThresholds(Short_t d=-1, Char_t r='\0', Short_t s=-1, Short_t t=-1) const
TH1 * FillRing(EWhat what, UShort_t d, Char_t r) const
TH2D * Make2D(EWhat what, UShort_t d, Char_t r) const
const char * GetHistName(EWhat what) const
void Init(Int_t runNo, const char *ocdb=0)