]>
Commit | Line | Data |
---|---|---|
650b3ced | 1 | #ifndef ALIRDHFCUTSD0TOKPI_H |
2 | #define ALIRDHFCUTSD0TOKPI_H | |
3 | /* Copyright(c) 1998-2010, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
27de2dfb | 6 | /* $Id$ */ |
7 | ||
650b3ced | 8 | //*********************************************************** |
9 | // Class AliRDHFCutsD0toKpi | |
10 | // class for cuts on AOD reconstructed D0->Kpi | |
11 | // Author: A.Dainese, andrea.dainese@pd.infn.it | |
12 | //*********************************************************** | |
13 | ||
14 | #include "AliRDHFCuts.h" | |
15 | ||
937e1290 | 16 | class AliAODEvent; |
17 | class AliAODRecoDecayHF; | |
5f25117b | 18 | class AliAODRecoDecayHF2Prong; |
937e1290 | 19 | |
650b3ced | 20 | class AliRDHFCutsD0toKpi : public AliRDHFCuts |
21 | { | |
22 | public: | |
23 | ||
a9b75906 | 24 | AliRDHFCutsD0toKpi(const char* name="CutsD0toKpi"); |
650b3ced | 25 | |
26 | virtual ~AliRDHFCutsD0toKpi(){} | |
27 | ||
28 | AliRDHFCutsD0toKpi(const AliRDHFCutsD0toKpi& source); | |
29 | AliRDHFCutsD0toKpi& operator=(const AliRDHFCutsD0toKpi& source); | |
a6003e0a | 30 | |
31 | using AliRDHFCuts::GetCutVarsForOpt; | |
32 | virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters){ | |
33 | return GetCutVarsForOpt(d,vars,nvars,pdgdaughters,0x0); | |
34 | } | |
35 | virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters,AliAODEvent *aod); | |
650b3ced | 36 | |
37 | using AliRDHFCuts::IsSelected; | |
937e1290 | 38 | virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel) |
39 | {return IsSelected(obj,selectionLevel,0);} | |
40 | virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel,AliAODEvent* aod); | |
41 | ||
3cbc09cd | 42 | Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(0,iPtBin)] : 1.e6);} |
43 | Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(1,iPtBin)] : 1.e6);} | |
937e1290 | 44 | Int_t CombineSelectionLevels(Int_t selectionvalTrack,Int_t selectionvalCand,Int_t selectionvalPID)const; |
c96634a2 | 45 | virtual Bool_t IsInFiducialAcceptance(Double_t pt,Double_t y) const; |
b14fe7f1 | 46 | virtual void SetStandardCutsPP2010(); |
0c22e2ac | 47 | virtual void SetStandardCutsPbPb2010(); |
48 | virtual void SetStandardCutsPbPb2011(); | |
c1235da7 | 49 | void SetStandardCutsPbPb2010Peripherals(); |
937e1290 | 50 | virtual Int_t IsSelectedPID(AliAODRecoDecayHF *rd); |
08ea5c32 | 51 | Int_t IsSelectedPIDdefault(AliAODRecoDecayHF *rd); |
937e1290 | 52 | Int_t IsSelectedSpecialCuts(AliAODRecoDecayHF *d) const; |
53 | void SetUseSpecialCuts(Bool_t useSpecialCuts) {fUseSpecialCuts=useSpecialCuts;} | |
849ad3e5 | 54 | void SetMaximumPtSpecialCuts(Double_t pt) { fPtMaxSpecialCuts=pt; } |
55 | Double_t GetMaximumPtSpecialCuts() const { return fPtMaxSpecialCuts; } | |
39827ef5 | 56 | void SetLowPt(Bool_t lowpt,Double_t ptlow=2.) {fLowPt=lowpt;fPtLowPID=ptlow;} |
937e1290 | 57 | Bool_t GetUseSpecialCuts() const {return fUseSpecialCuts;} |
08ea5c32 | 58 | void SetUseDefaultPID(Bool_t defPID){fDefaultPID=defPID;} |
59 | Bool_t GetIsUsedDefPID(){return fDefaultPID;} | |
39827ef5 | 60 | Double_t GetPtForPIDtight()const {return fPtLowPID;} |
5f25117b | 61 | void SetUseKF(Bool_t useKF); |
62 | Bool_t GetIsUsedKF() const {return fUseKF;} | |
0c22e2ac | 63 | |
64 | ||
650b3ced | 65 | protected: |
5f25117b | 66 | Int_t IsSelectedKF(AliAODRecoDecayHF2Prong* d,AliAODEvent* aod) const; |
67 | ||
68 | Bool_t fUseSpecialCuts; // flag to switch on/off special cuts | |
08ea5c32 | 69 | Bool_t fLowPt; // flag to switch on/off different pid for low pt D0 |
70 | Bool_t fDefaultPID; // flag to switch on/off the default pid | |
5f25117b | 71 | Bool_t fUseKF; // flag to switch on/off D0 selection via KF |
39827ef5 | 72 | Double_t fPtLowPID; // transverse momentum below which the strong PID is applied |
849ad3e5 | 73 | Double_t fPtMaxSpecialCuts; // transverse momentum below which the special cuts are applied |
74 | // if set to zero, used for all pt | |
5f25117b | 75 | |
849ad3e5 | 76 | ClassDef(AliRDHFCutsD0toKpi,7); // class for cuts on AOD reconstructed D0->Kpi |
650b3ced | 77 | }; |
78 | ||
79 | #endif | |
aa8d25fe | 80 |