AliPhysics  0e0bd91 (0e0bd91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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 
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 IsSelectedPID(AliAODRecoDecayHF *rd);
41  virtual Int_t SelectPID(AliAODTrack *track, Int_t type);
42  virtual Bool_t IsInFiducialAcceptance(Double_t pt,Double_t y) const;
43  Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(9,iPtBin)] : 1.e6);} // for the Dstar
44  Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(1,iPtBin)] : 1.e6);} // for the D0
45 
46  // standard cuts
47  virtual void SetStandardCutsPP2010();
48  virtual void SetStandardCutsPbPb2010();
49  virtual void SetStandardCutsPbPb2011();
50 
51  // standard cuts
52  void SetStandardCutsPbPb2011DStar(TH1F *hfl);
53  void SetStandardCutsPP2010DStarMult(Bool_t rec = kFALSE);
54 
55 
56  void SetMaxPtPid(Float_t maxPt){fMaxPtPid = maxPt;}
57 
58  void SetOffHighPtPIDinTPC(Float_t TPCrem =999.){fTPCflag = TPCrem;}
59 
60  void AddTrackCutsSoftPi(const AliESDtrackCuts *cuts)
61  {fTrackCutsSoftPi=new AliESDtrackCuts(*cuts); return;}
62  virtual AliESDtrackCuts *GetTrackCutsSoftPi() const {return fTrackCutsSoftPi;}
63 
64  Double_t GetCircRadius() { return fCircRadius; }
65  void SetCircRadius(Double_t radius) { fCircRadius = radius; }
66 
67  protected:
68 
69  AliESDtrackCuts *fTrackCutsSoftPi;
70  Float_t fMaxPtPid;
71  Float_t fTPCflag;
72  Double_t fCircRadius;
73 
75  ClassDef(AliRDHFCutsDStartoKpipi,7);
76 };
78 
79 #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)
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)
void SetStandardCutsPP2010DStarMult(Bool_t rec=kFALSE)
virtual Int_t IsSelected(TObject *obj, Int_t selectionLevel)
Int_t IsD0FromDStarSelected(Double_t pt, TObject *obj, Int_t selectionLevel, AliAODEvent *aod) const
const Float_t * GetCuts() const
Definition: AliRDHFCuts.h:238
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *rd)
void SetStandardCutsPbPb2011DStar(TH1F *hfl)
Float_t GetMassCut(Int_t iPtBin=0) const
virtual Int_t IsSelected(TObject *obj, Int_t selectionLevel, AliAODEvent *aod)
void AddTrackCutsSoftPi(const AliESDtrackCuts *cuts)
AliESDtrackCuts * fTrackCutsSoftPi
Float_t * fCutsRD
fnVars*fnPtBins
Definition: AliRDHFCuts.h:387
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:274
Float_t fTPCflag
maximum Dstar Pt for using PID
void SetOffHighPtPIDinTPC(Float_t TPCrem=999.)
AliRDHFCutsDStartoKpipi(const char *name="CutsDStartoKpipi")
void SetCircRadius(Double_t radius)
Int_t GetGlobalIndex(Int_t iVar, Int_t iPtBin) const
void SetMaxPtPid(Float_t maxPt)
AliRDHFCutsDStartoKpipi & operator=(const AliRDHFCutsDStartoKpipi &source)