AliPhysics  9b6b435 (9b6b435)
AliRDHFCutsDStartoKpipi.h
Go to the documentation of this file.
1 #ifndef ALIRDHFCUTSDSTARTOKPIPI_H
2 #define ALIRDHFCUTSDSTARTOKPIPI_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"
14 
15 class AliAODEvent;
17 class AliAODRecoDecayHF;
18 
20 {
21  public:
22 
23  AliRDHFCutsDStartoKpipi(const char* name="CutsDStartoKpipi");
24 
25  virtual ~AliRDHFCutsDStartoKpipi();
26 
29 
31  virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters);
32 
34  virtual Int_t IsSelected(TObject* obj, Int_t selectionLevel, AliAODEvent* aod);
35  virtual Int_t IsSelected(TObject* obj, Int_t selectionLevel) {return IsSelected(obj,selectionLevel,0);}
36 
37  Int_t IsD0FromDStarSelected(Double_t pt, TObject* obj,Int_t selectionLevel, AliAODEvent* aod) const;
38  Int_t IsD0FromDStarSelected(Double_t pt, TObject* obj,Int_t selectionLevel) {return IsD0FromDStarSelected(pt,obj,selectionLevel,0);};
39 
40  virtual Int_t PreSelect(TObjArray aodtracks);
42  Int_t IsSelectedPID(Double_t pt, TObjArray aodTracks);
43  virtual Int_t SelectPID(AliAODTrack *track, Int_t type);
44  virtual Bool_t IsInFiducialAcceptance(Double_t pt,Double_t y) const;
45  Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(9,iPtBin)] : 1.e6);} // for the Dstar
46  Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(1,iPtBin)] : 1.e6);} // for the D0
47 
48  // standard cuts
49  virtual void SetStandardCutsPP2010();
50  virtual void SetStandardCutsPbPb2010();
51  virtual void SetStandardCutsPbPb2011();
52 
53  // standard cuts
54  void SetStandardCutsPbPb2011DStar(TH1F *hfl);
55  void SetStandardCutsPP2010DStarMult(Bool_t rec = kFALSE);
56 
57 
58  void SetMaxPtPid(Float_t maxPt){fMaxPtPid = maxPt;}
59 
60  void SetOffHighPtPIDinTPC(Float_t TPCrem =999.){fTPCflag = TPCrem;}
61 
62  void AddTrackCutsSoftPi(const AliESDtrackCuts *cuts)
63  {fTrackCutsSoftPi=new AliESDtrackCuts(*cuts); return;}
64  virtual AliESDtrackCuts *GetTrackCutsSoftPi() const {return fTrackCutsSoftPi;}
65 
67  void SetCircRadius(Double_t radius) { fCircRadius = radius; }
68 
73 
74  protected:
75 
76  AliESDtrackCuts *fTrackCutsSoftPi;
82 
84  ClassDef(AliRDHFCutsDStartoKpipi,8);
85 };
87 
88 #endif
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)=0
Float_t fMaxPtPid
cuts for soft pion (AOD converted to ESD on the flight!)
Int_t IsD0FromDStarSelected(Double_t pt, TObject *obj, Int_t selectionLevel)
double Double_t
Definition: External.C:58
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)
virtual Int_t PreSelect(TObjArray aodtracks)
void SetStandardCutsPP2010DStarMult(Bool_t rec=kFALSE)
virtual Int_t IsSelected(TObject *obj, Int_t selectionLevel)
Bool_t fUseTPCtrackCutsOnD0Daughters
Radius for circular PID nsigma cut.
Int_t IsD0FromDStarSelected(Double_t pt, TObject *obj, Int_t selectionLevel, AliAODEvent *aod) const
const Float_t * GetCuts() const
Definition: AliRDHFCuts.h:255
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *rd)
void SetStandardCutsPbPb2011DStar(TH1F *hfl)
Bool_t GetUseTPCtrackCutsOnD0Daughters() const
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
Float_t GetMassCut(Int_t iPtBin=0) const
virtual Int_t IsSelected(TObject *obj, Int_t selectionLevel, AliAODEvent *aod)
void AddTrackCutsSoftPi(const AliESDtrackCuts *cuts)
void SetUseTPCtrackCutsOnSoftPion(Bool_t flag=kFALSE)
AliESDtrackCuts * fTrackCutsSoftPi
Float_t * fCutsRD
fnVars*fnPtBins
Definition: AliRDHFCuts.h:435
Float_t GetDCACut(Int_t iPtBin=0) const
virtual AliESDtrackCuts * GetTrackCutsSoftPi() const
virtual Int_t SelectPID(AliAODTrack *track, Int_t type)
virtual Bool_t IsInFiducialAcceptance(Double_t pt, Double_t y) const
Bool_t IsSelected(TObject *obj)
Definition: AliRDHFCuts.h:293
void SetUseTPCtrackCutsOnD0Daughters(Bool_t flag=kTRUE)
Float_t fTPCflag
maximum Dstar Pt for using PID
void SetOffHighPtPIDinTPC(Float_t TPCrem=999.)
bool Bool_t
Definition: External.C:53
AliRDHFCutsDStartoKpipi(const char *name="CutsDStartoKpipi")
Bool_t fUseTPCtrackCutsOnSoftPion
flag to apply TPC track quality cuts on D0 daughter from Dstar decay (used for different strategies f...
void SetCircRadius(Double_t radius)
Int_t GetGlobalIndex(Int_t iVar, Int_t iPtBin) const
Bool_t GetUseTPCtrackCutsOnSoftPion() const
void SetMaxPtPid(Float_t maxPt)
AliRDHFCutsDStartoKpipi & operator=(const AliRDHFCutsDStartoKpipi &source)