AliPhysics  ebc57ae (ebc57ae)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliFMDCorrMergingEfficiency.h
Go to the documentation of this file.
1 //
2 // This class contains the secondary correction and the double hit
3 // correction used in low-flux events.
4 //
5 #ifndef ALIFMDCORRMERGINGEFFICIENCY_H
6 #define ALIFMDCORRMERGINGEFFICIENCY_H
7 
17 #include <TObject.h>
18 #include <TObjArray.h>
19 #include <TAxis.h>
20 class TH1D;
21 
35 {
36 public:
73  TH1D* GetCorrection(UShort_t d, Char_t r, Double_t v) const;
84  TH1D* GetCorrection(UShort_t d, Char_t r, UShort_t b) const;
90  const TAxis& GetVertexAxis() const { return fVertexAxis; }
91  /* @} */
92 
127  void SetVertexAxis(const TAxis& axis);
135  void SetVertexAxis(Int_t nBins, Double_t min, Double_t max);
136  /* @} */
137 
147  Bool_t IsFolder() const { return true; }
153  void Browse(TBrowser* b);
159  void Print(Option_t* option="R") const; //*MENU*
160  /* @} */
161 protected:
170  Int_t FindVertexBin(Double_t vertex) const;
179  Int_t GetRingIndex(UShort_t d, Char_t r) const;
188  TObjArray* GetRingArray(UShort_t d, Char_t r) const;
198 
199  TObjArray fRingArray; // Array of per-ring, per-vertex 2nd map
200  TAxis fVertexAxis; // The vertex axis
202 };
203 
204 //____________________________________________________________________
205 inline void
207  Double_t max)
208 {
209  fVertexAxis.Set(nBins, min, max);
210 }
211 //____________________________________________________________________
212 inline void
214 {
215  fVertexAxis.Set(e.GetNbins(), e.GetXmin(), e.GetXmax());
216 }
217 #endif
218 // Local Variables:
219 // mode: C++
220 // End:
double Double_t
Definition: External.C:58
Bool_t SetCorrection(UShort_t d, Char_t r, Double_t v, TH1D *h)
char Char_t
Definition: External.C:18
ClassDef(AliFMDCorrMergingEfficiency, 1)
TH1D * GetCorrection(UShort_t d, Char_t r, Double_t v) const
int Int_t
Definition: External.C:63
Int_t GetRingIndex(UShort_t d, Char_t r) const
Definition: External.C:212
TObjArray * GetOrMakeRingArray(UShort_t d, Char_t r)
TObjArray * GetRingArray(UShort_t d, Char_t r) const
AliFMDCorrMergingEfficiency & operator=(const AliFMDCorrMergingEfficiency &o)
unsigned short UShort_t
Definition: External.C:28
void Print(Option_t *option="R") const
const char Option_t
Definition: External.C:48
Int_t FindVertexBin(Double_t vertex) const
bool Bool_t
Definition: External.C:53