AliPhysics  251aa1e (251aa1e)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliRDHFCutsDstoKKpi.h
Go to the documentation of this file.
1 #ifndef ALIRDHFCUTSDSTOKKPI_H
2 #define ALIRDHFCUTSDSTOKKPI_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 //***********************************************************
12 //***********************************************************
13 
14 #include "AliRDHFCuts.h"
15 
17 {
18  public:
19 
20  AliRDHFCutsDstoKKpi(const char* name="CutsDstoKKpi");
21 
23 
26 
28  virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters){
29  return GetCutVarsForOpt(d,vars,nvars,pdgdaughters,0x0);
30  }
31  virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters,AliAODEvent *aod);
32 
34  virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel){
35  return IsSelected(obj,selectionLevel,0x0);
36  }
37  virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel,AliAODEvent* aod);
38 
39 
42  virtual void SetStandardCutsPP2010();
43 
44  virtual Bool_t IsInFiducialAcceptance(Double_t pt,Double_t y) const;
45  Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(0,iPtBin)] : 1.e6);}
46  Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(11,iPtBin)] : 1.e6);}
47  UInt_t GetPIDTrackTPCTOFBitMap(AliAODTrack *track) const;
48 
50  void Setd0Cut(Int_t nPtBins, Float_t *cutval);
51 
58 
59 
61  void SetPidOption(Int_t opt){
62  fPidOption=opt;
63  }
66  fDistToMaxProb=dist;
67  fPidHF->SetUseCombined(kTRUE);
68  }
69 
72  fBayesThreshold=thr;
73  fPidHF->SetUseCombined(kTRUE);
74  }
77  fPidHF->SetUseCombined(kTRUE);
78  }
82 
83  Int_t GetPidOption() const {return fPidOption;}
86 
88  void ApplyCutOnResonances(Bool_t opt=kTRUE){
89  fCutOnResonances=opt;
90  }
91 
92 
93  protected:
94 
105  Float_t* fMaxd0MeasMinusExp; //[fnPtBins] cut values on d0meas-d0exp
107  Float_t* fMaxd0; //[fnPtBins] cut values on d0
108 
110  ClassDef(AliRDHFCutsDstoKKpi,5);
111 };
113 
114 #endif
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)=0
double Double_t
Definition: External.C:58
AliRDHFCutsDstoKKpi(const char *name="CutsDstoKKpi")
void SetUseBayesianPIDWithThresholds(Double_t thr=0.05)
Float_t GetMassCut(Int_t iPtBin=0) const
void SetPidOption(Int_t opt)
void Setd0Cut(Int_t nPtBins, Float_t *cutval)
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)
virtual Int_t IsSelectedPIDBayes(AliAODRecoDecayHF *rd)
Double_t fWeightKKpi
Threshold for Bayesian PID probability.
Bool_t fUsed0MeasMinusExpCut
weight for piKK for kBayesianWeights
const Float_t * GetCuts() const
Definition: AliRDHFCuts.h:239
Float_t fMaxPtStrongPid
pid option
Int_t GetPidOption() const
virtual Bool_t IsInFiducialAcceptance(Double_t pt, Double_t y) const
virtual Int_t IsSelectedPID(AliAODRecoDecayHF *rd)
UInt_t GetPIDTrackTPCTOFBitMap(AliAODTrack *track) const
void SetUseBayesianPIDWithMaxProb(Double_t dist=0.01)
Int_t fPidOption
switch for the cuts on phi and K0* inv. mass
void SetUseCombined(Bool_t useCombined=kTRUE)
Definition: AliAODPidHF.h:200
void SetMaxPStrongPidK(Float_t spid)
Float_t GetDCACut(Int_t iPtBin=0) const
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
void SetMaxPtStrongPid(Float_t spid)
float Float_t
Definition: External.C:68
void SetMaxPStrongPidpi(Float_t spid)
virtual Int_t IsSelected(TObject *obj, Int_t selectionLevel)
virtual void SetStandardCutsPP2010()
AliRDHFCutsDstoKKpi & operator=(const AliRDHFCutsDstoKKpi &source)
Float_t * fCutsRD
fnVars*fnPtBins
Definition: AliRDHFCuts.h:400
Bool_t IsCutOnResonancesApplied() const
Float_t fMaxPStrongPidK
Maximum pt of candidate to apply strong Pid p dependent.
Double_t fWeightpiKK
weight for KKpi for kBayesianWeights
Double_t fDistToMaxProb
Maximum P of track to apply strong Pid on pi.
Double_t fBayesThreshold
Difference between max probability.
Float_t * fMaxd0MeasMinusExp
switch for cut on d0meas-d0exp
Float_t fMaxPStrongPidpi
Maximum P of track to apply strong Pid on K.
Bool_t IsSelected(TObject *obj)
Definition: AliRDHFCuts.h:276
Float_t * fMaxd0
switch for cut on d0
Double_t GetWeightForpiKK() const
Double_t GetWeightForKKpi() const
bool Bool_t
Definition: External.C:53
AliAODPidHF * fPidHF
enable AOD049 centrality cleanup
Definition: AliRDHFCuts.h:404
void Setd0MeasMinusExpCut(Int_t nPtBins, Float_t *cutval)
Int_t GetGlobalIndex(Int_t iVar, Int_t iPtBin) const
const Int_t nPtBins
void ApplyCutOnResonances(Bool_t opt=kTRUE)