]>
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 | ||
29 | virtual void GetCutVarsForOpt(AliAODRecoDecayHF *d,Float_t *vars,Int_t nvars,Int_t *pdgdaughters); | |
7ad4b782 | 30 | void SetPidpion(AliAODPidHF* pidPion) { |
31 | if(fPidObjpion) delete fPidObjpion; | |
32 | fPidObjpion=new AliAODPidHF(*pidPion); | |
33 | } | |
34 | void SetPidprot(AliAODPidHF* pidProt) { | |
35 | if(fPidObjprot) delete fPidObjprot; | |
36 | fPidObjprot=new AliAODPidHF(*pidProt); | |
37 | } | |
38 | ||
39 | virtual void SetStandardCutsPP2010(); | |
a8b8e864 | 40 | virtual void SetStandardCutsPbPb2010(); |
7ad4b782 | 41 | |
42 | void SetRecoKF() {fRecoKF=kTRUE;} | |
43 | Bool_t GetRecoKF() {return fRecoKF;} | |
44 | ||
45 | AliAODPidHF* GetPidpion() const {return fPidObjpion;} | |
46 | AliAODPidHF* GetPidprot() const {return fPidObjprot;} | |
47 | ||
e3d40058 | 48 | |
49 | using AliRDHFCuts::IsSelected; | |
7ad4b782 | 50 | virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel) |
51 | {return IsSelected(obj,selectionLevel,0);} | |
52 | virtual Int_t IsSelected(TObject* obj,Int_t selectionLevel,AliAODEvent *aod); | |
53 | using AliRDHFCuts::IsSelectedPID; | |
54 | virtual Int_t IsSelectedPID(AliAODRecoDecayHF* obj); | |
55 | Int_t CombinePIDCuts (Int_t returnvalue, Int_t returnvaluePID) const; | |
e3d40058 | 56 | |
57 | Float_t GetMassCut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(0,iPtBin)] : 1.e6);} | |
58 | Float_t GetDCACut(Int_t iPtBin=0) const { return (GetCuts() ? fCutsRD[GetGlobalIndex(11,iPtBin)] : 1.e6);} | |
59 | ||
7ad4b782 | 60 | Bool_t ReconstructKF(AliAODRecoDecayHF3Prong *d,Int_t *pdgs,Double_t field) const; |
e3d40058 | 61 | protected: |
7ad4b782 | 62 | AliAODPidHF *fPidObjprot; |
63 | AliAODPidHF *fPidObjpion; | |
64 | Bool_t fRecoKF; | |
e3d40058 | 65 | |
a8b8e864 | 66 | ClassDef(AliRDHFCutsLctopKpi,3); // class for cuts on AOD reconstructed Lc->pKpi |
e3d40058 | 67 | }; |
68 | ||
69 | #endif | |
a8b8e864 | 70 |