AliPhysics  c7b8e89 (c7b8e89)
AliForwardCorrectionManager.h
Go to the documentation of this file.
1 //
2 // Manager (singleton) of corrections
3 //
4 #ifndef ALIFORWARDCORRECTIONMANAGER_H
5 #define ALIFORWARDCORRECTIONMANAGER_H
6 
17 #include <TString.h>
18 class TBrowser;
19 class AliFMDCorrELossFit;
26 class TAxis;
27 
38 {
39 private:
43  enum EId {
51  };
52 public:
56  enum ECorrection {
57  kSecondaryMap = 0x01,
58  kELossFits = 0x02,
59  kVertexBias = 0x04,
61  kDoubleHit = 0x10,
62  kAcceptance = 0x20,
63  kNoiseGain = 0x40,
66  kELossFits|
69  kDoubleHit|
71  kNoiseGain)
72  };
88  const Char_t* GetName() const { return "forwardCorrections"; }
94  void SetSecondaryMapPath(const char* d)
95  {
97  }
103  void SetDoubleHitPath(const char* d)
104  {
106  }
112  void SetELossFitsPath(const char* d)
113  {
115  }
121  void SetVertexBiasPath(const char* d)
122  {
124  }
130  void SetMergingEffPath(const char* d)
131  {
133  }
139  void SetAcceptancePath(const char* d)
140  {
142  }
157  Bool_t Init(ULong_t runNumber,
158  UShort_t collisionSystem,
159  UShort_t cmsNN,
160  Short_t field,
161  Bool_t mc=false,
162  Bool_t satelliteCollisions=false,
163  UInt_t what=kDefault,
164  Bool_t force=false);
179  Bool_t Init(ULong_t runNumber,
180  const char* collisionSystem,
181  Float_t cmsNN,
182  Float_t field,
183  Bool_t mc=false,
184  Bool_t satelliteCollisions=false,
185  UInt_t what=kDefault,
186  Bool_t force=false);
194  static UInt_t ParseFields(const TString& what);
200  const TAxis* GetEtaAxis() const;
206  const TAxis* GetVertexAxis() const;
212  const AliFMDCorrELossFit* GetELossFit() const;
218  const AliFMDCorrELossFit* GetELossFits() const { return GetELossFit(); }
230  const AliFMDCorrDoubleHit* GetDoubleHit() const;
236  const AliFMDCorrVertexBias* GetVertexBias() const;
248  const AliFMDCorrAcceptance* GetAcceptance() const;
262  const AliFMDCorrNoiseGain* GetNoiseGain() const;
263 private:
271 
274 
279  static const Char_t* fgkSecondaryMapSkel; // Name of correction object
280  static const Char_t* fgkDoubleHitSkel; // Name of correction object
281  static const Char_t* fgkELossFitsSkel; // Name of correction object
282  static const Char_t* fgkVertexBiasSkel; // Name of correction object
283  static const Char_t* fgkMergingEffSkel; // Name of correction object
284  static const Char_t* fgkAcceptanceSkel; // Name of correction object
285  static const Char_t* fgkNoiseGainSkel; // Name of correction object
286  /*
287  * @}
288  */
289  ClassDef(AliForwardCorrectionManager,5) // Manager of corrections
290 };
291 
292 #endif
293 // Local Variables:
294 // mode: C++
295 // End:
296 
Base class for correction managers.
const AliFMDCorrDoubleHit * GetDoubleHit() const
const AliFMDCorrELossFit * GetELossFits() const
char Char_t
Definition: External.C:18
Bool_t Init(ULong_t runNumber, UShort_t collisionSystem, UShort_t cmsNN, Short_t field, Bool_t mc=false, Bool_t satelliteCollisions=false, UInt_t what=kDefault, Bool_t force=false)
void SetCorrectionFile(Int_t id, const TString &fileName) const
unsigned int UInt_t
Definition: External.C:33
float Float_t
Definition: External.C:68
const AliFMDCorrMergingEfficiency * GetMergingEfficiency() const
unsigned long ULong_t
Definition: External.C:38
const AliFMDCorrELossFit * GetELossFit() const
const AliFMDCorrNoiseGain * GetNoiseGain() const
static UInt_t ParseFields(const TString &what)
short Short_t
Definition: External.C:23
const AliFMDCorrAcceptance * GetAcceptance() const
const AliFMDCorrVertexBias * GetVertexBias() const
unsigned short UShort_t
Definition: External.C:28
bool Bool_t
Definition: External.C:53
static AliForwardCorrectionManager * fgInstance
const AliFMDCorrSecondaryMap * GetSecondaryMap() const
static AliForwardCorrectionManager & Instance()