AliPhysics  6cf2591 (6cf2591)
 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);
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);}
58  Int_t GetStrongPid() const {return fUseStrongPid;}
64  }
66  return fUseImpParProdCorrCut;
67  }
70  }
71 
73  void Setd0Cut(Int_t nPtBins, Float_t *cutval);
74  virtual void PrintAll()const;
75 
82  protected:
83 
84  private:
91  Float_t* fMaxd0MeasMinusExp; //[fnPtBins] cut values on d0meas-d0exp
93  Float_t* fMaxd0; //[fnPtBins] cut values on d0
95 
97  ClassDef(AliRDHFCutsDplustoKpipi,9);
98 };
101 
102 #endif
103 
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)
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:240
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
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:401
void SetMaxPStrongPidpi(Float_t spid)
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *rd)
Bool_t IsSelected(TObject *obj)
Definition: AliRDHFCuts.h:277
void SetUseImpParProdCorrCut(Bool_t use)
bool Bool_t
Definition: External.C:53
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