AliPhysics  63e47e1 (63e47e1)
AliFMDCorrVertexBias.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 ALIFMDCORRVERTEXBIAS_H
6 #define ALIFMDCORRVERTEXBIAS_H
7 
17 #include <TObject.h>
18 #include <TObjArray.h>
19 #include <TAxis.h>
20 class TH2D;
21 
46 {
47 public:
62  virtual ~AliFMDCorrVertexBias();
83  TH2D* GetCorrection(Char_t r, Double_t v) const;
93  TH2D* GetCorrection(Char_t r, UShort_t b) const;
99  const TAxis& GetVertexAxis() const { return fVertexAxis; }
100  /* @} */
101 
134  void SetVertexAxis(const TAxis& axis);
142  void SetVertexAxis(Int_t nBins, Double_t min, Double_t max);
143  /* @} */
144 
154  Bool_t IsFolder() const { return true; }
160  void Browse(TBrowser* b);
166  void Print(Option_t* option="R") const; //*MENU*
167  /* @} */
168 protected:
177  Int_t FindVertexBin(Double_t vertex) const;
194 
195  TObjArray fVertexArray; // Array of per-ring, per-vertex 2nd map
196  TAxis fVertexAxis; // The vertex axis
197  ClassDef(AliFMDCorrVertexBias,1); //
198 };
199 
200 //____________________________________________________________________
201 inline void
203 {
204  fVertexAxis.Set(nBins, min, max);
205 }
206 //____________________________________________________________________
207 inline void
209 {
210  fVertexAxis.Set(e.GetNbins(), e.GetXmin(), e.GetXmax());
211 }
212 #endif
213 // Local Variables:
214 // mode: C++
215 // End:
double Double_t
Definition: External.C:58
TH2D * GetCorrection(Char_t r, Double_t v) const
AliFMDCorrVertexBias & operator=(const AliFMDCorrVertexBias &o)
char Char_t
Definition: External.C:18
Bool_t SetCorrection(Char_t r, Double_t v, TH2D *h)
TObjArray * GetOrMakeVertexArray(UShort_t v)
int Int_t
Definition: External.C:63
Int_t FindVertexBin(Double_t vertex) const
Definition: External.C:228
TObjArray * GetVertexArray(UShort_t v) const
const TAxis & GetVertexAxis() const
void SetVertexAxis(const TAxis &axis)
unsigned short UShort_t
Definition: External.C:28
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
void Print(Option_t *option="R") const