AliPhysics  32b88a8 (32b88a8)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliRDHFCutsLctoV0.h
Go to the documentation of this file.
1 #ifndef ALIRDHFCUTSLCTOV0_H
2 #define ALIRDHFCUTSLCTOV0_H
3 /* Copyright(c) 1998-2010, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 /* $Id$ */
7 
8 //***********************************************************
11 //***********************************************************
12 
13 #include "AliRDHFCuts.h"
14 
16 {
17  public:
18 
20  kLcToK0Spr=0x0001,
21  kLcToLBarpi=0x0002,
22  kLcToLpi=0x0004
23  };
24 
36  };
37 
38  AliRDHFCutsLctoV0(const char* name="CutsLctoV0", Short_t v0channel=0);
39 
40  virtual ~AliRDHFCutsLctoV0();
41 
42  AliRDHFCutsLctoV0(const AliRDHFCutsLctoV0& source);
44 
46  virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters);
47 
49  virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel)
50  {return IsSelected(obj,selectionLevel,0);}
51  virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel,AliAODEvent* aod);
52 
55 
56 
57  Bool_t PreSelect(TObject* obj, AliAODv0 *v0, AliVTrack *bachelorTrack);
58 
59  Int_t IsSelectedSingleCut(TObject* obj, Int_t selectionLevel, Int_t cutIndex, AliAODEvent* aod=0x0);
60 
61  Int_t CombineCuts (Int_t returnvalueTrack, Int_t returnvalue, Int_t returnvaluePID) const;
62 
63  Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(0,iPtBin)] : 1.e6);}
64  Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(7,iPtBin)] : 1.e6);}
65 
68 
70 
71  Int_t GetV0Type();
72 
73  void SetHighPtCut(Float_t highPtCut) {fHighPtCut=highPtCut;};
74  Float_t GetHighPtCut() const {return fHighPtCut;};
75 
76  void SetLowPtCut(Float_t lowPtCut) {fLowPtCut=lowPtCut;};
77  Float_t GetLowPtCut() const {return fLowPtCut;};
78 
81 
82  void SetExcludedCut(Int_t excludedCut) {fExcludedCut=excludedCut;}
84 
85  virtual void SetStandardCutsPP2010();
86  virtual void SetStandardCutsPbPb2010();
87  virtual void SetStandardCutsPbPb2011();
88 
89  virtual Bool_t IsInFiducialAcceptance(Double_t pt,Double_t y) const;
90 
91  void AddTrackCutsV0daughters(AliESDtrackCuts* v0daug)
92  { delete fV0daughtersCuts; fV0daughtersCuts = new AliESDtrackCuts(*v0daug); }
93  virtual AliESDtrackCuts *GetTrackCutsV0daughters() const {return fV0daughtersCuts;}
94 
95  virtual void PrintAll() const;
96  protected:
97 
98  void CheckPID(Int_t candPtBin, AliAODTrack *bachelor, AliAODTrack * /*v0Neg*/, AliAODTrack * /*v0Pos*/,
99  Bool_t &isBachelorID1, Bool_t &isBachelorID2, Bool_t &isBachelorID4);
100 
101  private:
102 
104  AliESDtrackCuts *fV0daughtersCuts;
109  Float_t *fMinCombinedProbability; //[fnPtBins] min value for combined PID probabilities
110 
111  //UShort_t fV0channel;
112 
114  ClassDef(AliRDHFCutsLctoV0,7);
115 };
117 
118 #endif
AliESDtrackCuts * fV0daughtersCuts
virtual void SetStandardCutsPbPb2010()
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)=0
const Float_t * GetMinCombinedProbability()
double Double_t
Definition: External.C:58
AliRDHFCutsLctoV0(const char *name="CutsLctoV0", Short_t v0channel=0)
virtual void SetStandardCutsPP2010()
virtual void SetStandardCutsPbPb2011()
Bool_t AreLctoV0DaughtersSelected(AliAODRecoDecayHF *rd, AliAODEvent *aod=0x0) const
Int_t CombineCuts(Int_t returnvalueTrack, Int_t returnvalue, Int_t returnvaluePID) const
Float_t * fMinCombinedProbability
cut to be excluded (-1=none)
Float_t GetHighPtCut() const
const Float_t * GetCuts() const
Definition: AliRDHFCuts.h:238
Float_t fV0Type
cuts for v0 daughters (AOD converted to ESD on the flight!)
AliRDHFCutsLctoV0 & operator=(const AliRDHFCutsLctoV0 &source)
Double_t ptMin
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *)
Definition: AliRDHFCuts.h:281
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)
void SetExcludedCut(Int_t excludedCut)
int Int_t
Definition: External.C:63
Float_t GetMassCut(Int_t iPtBin=0) const
float Float_t
Definition: External.C:68
void AddTrackCutsV0daughters(AliESDtrackCuts *v0daug)
Float_t fLowPtCut
high pT cut separation for proton identification
virtual void PrintAll() const
Float_t GetDCACut(Int_t iPtBin=0) const
Float_t * fCutsRD
fnVars*fnPtBins
Definition: AliRDHFCuts.h:395
short Short_t
Definition: External.C:23
Float_t GetLowPtCut() const
void SetLowPtCut(Float_t lowPtCut)
virtual AliESDtrackCuts * GetTrackCutsV0daughters() const
void SetMinCombinedProbability(Int_t ptBins, Float_t *ptMin)
Bool_t PreSelect(TObject *obj, AliAODv0 *v0, AliVTrack *bachelorTrack)
void CheckPID(Int_t candPtBin, AliAODTrack *bachelor, AliAODTrack *, AliAODTrack *, Bool_t &isBachelorID1, Bool_t &isBachelorID2, Bool_t &isBachelorID4)
Int_t fExcludedCut
low pT cut separation for proton identification
Bool_t IsSelected(TObject *obj)
Definition: AliRDHFCuts.h:274
bool Bool_t
Definition: External.C:53
Float_t fHighPtCut
V0 type – should be defined as in AliRDHFCuts.h.
virtual Bool_t IsInFiducialAcceptance(Double_t pt, Double_t y) const
Int_t GetGlobalIndex(Int_t iVar, Int_t iPtBin) const
void SetPidSelectionFlag(Int_t a)
Int_t IsSelectedSingleCut(TObject *obj, Int_t selectionLevel, Int_t cutIndex, AliAODEvent *aod=0x0)
void SetHighPtCut(Float_t highPtCut)
virtual Int_t IsSelected(TObject *obj, Int_t selectionLevel)
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *obj)