AliPhysics  d38de18 (d38de18)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliCentralCorrSecondaryMap.h
Go to the documentation of this file.
1 //
2 // This class contains the secondary correction
3 // for the central region
4 //
5 #ifndef ALICENTRALCORRSECONDARYMAP_H
6 #define ALICENTRALCORRSECONDARYMAP_H
7 
17 #include <TObject.h>
18 #include <TObjArray.h>
19 #include <TAxis.h>
20 class TH2D;
21 
30 {
31 public:
66  TH2D* GetCorrection(Double_t v) const;
75  TH2D* 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;
167  TObjArray fArray; // Array of per-ring, per-vertex 2nd map
168  TAxis fVertexAxis; // The vertex axis
169  ClassDef(AliCentralCorrSecondaryMap,1); // SecondaryMap correction due to dead areas
170 };
171 
172 //____________________________________________________________________
173 inline void
175  Double_t max)
176 {
177  fVertexAxis.Set(nBins, min, max);
178 }
179 //____________________________________________________________________
180 inline void
182 {
183  fVertexAxis.Set(e.GetNbins(), e.GetXmin(), e.GetXmax());
184 }
185 #endif
186 // Local Variables:
187 // mode: C++
188 // End:
Int_t FindVertexBin(Double_t vertex) const
double Double_t
Definition: External.C:58
AliCentralCorrSecondaryMap & operator=(const AliCentralCorrSecondaryMap &o)
void SetVertexAxis(const TAxis &axis)
int Int_t
Definition: External.C:63
Definition: External.C:228
ClassDef(AliCentralCorrSecondaryMap, 1)
TH2D * GetCorrection(Double_t v) const
Bool_t SetCorrection(Double_t v, TH2D *h)
void Print(Option_t *option="R") const
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