AliPhysics  9c7580a (9c7580a)
AliFMDMultCuts.h
Go to the documentation of this file.
1 #ifndef ALIFMDMULTCUTS_H
2 #define ALIFMDMULTCUTS_H
3 #include <TObject.h>
4 class TH2;
5 
38 class AliFMDMultCuts : public TObject
39 {
40 public:
41  enum EMethod {
49  };
50  enum {
51  kBad = 1024
52  };
53 
69  Double_t fmd1i,
70  Double_t fmd2i=-1,
71  Double_t fmd2o=-1,
72  Double_t fmd3i=-1,
73  Double_t fmd3o=-1);
91  void Reset();
102  Double_t GetMultCut(UShort_t d, Char_t r, Double_t eta, Bool_t errors) const;
113  Double_t GetMultCut(UShort_t d, Char_t r, Int_t etabin, Bool_t errors) const;
125  void SetMultCuts(Double_t fmd1i,
126  Double_t fmd2i=-1,
127  Double_t fmd2o=-1,
128  Double_t fmd3i=-1,
129  Double_t fmd3o=-1)
130  {
131  DepSet("SetMultCuts", kFixed,fmd1i,fmd2i,fmd2o,fmd3i,fmd3o);
132  }
140  void SetMPVFraction(Double_t frac=0)
141  {
142  DepSet("SetMPVFraction",kMPVFraction, frac);
143  }
151  void SetNXi(Double_t nXi) { DepSet("SetNXi", kLandauWidth, nXi); }
159  void SetIncludeSigma(Bool_t in);
168  void SetProbability(Double_t cut=1e-5)
169  {
170  DepSet("SetProbability", kProbability, cut);
171  }
190  void Set(EMethod method,
191  Double_t fmd1i,
192  Double_t fmd2i=-1,
193  Double_t fmd2o=-1,
194  Double_t fmd3i=-1,
195  Double_t fmd3o=-1);
201  void Print(Option_t* option="") const;
208  void FillHistogram(TH2* h) const;
215  void Output(TList* l, const char* name=0) const;
224  Bool_t Input(TList* l, const char* name);
230  EMethod GetMethod() const { return fMethod; }
236  const char* GetMethodString(Bool_t latex=false) const;
245  static const char* Method2String(EMethod method, Bool_t latex);
253  static EMethod String2Method(const char* str);
254 protected:
266  void DepSet(const char* what,
267  EMethod method,
268  Double_t fmd1i,
269  Double_t fmd2i=-1,
270  Double_t fmd2o=-1,
271  Double_t fmd3i=-1,
272  Double_t fmd3o=-1);
281  Double_t GetCutParam(UShort_t d, Char_t r) const;
282 
283  Double_t fCuts[5]; // Fixed cuts
285 
286  ClassDef(AliFMDMultCuts,5); // Cuts on ESD Mult
287 };
288 
289 #endif
290 // Local Variables:
291 // mode: C++
292 // End:
void Print(Option_t *option="") const
static EMethod String2Method(const char *str)
double Double_t
Definition: External.C:58
Double_t fCuts[5]
char Char_t
Definition: External.C:18
Double_t GetCutParam(UShort_t d, Char_t r) const
void SetIncludeSigma(Bool_t in)
void DepSet(const char *what, EMethod method, Double_t fmd1i, Double_t fmd2i=-1, Double_t fmd2o=-1, Double_t fmd3i=-1, Double_t fmd3o=-1)
Double_t GetMultCut(UShort_t d, Char_t r, Double_t eta, Bool_t errors) const
void SetProbability(Double_t cut=1e-5)
AliFMDMultCuts & operator=(const AliFMDMultCuts &o)
static const char * Method2String(EMethod method, Bool_t latex)
const char * GetMethodString(Bool_t latex=false) const
EMethod GetMethod() const
int Int_t
Definition: External.C:63
void Output(TList *l, const char *name=0) const
Int_t method
void Set(EMethod method, Double_t fmd1i, Double_t fmd2i=-1, Double_t fmd2o=-1, Double_t fmd3i=-1, Double_t fmd3o=-1)
Bool_t Input(TList *l, const char *name)
Definition: External.C:220
void FillHistogram(TH2 *h) const
void SetNXi(Double_t nXi)
void SetMultCuts(Double_t fmd1i, Double_t fmd2i=-1, Double_t fmd2o=-1, Double_t fmd3i=-1, Double_t fmd3o=-1)
void SetMPVFraction(Double_t frac=0)
unsigned short UShort_t
Definition: External.C:28
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53