AliPhysics  9b6b435 (9b6b435)
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 
22  virtual ~AliRDHFCutsDstoKKpi();
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 
40  Int_t IsSelectedPID(Double_t Pt, TObjArray aodtracks);
43  virtual void SetStandardCutsPP2010();
44 
45  virtual Bool_t IsInFiducialAcceptance(Double_t pt,Double_t y) const;
46  Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(0,iPtBin)] : 1.e6);}
47  Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(11,iPtBin)] : 1.e6);}
48  Float_t GetPhiMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(12,iPtBin)] : 1.e6);}
49  Float_t GetK0starMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(13,iPtBin)] : 1.e6);}
50 
51  UInt_t GetPIDTrackTPCTOFBitMap(AliAODTrack *track) const;
52 
54  void Setd0Cut(Int_t nPtBins, Float_t *cutval);
58 
60  const Float_t *Getd0Cut() const {return fMaxd0;}
61 
62  virtual Int_t PreSelect(TObjArray aodTracks);
63 
70 
71 
75  }
78  fDistToMaxProb=dist;
79  fPidHF->SetUseCombined(kTRUE);
80  }
81 
84  fBayesThreshold=thr;
85  fPidHF->SetUseCombined(kTRUE);
86  }
89  fPidHF->SetUseCombined(kTRUE);
90  }
94 
96 
97  Int_t GetPidOption() const {return fPidOption;}
100 
104  }
105 
106  Double_t ComputeInvMass2(AliAODTrack* track1, AliAODTrack* track2, Int_t pdg1, Int_t pdg2);
107 
108  virtual void PrintAll() const;
109 
110  protected:
111 
124  Float_t* fMaxd0MeasMinusExp; //[fnPtBins] cut values on d0meas-d0exp
126  Float_t* fMaxd0; //[fnPtBins] cut values on d0
128 
130  ClassDef(AliRDHFCutsDstoKKpi,7);
131 };
133 
134 #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:255
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)
Float_t GetK0starMassCut(Int_t iPtBin=0) const
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)
Bool_t IsK0starChannelEnabled() const
Float_t GetPhiMassCut(Int_t iPtBin=0) const
Double_t ComputeInvMass2(AliAODTrack *track1, AliAODTrack *track2, Int_t pdg1, Int_t pdg2)
virtual Int_t IsSelected(TObject *obj, Int_t selectionLevel)
virtual void SetStandardCutsPP2010()
AliRDHFCutsDstoKKpi & operator=(const AliRDHFCutsDstoKKpi &source)
const Float_t * Getd0Cut() const
Float_t * fCutsRD
fnVars*fnPtBins
Definition: AliRDHFCuts.h:435
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
virtual Int_t PreSelect(TObjArray aodTracks)
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:293
Float_t * fMaxd0
switch for cut on d0
Double_t GetWeightForpiKK() const
virtual void PrintAll() const
Double_t GetWeightForKKpi() const
bool Bool_t
Definition: External.C:53
AliAODPidHF * fPidHF
enable AOD049 centrality cleanup
Definition: AliRDHFCuts.h:439
void Setd0MeasMinusExpCut(Int_t nPtBins, Float_t *cutval)
const Float_t * Getd0MeasMinusExpCut() const
Int_t GetGlobalIndex(Int_t iVar, Int_t iPtBin) const
void ApplyCutOnResonances(Bool_t opt=kTRUE)