AliPhysics  86c65ee (86c65ee)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 {
48  };
49  enum {
50  kBad = 1024
51  };
52 
68  Double_t fmd1i,
69  Double_t fmd2i=-1,
70  Double_t fmd2o=-1,
71  Double_t fmd3i=-1,
72  Double_t fmd3o=-1);
90  void Reset();
101  Double_t GetMultCut(UShort_t d, Char_t r, Double_t eta, Bool_t errors) const;
112  Double_t GetMultCut(UShort_t d, Char_t r, Int_t etabin, Bool_t errors) const;
124  void SetMultCuts(Double_t fmd1i,
125  Double_t fmd2i=-1,
126  Double_t fmd2o=-1,
127  Double_t fmd3i=-1,
128  Double_t fmd3o=-1)
129  {
130  DepSet("SetMultCuts", kFixed,fmd1i,fmd2i,fmd2o,fmd3i,fmd3o);
131  }
139  void SetMPVFraction(Double_t frac=0)
140  {
141  DepSet("SetMPVFraction",kMPVFraction, frac);
142  }
150  void SetNXi(Double_t nXi) { DepSet("SetNXi", kLandauWidth, nXi); }
158  void SetIncludeSigma(Bool_t in);
167  void SetProbability(Double_t cut=1e-5)
168  {
169  DepSet("SetProbability", kProbability, cut);
170  }
189  void Set(EMethod method,
190  Double_t fmd1i,
191  Double_t fmd2i=-1,
192  Double_t fmd2o=-1,
193  Double_t fmd3i=-1,
194  Double_t fmd3o=-1);
200  void Print(Option_t* option="") const;
207  void FillHistogram(TH2* h) const;
214  void Output(TList* l, const char* name=0) const;
223  Bool_t Input(TList* l, const char* name);
229  EMethod GetMethod() const { return fMethod; }
235  const char* GetMethodString(Bool_t latex=false) const;
244  static const char* Method2String(EMethod method, Bool_t latex);
252  static EMethod String2Method(const char* str);
253 protected:
265  void DepSet(const char* what,
266  EMethod method,
267  Double_t fmd1i,
268  Double_t fmd2i=-1,
269  Double_t fmd2o=-1,
270  Double_t fmd3i=-1,
271  Double_t fmd3o=-1);
280  Double_t GetCutParam(UShort_t d, Char_t r) const;
281 
282  Double_t fCuts[5]; // Fixed cuts
284 
285  ClassDef(AliFMDMultCuts,5); // Cuts on ESD Mult
286 };
287 
288 #endif
289 // Local Variables:
290 // mode: C++
291 // End:
void Print(Option_t *option="") const
return jsonbuilder str().c_str()
static EMethod String2Method(const char *str)
double Double_t
Definition: External.C:58
ClassDef(AliFMDMultCuts, 5)
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