]>
Commit | Line | Data |
---|---|---|
7eb0cc73 | 1 | #ifndef ALIANALYSISTASKLAMBDAC_H |
2 | #define ALIANALYSISTASKLAMBDAC_H | |
3 | ||
4 | /* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | //************************************************************************* | |
8 | // Class AliAnalysisTaskSELambdac | |
4c7fd068 | 9 | // AliAnalysisTaskSE for the Lambdac candidates Invariant Mass Histogram and |
7eb0cc73 | 10 | //comparison of heavy-flavour decay candidates |
11 | // to MC truth (kinematics stored in the AOD) | |
4c7fd068 | 12 | // r.romita@gsi.de |
7eb0cc73 | 13 | //************************************************************************* |
14 | ||
15 | #include <TROOT.h> | |
16 | #include <TSystem.h> | |
17 | #include <TNtuple.h> | |
18 | #include <TH1F.h> | |
19 | #include <TH2F.h> | |
20 | #include <TArrayD.h> | |
21 | ||
22 | #include "AliAnalysisTaskSE.h" | |
23 | #include "AliAnalysisVertexingHF.h" | |
24 | #include "AliAODMCParticle.h" | |
25 | #include "AliRDHFCutsLctopKpi.h" | |
26 | #include "AliRDHFCuts.h" | |
27 | #include "TClonesArray.h" | |
28 | ||
29 | class AliAnalysisTaskSELambdac : public AliAnalysisTaskSE | |
30 | { | |
31 | public: | |
32 | ||
33 | AliAnalysisTaskSELambdac(); | |
34 | AliAnalysisTaskSELambdac(const char *name, Bool_t fillNtuple,AliRDHFCutsLctopKpi *lccutsana, AliRDHFCutsLctopKpi *lccutsprod); | |
35 | virtual ~AliAnalysisTaskSELambdac(); | |
36 | ||
37 | void SetReadMC(Bool_t readMC=kTRUE){fReadMC=readMC;} | |
38 | void SetMCPid(){fMCPid=kTRUE;fReadMC=kTRUE;fRealPid=kFALSE;fResPid=kFALSE;return;} | |
39 | void SetRealPid(){fRealPid=kTRUE;fMCPid=kFALSE;fResPid=kFALSE;return;} | |
40 | void SetResonantPid(){fResPid=kTRUE;fRealPid=kFALSE;fMCPid=kFALSE;return;} | |
41 | void SetCutsKF(Float_t cutsKF[10]){for(Int_t i=0;i<10;i++){fCutsKF[i]=cutsKF[i];}return;} | |
42 | void SetUseKF(Bool_t useKF=kTRUE){fUseKF=useKF;} | |
43 | void SetMassLimits(Float_t range); | |
44 | void SetMassLimits(Float_t lowlimit, Float_t uplimit); | |
45 | void SetPtBinLimit(Int_t n, Float_t *limitarray); | |
46 | ||
4c7fd068 | 47 | Float_t GetUpperMassLimit() const {return fUpmasslimit;} |
48 | Float_t GetLowerMassLimit() const {return fLowmasslimit;} | |
49 | Int_t GetNBinsPt() const {return fNPtBins;} | |
50 | Double_t GetPtBinLimit(Int_t ibin) const ; | |
51 | Bool_t IspiKpMC(AliAODRecoDecayHF3Prong *d,TClonesArray *arrayMC) const ; | |
52 | Bool_t IspKpiMC(AliAODRecoDecayHF3Prong *d,TClonesArray *arrayMC,Int_t *pdgs) const ; | |
53 | Bool_t IspiKpReal(AliAODRecoDecayHF3Prong *d) const ; | |
54 | Bool_t IspKpiReal(AliAODRecoDecayHF3Prong *d) const ; | |
55 | Bool_t IspiKpResonant(AliAODRecoDecayHF3Prong *d,Double_t field) const ; | |
56 | Bool_t IspKpiResonant(AliAODRecoDecayHF3Prong *d,Double_t field) const ; | |
57 | Bool_t VertexingKF(AliAODRecoDecayHF3Prong *d,Int_t *pdgs,Double_t field) const ; | |
58 | Int_t MatchToMCLambdac(AliAODRecoDecayHF3Prong *d,TClonesArray *arrayMC) const ; | |
59 | Bool_t GetLambdacDaugh(AliAODMCParticle *part, TClonesArray *arrayMC) const ; | |
7eb0cc73 | 60 | |
61 | // Implementation of interface methods | |
62 | virtual void UserCreateOutputObjects(); | |
63 | virtual void Init(); | |
64 | virtual void LocalInit() {Init();} | |
65 | virtual void UserExec(Option_t *option); | |
66 | virtual void Terminate(Option_t *option); | |
67 | ||
68 | private: | |
69 | ||
70 | AliAnalysisTaskSELambdac(const AliAnalysisTaskSELambdac &source); | |
71 | AliAnalysisTaskSELambdac& operator=(const AliAnalysisTaskSELambdac& source); | |
72 | Int_t GetHistoIndex(Int_t iPtBin) const { return iPtBin*3;} | |
73 | Int_t GetSignalHistoIndex(Int_t iPtBin) const { return iPtBin*3+1;} | |
74 | Int_t GetBackgroundHistoIndex(Int_t iPtBin) const { return iPtBin*3+2;} | |
75 | Int_t GetLSHistoIndex(Int_t iPtBin)const { return iPtBin*5;} | |
76 | ||
77 | enum {kMaxPtBins=10}; | |
78 | ||
79 | TList *fOutput; //! list send on output slot 0 | |
80 | TH1F *fHistNEvents; //!hist. for No. of events | |
81 | TH1F *fMassHist[3*kMaxPtBins]; //!hist. for inv mass (LC) | |
82 | TH1F* fCosPHist[3*kMaxPtBins]; //!hist. for PointingAngle (LC) | |
83 | TH1F* fDLenHist[3*kMaxPtBins]; //!hist. for Dec Length (LC) | |
84 | TH1F* fSumd02Hist[3*kMaxPtBins]; //!hist. for sum d02 (LC) | |
85 | TH1F* fSigVertHist[3*kMaxPtBins]; //!hist. for sigVert (LC) | |
86 | TH1F* fPtMaxHist[3*kMaxPtBins]; //!hist. for Pt Max (LC) | |
87 | TH1F* fDCAHist[3*kMaxPtBins]; //!hist. for DCA (LC) | |
88 | TH1F *fMassHistTC[3*kMaxPtBins]; //!hist. for inv mass (TC) | |
89 | TH1F *fMassHistLS[5*kMaxPtBins];//!hist. for LS inv mass (LC) | |
90 | TH1F *fCosPHistLS[3*kMaxPtBins];//!hist. for LS cuts variable 1 (LC) | |
91 | TH1F *fDLenHistLS[3*kMaxPtBins];//!hist. for LS cuts variable 2 (LC) | |
92 | TH1F *fSumd02HistLS[3*kMaxPtBins];//!hist. for LS cuts variable 3 (LC) | |
93 | TH1F *fSigVertHistLS[3*kMaxPtBins];//!hist. for LS cuts variable 4 (LC) | |
94 | TH1F *fPtMaxHistLS[3*kMaxPtBins];//!hist. for LS cuts variable 5 (LC) | |
95 | TH1F *fDCAHistLS[3*kMaxPtBins];//!hist. for LS cuts variable 6 (LC) | |
96 | TH1F *fMassHistLSTC[5*kMaxPtBins];//!hist. for LS inv mass (TC) | |
7eb0cc73 | 97 | TNtuple *fNtupleLambdac; //! output ntuple |
98 | Float_t fUpmasslimit; //upper inv mass limit for histos | |
99 | Float_t fLowmasslimit; //lower inv mass limit for histos | |
100 | Float_t fCutsKF[10]; | |
101 | Int_t fNPtBins; //number of bins in Pt for histograms | |
102 | AliRDHFCutsLctopKpi *fRDCutsAnalysis; //Cuts for Analysis | |
103 | AliRDHFCutsLctopKpi *fRDCutsProduction; //Production Cuts | |
104 | TList *fListCuts; //list of cuts | |
105 | Double_t fArrayBinLimits[kMaxPtBins+1]; //limits for the Pt bins | |
106 | Bool_t fFillNtuple; // flag for filling ntuple | |
107 | Bool_t fReadMC; //flag for access to MC | |
108 | Bool_t fMCPid; //flag for access to MC | |
109 | Bool_t fRealPid; //flag for access to MC | |
110 | Bool_t fResPid; //flag to do LS analysis | |
111 | Bool_t fUseKF; //flag to do LS analysis | |
112 | AliAnalysisVertexingHF *fVHF; // Vertexer heavy flavour (used to pass the cuts) | |
113 | ||
4c7fd068 | 114 | ClassDef(AliAnalysisTaskSELambdac,2); // AliAnalysisTaskSE for the invariant mass analysis of heavy-flavour decay candidates (Lambdac) |
7eb0cc73 | 115 | }; |
116 | ||
117 | #endif | |
118 |