AliPhysics  5403132 (5403132)
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 
19 #include "AliRDHFCuts.h"
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 
45  virtual Bool_t IsInFiducialAcceptance(Double_t pt,Double_t y) const;
46  virtual void SetStandardCutsPP2010();
47  virtual void SetStandardCutsPbPb2010();
48  virtual void SetStandardCutsPbPb2011();
49 
51  UInt_t GetPIDTrackTPCTOFBitMap(AliAODTrack *track) const;
52  Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(0,iPtBin)] : 1.e6);}
53  Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(1,iPtBin)] : 1.e6);}
59  fPidHF->SetMatch(0);
60  fPidHF->SetTPC(1);
61  fPidHF->SetTOF(0);
62  fPidHF->SetITS(0);
63  fPidHF->SetTRD(0);
64  }
66  fPidHF->SetMatch(0);
67  fPidHF->SetTPC(0);
68  fPidHF->SetTOF(1);
69  fPidHF->SetITS(0);
70  fPidHF->SetTRD(0);
71  }
72  Int_t GetStrongPid() const {return fUseStrongPid;}
78  }
80  return fUseImpParProdCorrCut;
81  }
84  }
85 
87  void Setd0Cut(Int_t nPtBins, Float_t *cutval);
88  virtual void PrintAll()const;
89 
96  protected:
97 
98  private:
105  Float_t* fMaxd0MeasMinusExp; //[fnPtBins] cut values on d0meas-d0exp
107  Float_t* fMaxd0; //[fnPtBins] cut values on d0
109 
111  ClassDef(AliRDHFCutsDplustoKpipi,9);
112 };
115 
116 #endif
117 
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:253
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)
Float_t GetMassCut(Int_t iPtBin=0) const
Float_t * fCutsRD
fnVars*fnPtBins
Definition: AliRDHFCuts.h:420
void SetMaxPStrongPidpi(Float_t spid)
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *rd)
Bool_t IsSelected(TObject *obj)
Definition: AliRDHFCuts.h:290
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:424
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