AliPhysics  4e47bdd (4e47bdd)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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  };
85 
95  virtual Bool_t Append(const TString& addition,
96  const TString& destination="") const;
97 
101  const Char_t* GetName() const { return "forwardCorrections"; }
107  void SetSecondaryMapPath(const char* d)
108  {
110  }
116  void SetDoubleHitPath(const char* d)
117  {
119  }
125  void SetELossFitsPath(const char* d)
126  {
128  }
134  void SetVertexBiasPath(const char* d)
135  {
137  }
143  void SetMergingEffPath(const char* d)
144  {
146  }
152  void SetAcceptancePath(const char* d)
153  {
155  }
170  Bool_t Init(ULong_t runNumber,
171  UShort_t collisionSystem,
172  UShort_t cmsNN,
173  Short_t field,
174  Bool_t mc=false,
175  Bool_t satelliteCollisions=false,
176  UInt_t what=kDefault,
177  Bool_t force=false);
192  Bool_t Init(ULong_t runNumber,
193  const char* collisionSystem,
194  Float_t cmsNN,
195  Float_t field,
196  Bool_t mc=false,
197  Bool_t satelliteCollisions=false,
198  UInt_t what=kDefault,
199  Bool_t force=false);
207  static UInt_t ParseFields(const TString& what);
213  const TAxis* GetEtaAxis() const;
219  const TAxis* GetVertexAxis() const;
225  const AliFMDCorrELossFit* GetELossFit() const;
231  const AliFMDCorrELossFit* GetELossFits() const { return GetELossFit(); }
243  const AliFMDCorrDoubleHit* GetDoubleHit() const;
249  const AliFMDCorrVertexBias* GetVertexBias() const;
261  const AliFMDCorrAcceptance* GetAcceptance() const;
275  const AliFMDCorrNoiseGain* GetNoiseGain() const;
276 private:
284 
287 
292  static const Char_t* fgkSecondaryMapSkel; // Name of correction object
293  static const Char_t* fgkDoubleHitSkel; // Name of correction object
294  static const Char_t* fgkELossFitsSkel; // Name of correction object
295  static const Char_t* fgkVertexBiasSkel; // Name of correction object
296  static const Char_t* fgkMergingEffSkel; // Name of correction object
297  static const Char_t* fgkAcceptanceSkel; // Name of correction object
298  static const Char_t* fgkNoiseGainSkel; // Name of correction object
299  /*
300  * @}
301  */
302  ClassDef(AliForwardCorrectionManager,5) // Manager of corrections
303 };
304 
305 #endif
306 // Local Variables:
307 // mode: C++
308 // End:
309 
Base class for correction managers.
const AliFMDCorrDoubleHit * GetDoubleHit() const
const AliFMDCorrELossFit * GetELossFits() const
virtual Bool_t Append(const TString &addition, const TString &destination="") const
char Char_t
Definition: External.C:18
ClassDef(AliCorrectionManagerBase, 2)
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()