AliPhysics  c7b8e89 (c7b8e89)
AliRDHFCutsDplustoKpipi.h
Go to the documentation of this file.
1 #ifndef ALIRDHFCUTSDPLUSTOKPIPI_H
2 #define ALIRDHFCUTSDPLUSTOKPIPI_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 
17 
18 #include "AliRDHFCuts.h"
19 
20 class AliAODPidHF;
21 
23 {
24  public:
25 
26  AliRDHFCutsDplustoKpipi(const char* name="CutsDplustoKpipi");
27 
31 
33  virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters){
34  return GetCutVarsForOpt(d,vars,nvars,pdgdaughters,0x0);
35  }
36  virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters,AliAODEvent *aod);
37 
39  virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel){
40  return IsSelected(obj,selectionLevel,0x0);
41  }
42  virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel,AliAODEvent* aod);
44  Int_t IsSelectedPID(Double_t Pt, TObjArray aodtracks);
45 
46  virtual Bool_t IsInFiducialAcceptance(Double_t pt,Double_t y) const;
47  virtual void SetStandardCutsPP2010();
48  virtual void SetStandardCutsPbPb2010();
49  virtual void SetStandardCutsPbPb2011();
50 
52  UInt_t GetPIDTrackTPCTOFBitMap(AliAODTrack *track) const;
53  Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(0,iPtBin)] : 1.e6);}
54  Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(1,iPtBin)] : 1.e6);}
60  fPidHF->SetMatch(0);
61  fPidHF->SetTPC(1);
62  fPidHF->SetTOF(0);
63  fPidHF->SetITS(0);
64  fPidHF->SetTRD(0);
65  }
67  fPidHF->SetMatch(0);
68  fPidHF->SetTPC(0);
69  fPidHF->SetTOF(1);
70  fPidHF->SetITS(0);
71  fPidHF->SetTRD(0);
72  }
73  Int_t GetStrongPid() const {return fUseStrongPid;}
79  }
81  return fUseImpParProdCorrCut;
82  }
85  }
86 
88  void Setd0Cut(Int_t nPtBins, Float_t *cutval);
89 
90  virtual Int_t PreSelect(TObjArray aodTracks);
91 
92  virtual void PrintAll()const;
93 
100 
101  protected:
102 
103  private:
110  Float_t* fMaxd0MeasMinusExp; //[fnPtBins] cut values on d0meas-d0exp
112  Float_t* fMaxd0; //[fnPtBins] cut values on d0
114 
116  ClassDef(AliRDHFCutsDplustoKpipi,9);
117 };
120 
121 #endif
122 
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)=0
Bool_t fUsed0MeasMinusExpCut
switch for d0K*d0pi1 vs. d0K*d0pi2 cut
double Double_t
Definition: External.C:58
void Setd0MeasMinusExpCut(Int_t nPtBins, Float_t *cutval)
AliRDHFCutsDplustoKpipi & operator=(const AliRDHFCutsDplustoKpipi &source)
void SetTRD(Bool_t trd)
Definition: AliAODPidHF.h:97
Float_t GetMaxPtStrongPidpi() const
Int_t GetPIDBitMask(AliAODRecoDecayHF *rd)
Float_t fMaxPStrongPidpi
Maximum P of track to apply strong Pid on K.
const Float_t * GetCuts() const
Definition: AliRDHFCuts.h:255
void Setd0Cut(Int_t nPtBins, Float_t *cutval)
UInt_t GetPIDTrackTPCTOFBitMap(AliAODTrack *track) const
virtual Bool_t IsInFiducialAcceptance(Double_t pt, Double_t y) const
void SetMaxPStrongPidK(Float_t spid)
AliRDHFCutsDplustoKpipi(const char *name="CutsDplustoKpipi")
Float_t * fMaxd0
switch for cut on d0
void SetTOF(Bool_t tof)
Definition: AliAODPidHF.h:95
const Int_t nPtBins
Float_t * fMaxd0MeasMinusExp
switch for cut on d0meas-d0exp
Class for cuts on AOD reconstructed D+->Kpipi.
int Int_t
Definition: External.C:63
virtual Int_t IsSelected(TObject *obj, Int_t selectionLevel)
unsigned int UInt_t
Definition: External.C:33
Bool_t fUseImpParProdCorrCut
Maximum P of track to apply strong Pid on pi.
float Float_t
Definition: External.C:68
void SetMaxPtStrongPid(Float_t spid)
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)
Float_t fMaxPStrongPidK
Maximum pt of candidate to apply strong Pid.
void SetScaleNormDLxyBypOverPt(Bool_t opt)
virtual Int_t PreSelect(TObjArray aodTracks)
Float_t GetMassCut(Int_t iPtBin=0) const
Float_t * fCutsRD
fnVars*fnPtBins
Definition: AliRDHFCuts.h:435
void SetMaxPStrongPidpi(Float_t spid)
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *rd)
Bool_t IsSelected(TObject *obj)
Definition: AliRDHFCuts.h:293
void SetITS(Bool_t its)
Definition: AliAODPidHF.h:96
void SetMatch(Int_t match)
Definition: AliAODPidHF.h:98
void SetUseImpParProdCorrCut(Bool_t use)
void SetTPC(Bool_t tpc)
Definition: AliAODPidHF.h:94
bool Bool_t
Definition: External.C:53
AliAODPidHF * fPidHF
enable AOD049 centrality cleanup
Definition: AliRDHFCuts.h:439
Float_t GetDCACut(Int_t iPtBin=0) const
Int_t GetGlobalIndex(Int_t iVar, Int_t iPtBin) const
Float_t fMaxPtStrongPid
use strong pid 0 no,1 only for K,2 pi 3 both
Bool_t GetUseImpParProdCorrCut() const