AliPhysics  e6d2b2b (e6d2b2b)
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 
63  }
66  fDistToMaxProb=dist;
67  fPidHF->SetUseCombined(kTRUE);
68  }
69 
72  fBayesThreshold=thr;
73  fPidHF->SetUseCombined(kTRUE);
74  }
77  fPidHF->SetUseCombined(kTRUE);
78  }
82 
84 
85  Int_t GetPidOption() const {return fPidOption;}
88 
92  }
93 
94 
95  protected:
96 
109  Float_t* fMaxd0MeasMinusExp; //[fnPtBins] cut values on d0meas-d0exp
111  Float_t* fMaxd0; //[fnPtBins] cut values on d0
112 
114  ClassDef(AliRDHFCutsDstoKKpi,6);
115 };
117 
118 #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)
Double_t fPhiMassRef
weight for piKK for kBayesianWeights
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
swicth to the usage of Reference Phi mass (instead of PDG value)
const Float_t * GetCuts() const
Definition: AliRDHFCuts.h:254
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)
const Int_t nPtBins
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:432
Bool_t IsCutOnResonancesApplied() const
Float_t fMaxPStrongPidK
Maximum pt of candidate to apply strong Pid p dependent.
void SetUseReferencePhiMass(Double_t value)
Double_t fWeightpiKK
weight for KKpi for kBayesianWeights
Bool_t fUseRefPhiMass
Reference Phi mass to be used for the cut on delta phi mass (instead of PDG value) ...
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:292
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:436
void Setd0MeasMinusExpCut(Int_t nPtBins, Float_t *cutval)
Int_t GetGlobalIndex(Int_t iVar, Int_t iPtBin) const
void ApplyCutOnResonances(Bool_t opt=kTRUE)