]>
Commit | Line | Data |
---|---|---|
e3d40058 | 1 | #ifndef ALIRDHFCUTSLCTOPKPI_H |
2 | #define ALIRDHFCUTSLCTOPKPI_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 | // Class AliRDHFCutsLctopKpi | |
10 | // class for cuts on AOD reconstructed Lc->pKpi | |
11 | // Author: A.Dainese, andrea.dainese@pd.infn.it | |
12 | //*********************************************************** | |
13 | ||
14 | #include "AliRDHFCuts.h" | |
7ad4b782 | 15 | #include "AliAODPidHF.h" |
16 | #include "AliAODRecoDecayHF3Prong.h" | |
e3d40058 | 17 | |
18 | class AliRDHFCutsLctopKpi : public AliRDHFCuts | |
19 | { | |
20 | public: | |
21 | ||
a9b75906 | 22 | AliRDHFCutsLctopKpi(const char* name="CutsLctopKpi"); |
e3d40058 | 23 | |
7ad4b782 | 24 | virtual ~AliRDHFCutsLctopKpi(); |
e3d40058 | 25 | |
26 | AliRDHFCutsLctopKpi(const AliRDHFCutsLctopKpi& source); | |
27 | AliRDHFCutsLctopKpi& operator=(const AliRDHFCutsLctopKpi& source); | |
28 | ||
ed2d2734 | 29 | using AliRDHFCuts::GetCutVarsForOpt; |
e3d40058 | 30 | virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters); |
a6003e0a | 31 | |
7ad4b782 | 32 | void SetPidpion(AliAODPidHF* pidPion) { |
33 | if(fPidObjpion) delete fPidObjpion; | |
34 | fPidObjpion=new AliAODPidHF(*pidPion); | |
35 | } | |
36 | void SetPidprot(AliAODPidHF* pidProt) { | |
37 | if(fPidObjprot) delete fPidObjprot; | |
38 | fPidObjprot=new AliAODPidHF(*pidProt); | |
39 | } | |
40 | ||
41 | virtual void SetStandardCutsPP2010(); | |
a8b8e864 | 42 | virtual void SetStandardCutsPbPb2010(); |
7ad4b782 | 43 | |
44 | void SetRecoKF() {fRecoKF=kTRUE;} | |
45 | Bool_t GetRecoKF() {return fRecoKF;} | |
46 | ||
47 | AliAODPidHF* GetPidpion() const {return fPidObjpion;} | |
48 | AliAODPidHF* GetPidprot() const {return fPidObjprot;} | |
49 | ||
e3d40058 | 50 | |
51 | using AliRDHFCuts::IsSelected; | |
7ad4b782 | 52 | virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel) |
53 | {return IsSelected(obj,selectionLevel,0);} | |
54 | virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel,AliAODEvent *aod); | |
55 | using AliRDHFCuts::IsSelectedPID; | |
56 | virtual Int_t IsSelectedPID(AliAODRecoDecayHF* obj); | |
11690a06 | 57 | Int_t IsSelectedCombinedPID(AliAODRecoDecayHF* obj); |
7ad4b782 | 58 | Int_t CombinePIDCuts (Int_t returnvalue, Int_t returnvaluePID) const; |
e3d40058 | 59 | |
60 | Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(0,iPtBin)] : 1.e6);} | |
61 | Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(11,iPtBin)] : 1.e6);} | |
62 | ||
7ad4b782 | 63 | Bool_t ReconstructKF(AliAODRecoDecayHF3Prong *d,Int_t *pdgs,Double_t field) const; |
e3d40058 | 64 | protected: |
7ad4b782 | 65 | AliAODPidHF *fPidObjprot; |
66 | AliAODPidHF *fPidObjpion; | |
67 | Bool_t fRecoKF; | |
e3d40058 | 68 | |
a8b8e864 | 69 | ClassDef(AliRDHFCutsLctopKpi,3); // class for cuts on AOD reconstructed Lc->pKpi |
e3d40058 | 70 | }; |
71 | ||
72 | #endif | |
a8b8e864 | 73 |