AliPhysics  v5-06-40-01 (42bb456)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
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 
40  virtual Int_t IsSelectedPID(AliAODRecoDecayHF *rd);
41  virtual Int_t IsSelectedPIDBayes(AliAODRecoDecayHF *rd);
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 
55 
56 
58  void SetPidOption(Int_t opt){
59  fPidOption=opt;
60  }
61  void SetUseBayesianPIDWithMaxProb(Double_t dist=0.01){
63  fDistToMaxProb=dist;
64  fPidHF->SetUseCombined(kTRUE);
65  }
66 
67  void SetUseBayesianPIDWithThresholds(Double_t thr=0.05){
69  fBayesThreshold=thr;
70  fPidHF->SetUseCombined(kTRUE);
71  }
74  fPidHF->SetUseCombined(kTRUE);
75  }
76  void SetMaxPtStrongPid(Float_t spid){fMaxPtStrongPid=spid;}
77  void SetMaxPStrongPidK(Float_t spid){fMaxPStrongPidK=spid;}
78  void SetMaxPStrongPidpi(Float_t spid){fMaxPStrongPidpi=spid;}
79 
80  Int_t GetPidOption() const {return fPidOption;}
81  Double_t GetWeightForKKpi() const {return fWeightKKpi;}
82  Double_t GetWeightForpiKK() const {return fWeightpiKK;}
83 
84  Bool_t IsCutOnResonancesApplied() const {return fCutOnResonances;}
85  void ApplyCutOnResonances(Bool_t opt=kTRUE){
86  fCutOnResonances=opt;
87  }
88 
89 
90  protected:
91 
93  Int_t fPidOption;
94  Float_t fMaxPtStrongPid;
95  Float_t fMaxPStrongPidK;
96  Float_t fMaxPStrongPidpi;
97  Double_t fDistToMaxProb;
98  Double_t fBayesThreshold;
99  Double_t fWeightKKpi;
100  Double_t fWeightpiKK;
101 
103  ClassDef(AliRDHFCutsDstoKKpi,4);
104 };
106 
107 #endif
virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d, Float_t *vars, Int_t nvars, Int_t *pdgdaughters)=0
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)
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.
const Float_t * GetCuts() const
Definition: AliRDHFCuts.h:238
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
void SetMaxPtStrongPid(Float_t spid)
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:386
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 fMaxPStrongPidpi
Maximum P of track to apply strong Pid on K.
Bool_t IsSelected(TObject *obj)
Definition: AliRDHFCuts.h:273
Double_t GetWeightForpiKK() const
Double_t GetWeightForKKpi() const
AliAODPidHF * fPidHF
enable AOD049 centrality cleanup
Definition: AliRDHFCuts.h:390
Int_t GetGlobalIndex(Int_t iVar, Int_t iPtBin) const
void ApplyCutOnResonances(Bool_t opt=kTRUE)