AliPhysics  d565ceb (d565ceb)
AliRDHFCutsD0toKpipipi.h
Go to the documentation of this file.
1 #ifndef ALIRDHFCUTSD0TOKPIPIPI_H
2 #define ALIRDHFCUTSD0TOKPIPIPI_H
3 /* Copyright(c) 1998-2010, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 //***********************************************************
11 //***********************************************************
12 
13 #include "AliRDHFCuts.h"
15 
17 {
18  public:
19 
20  AliRDHFCutsD0toKpipipi(const char* name="CutsD0toKpipipi");
21 
23 
26 
28  virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters){
29  return GetCutVarsForOpt(d,vars,nvars,pdgdaughters,0x0);
30  }
31  virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters,AliAODEvent* aod);
32 
34  virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel)
35  {return IsSelected(obj,selectionLevel,0);}
36  virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel,AliAODEvent* aod);
37  virtual Int_t IsSelectedFromPID(AliAODRecoDecayHF4Prong *d, Int_t *hyp1, Int_t *hyp2, Int_t *hyp3, Int_t *hyp4);
38  virtual Int_t D01Selected(TObject* obj,Int_t selectionLevel);
39  virtual Int_t D02Selected(TObject* obj,Int_t selectionLevel);
40  virtual Int_t D0bar1Selected(TObject* obj,Int_t selectionLevel);
41  virtual Int_t D0bar2Selected(TObject* obj,Int_t selectionLevel);
42 
43  Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(0,iPtBin)] : 1.e6);}
44  Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(1,iPtBin)] : 1.e6);}
45  Bool_t GetUsePID(Int_t iPtBin=0) const { return (GetCuts() ? (Bool_t)(fCutsRD[GetGlobalIndex(8,iPtBin)]) : kFALSE);}
46 
47  virtual Bool_t IsInFiducialAcceptance(Double_t pt,Double_t y) const;
48 
49  protected:
50 
52  ClassDef(AliRDHFCutsD0toKpipipi,1);
53 };
55 
56 #endif
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)=0
double Double_t
Definition: External.C:58
virtual Int_t D01Selected(TObject *obj, Int_t selectionLevel)
virtual Int_t IsSelectedFromPID(AliAODRecoDecayHF4Prong *d, Int_t *hyp1, Int_t *hyp2, Int_t *hyp3, Int_t *hyp4)
const Float_t * GetCuts() const
Definition: AliRDHFCuts.h:253
virtual Int_t D0bar1Selected(TObject *obj, Int_t selectionLevel)
AliRDHFCutsD0toKpipipi & operator=(const AliRDHFCutsD0toKpipipi &source)
virtual Int_t D02Selected(TObject *obj, Int_t selectionLevel)
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
Float_t GetMassCut(Int_t iPtBin=0) const
Float_t * fCutsRD
fnVars*fnPtBins
Definition: AliRDHFCuts.h:420
virtual Int_t D0bar2Selected(TObject *obj, Int_t selectionLevel)
Float_t GetDCACut(Int_t iPtBin=0) const
virtual Int_t IsSelected(TObject *obj, Int_t selectionLevel)
AliRDHFCutsD0toKpipipi(const char *name="CutsD0toKpipipi")
Bool_t IsSelected(TObject *obj)
Definition: AliRDHFCuts.h:290
virtual Bool_t IsInFiducialAcceptance(Double_t pt, Double_t y) const
bool Bool_t
Definition: External.C:53
Int_t GetGlobalIndex(Int_t iVar, Int_t iPtBin) const
Bool_t GetUsePID(Int_t iPtBin=0) const
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)