AliPhysics  9fe175b (9fe175b)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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);
43  virtual Int_t IsSelectedPID(AliAODRecoDecayHF *rd);
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);}
54  void SetUseStrongPid(Int_t spid){fUseStrongPid=spid;}
55  void SetMaxPtStrongPid(Float_t spid){fMaxPtStrongPid=spid;}
56  void SetMaxPStrongPidK(Float_t spid){fMaxPStrongPidK=spid;}
57  void SetMaxPStrongPidpi(Float_t spid){fMaxPStrongPidpi=spid;}
58  Int_t GetStrongPid() const {return fUseStrongPid;}
59  Float_t GetMaxPtStrongPid() const {return fMaxPtStrongPid;}
60  Float_t GetMaxPtStrongPidK() const {return fMaxPStrongPidK;}
61  Float_t GetMaxPtStrongPidpi() const {return fMaxPStrongPidpi;}
62  void SetUseImpParProdCorrCut(Bool_t use){
64  }
65  Bool_t GetUseImpParProdCorrCut() const {
66  return fUseImpParProdCorrCut;
67  }
68  void SetScaleNormDLxyBypOverPt(Bool_t opt){
70  }
71 
72  void Setd0MeasMinusExpCut(Int_t nPtBins, Float_t *cutval);
73  virtual void PrintAll()const;
74 
81  protected:
82 
83  private:
84  Int_t fUseStrongPid;
85  Float_t fMaxPtStrongPid;
86  Float_t fMaxPStrongPidK;
90  Float_t* fMaxd0MeasMinusExp; //[fnPtBins] cut values on d0meas-d0exp
92 
94  ClassDef(AliRDHFCutsDplustoKpipi,8);
95 };
98 
99 #endif
100 
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
void Setd0MeasMinusExpCut(Int_t nPtBins, Float_t *cutval)
AliRDHFCutsDplustoKpipi & operator=(const AliRDHFCutsDplustoKpipi &source)
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:238
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 * fMaxd0MeasMinusExp
switch for cut on d0meas-d0exp
Class for cuts on AOD reconstructed D+->Kpipi.
virtual Int_t IsSelected(TObject *obj, Int_t selectionLevel)
Bool_t fUseImpParProdCorrCut
Maximum P of track to apply strong Pid on pi.
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:392
void SetMaxPStrongPidpi(Float_t spid)
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *rd)
Bool_t IsSelected(TObject *obj)
Definition: AliRDHFCuts.h:274
void SetUseImpParProdCorrCut(Bool_t use)
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
const Int_t nPtBins
Bool_t GetUseImpParProdCorrCut() const