AliPhysics  608b256 (608b256)
AliCentralCorrAcceptance.h
Go to the documentation of this file.
1 //
2 // This class contains the acceptance correction due to dead channels
3 //
4 //
5 #ifndef ALICENTRALCORRACCEPTANCE_H
6 #define ALICENTRALCORRACCEPTANCE_H
7 
17 #include <TObject.h>
18 #include <TObjArray.h>
19 #include <TAxis.h>
20 class TH1D;
21 
30 {
31 public:
46  virtual ~AliCentralCorrAcceptance();
66  TH1D* GetCorrection(Double_t v) const;
75  TH1D* GetCorrection(UShort_t b) const;
81  const TAxis& GetVertexAxis() const { return fVertexAxis; }
82  /* @} */
83 
114  void SetVertexAxis(const TAxis& axis);
122  void SetVertexAxis(Int_t nBins, Double_t min, Double_t max);
123  /* @} */
124 
134  Bool_t IsFolder() const { return true; }
140  void Browse(TBrowser* b);
146  void Print(Option_t* option="R") const; //*MENU*
147  /* @} */
148 protected:
157  Int_t FindVertexBin(Double_t vertex) const;
158 
159  TObjArray fArray; // Array of per-vertex acceptance corr
160  TAxis fVertexAxis; // The vertex axis
161  ClassDef(AliCentralCorrAcceptance,1); // Acceptance correction due to dead areas
162 };
163 
164 //____________________________________________________________________
165 inline void
167  Double_t max)
168 {
169  fVertexAxis.Set(nBins, min, max);
170 }
171 //____________________________________________________________________
172 inline void
174 {
175  fVertexAxis.Set(e.GetNbins(), e.GetXmin(), e.GetXmax());
176 }
177 #endif
178 // Local Variables:
179 // mode: C++
180 // End:
double Double_t
Definition: External.C:58
AliCentralCorrAcceptance & operator=(const AliCentralCorrAcceptance &o)
int Int_t
Definition: External.C:63
Definition: External.C:212
void SetVertexAxis(const TAxis &axis)
Int_t FindVertexBin(Double_t vertex) const
TH1D * GetCorrection(Double_t v) const
Bool_t SetCorrection(Double_t v, TH1D *h)
const TAxis & GetVertexAxis() const
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