]>
Commit | Line | Data |
---|---|---|
e3d40058 | 1 | #ifndef ALIRDHFCUTSDPLUSTOKPIPI_H |
2 | #define ALIRDHFCUTSDPLUSTOKPIPI_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 | ||
e3d40058 | 8 | |
9 | ///////////////////////////////////////////////////////////// | |
10 | // | |
11 | // Class for cuts on AOD reconstructed D+->Kpipi | |
12 | // | |
13 | // Author: R. Bala bala@to.infn.it | |
14 | // G. Ortona ortona@to.infn.it | |
15 | ///////////////////////////////////////////////////////////// | |
16 | ||
17 | ||
18 | #include "AliRDHFCuts.h" | |
73173a6a | 19 | #include "AliAODPidHF.h" |
e3d40058 | 20 | class AliRDHFCutsDplustoKpipi : public AliRDHFCuts |
21 | { | |
22 | public: | |
23 | ||
a9b75906 | 24 | AliRDHFCutsDplustoKpipi(const char* name="CutsDplustoKpipi"); |
e3d40058 | 25 | |
73173a6a | 26 | virtual ~AliRDHFCutsDplustoKpipi(){}; |
e3d40058 | 27 | AliRDHFCutsDplustoKpipi(const AliRDHFCutsDplustoKpipi& source); |
28 | AliRDHFCutsDplustoKpipi& operator=(const AliRDHFCutsDplustoKpipi& source); | |
a6003e0a | 29 | |
30 | using AliRDHFCuts::GetCutVarsForOpt; | |
31 | virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters){ | |
32 | return GetCutVarsForOpt(d,vars,nvars,pdgdaughters,0x0); | |
33 | } | |
34 | virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters,AliAODEvent *aod); | |
e3d40058 | 35 | |
36 | using AliRDHFCuts::IsSelected; | |
c1cc7a53 | 37 | virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel){ |
38 | return IsSelected(obj,selectionLevel,0x0); | |
39 | } | |
40 | virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel,AliAODEvent* aod); | |
bc116f28 | 41 | virtual Int_t IsSelectedPID(AliAODRecoDecayHF *rd); |
73173a6a | 42 | |
c1cc7a53 | 43 | virtual Bool_t IsInFiducialAcceptance(Double_t pt,Double_t y) const; |
370f7180 | 44 | virtual void SetStandardCutsPP2010(); |
45 | virtual void SetStandardCutsPbPb2010(); | |
73173a6a | 46 | |
e3d40058 | 47 | Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(0,iPtBin)] : 1.e6);} |
4755453e | 48 | Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(1,iPtBin)] : 1.e6);} |
a6003e0a | 49 | void SetUseStrongPid(Int_t spid){fUseStrongPid=spid;} |
50 | void SetMaxPtStrongPid(Float_t spid){fMaxPtStrongPid=spid;} | |
51 | Int_t GetStrongPid() const {return fUseStrongPid;} | |
52 | Float_t GetMaxPtStrongPid(){return fMaxPtStrongPid;} | |
48ebbb57 | 53 | void SetUseImpParProdCorrCut(Bool_t use){ |
54 | fUseImpParProdCorrCut=use; | |
55 | } | |
56 | Bool_t GetUseImpParProdCorrCut() const { | |
57 | return fUseImpParProdCorrCut; | |
58 | } | |
e3d40058 | 59 | |
60 | protected: | |
e3d40058 | 61 | |
da24b73f | 62 | private: |
a6003e0a | 63 | Int_t fUseStrongPid; //use strong pid 0 no,1 only for K,2 both pi and K |
64 | Float_t fMaxPtStrongPid;//Maximum pt to apply strong Pid | |
48ebbb57 | 65 | Bool_t fUseImpParProdCorrCut; //switch for d0K*d0pi1 vs. d0K*d0pi2 cut |
66 | ||
a6003e0a | 67 | ClassDef(AliRDHFCutsDplustoKpipi,4); // class for cuts on AOD reconstructed |
4755453e | 68 | // D+->Kpipi |
e3d40058 | 69 | }; |
70 | ||
71 | #endif |