AliPhysics  v5-06-40-01 (42bb456)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
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 
32  };
33 
34  AliRDHFCutsLctoV0(const char* name="CutsLctoV0", Short_t v0channel=0);
35 
36  virtual ~AliRDHFCutsLctoV0();
37 
38  AliRDHFCutsLctoV0(const AliRDHFCutsLctoV0& source);
40 
42  virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters);
43 
45  virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel);
46 
48  virtual Int_t IsSelectedPID(AliAODRecoDecayHF* obj);
49 
50  Int_t IsSelectedSingleCut(TObject* obj, Int_t selectionLevel, Int_t cutIndex);
51 
52  Int_t CombineCuts (Int_t returnvalueTrack, Int_t returnvalue, Int_t returnvaluePID) const;
53 
54  Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(0,iPtBin)] : 1.e6);}
55  Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(7,iPtBin)] : 1.e6);}
56 
59 
61 
62  Int_t GetV0Type();
63 
64  void SetHighPtCut(Float_t highPtCut) {fHighPtCut=highPtCut;};
65  Float_t GetHighPtCut() const {return fHighPtCut;};
66 
67  void SetLowPtCut(Float_t lowPtCut) {fLowPtCut=lowPtCut;};
68  Float_t GetLowPtCut() const {return fLowPtCut;};
69 
70  void SetExcludedCut(Int_t excludedCut) {fExcludedCut=excludedCut;}
71  Int_t GetExcludedCut(){return fExcludedCut;}
72 
73  virtual void SetStandardCutsPP2010();
74  virtual void SetStandardCutsPbPb2010();
75  virtual void SetStandardCutsPbPb2011();
76 
77  virtual Bool_t IsInFiducialAcceptance(Double_t pt,Double_t y) const;
78 
79  void AddTrackCutsV0daughters(AliESDtrackCuts* v0daug)
80  { delete fV0daughtersCuts; fV0daughtersCuts = new AliESDtrackCuts(*v0daug); }
81  virtual AliESDtrackCuts *GetTrackCutsV0daughters() const {return fV0daughtersCuts;}
82 
83  virtual void PrintAll() const;
84  protected:
85 
86  void CheckPID(AliAODTrack *bachelor, AliAODTrack * /*v0Neg*/, AliAODTrack * /*v0Pos*/,
87  Bool_t &isBachelorID1, Bool_t &isBachelorID2, Bool_t &isBachelorID4);
88 
89  private:
90 
92  AliESDtrackCuts *fV0daughtersCuts;
93  Float_t fV0Type;
94  Float_t fHighPtCut;
95  Float_t fLowPtCut;
96  Int_t fExcludedCut;
97 
98  //UShort_t fV0channel;
99 
101  ClassDef(AliRDHFCutsLctoV0,6);
102 };
104 
105 #endif
Int_t IsSelectedSingleCut(TObject *obj, Int_t selectionLevel, Int_t cutIndex)
AliESDtrackCuts * fV0daughtersCuts
virtual void SetStandardCutsPbPb2010()
virtual Int_t IsSelected(TObject *obj, Int_t selectionLevel)
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)=0
AliRDHFCutsLctoV0(const char *name="CutsLctoV0", Short_t v0channel=0)
virtual void SetStandardCutsPP2010()
virtual void SetStandardCutsPbPb2011()
Int_t CombineCuts(Int_t returnvalueTrack, Int_t returnvalue, Int_t returnvaluePID) const
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!)
Bool_t AreLctoV0DaughtersSelected(AliAODRecoDecayHF *rd) const
AliRDHFCutsLctoV0 & operator=(const AliRDHFCutsLctoV0 &source)
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *)
Definition: AliRDHFCuts.h:280
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)
void SetExcludedCut(Int_t excludedCut)
Float_t GetMassCut(Int_t iPtBin=0) const
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:386
Float_t GetLowPtCut() const
void SetLowPtCut(Float_t lowPtCut)
virtual AliESDtrackCuts * GetTrackCutsV0daughters() const
Int_t fExcludedCut
low pT cut separation for proton identification
Bool_t IsSelected(TObject *obj)
Definition: AliRDHFCuts.h:273
Float_t fHighPtCut
V0 type – should be defined as in AliRDHFCuts.h.
virtual Bool_t IsInFiducialAcceptance(Double_t pt, Double_t y) const
void CheckPID(AliAODTrack *bachelor, AliAODTrack *, AliAODTrack *, Bool_t &isBachelorID1, Bool_t &isBachelorID2, Bool_t &isBachelorID4)
Int_t GetGlobalIndex(Int_t iVar, Int_t iPtBin) const
void SetPidSelectionFlag(Int_t a)
void SetHighPtCut(Float_t highPtCut)
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *obj)