]>
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 | |
9 | // AliAnalysisTaskSE for the D+ candidates Invariant Mass Histogram and | |
10 | //comparison of heavy-flavour decay candidates | |
11 | // to MC truth (kinematics stored in the AOD) | |
12 | // Renu Bala, bala@to.infn.it | |
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 | ||
47 | Float_t GetUpperMassLimit(){return fUpmasslimit;} | |
48 | Float_t GetLowerMassLimit(){return fLowmasslimit;} | |
49 | Int_t GetNBinsPt(){return fNPtBins;} | |
50 | Double_t GetPtBinLimit(Int_t ibin); | |
51 | Bool_t IspiKpMC(AliAODRecoDecayHF3Prong *d,TClonesArray *arrayMC); | |
52 | Bool_t IspKpiMC(AliAODRecoDecayHF3Prong *d,TClonesArray *arrayMC); | |
53 | Bool_t IspiKpReal(AliAODRecoDecayHF3Prong *d); | |
54 | Bool_t IspKpiReal(AliAODRecoDecayHF3Prong *d); | |
55 | Bool_t IspiKpResonant(AliAODRecoDecayHF3Prong *d,Double_t field); | |
56 | Bool_t IspKpiResonant(AliAODRecoDecayHF3Prong *d,Double_t field); | |
57 | Bool_t VertexingKF(AliAODRecoDecayHF3Prong *d,Int_t *pdgs,Double_t field); | |
58 | Int_t MatchToMCLambdac(AliAODRecoDecayHF3Prong *d,TClonesArray *arrayMC); | |
59 | Bool_t GetLambdacDaugh(AliAODMCParticle *part, TClonesArray *arrayMC); | |
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) | |
97 | TH2F *fTPCSignal3Sigma;//!hist. for LS inv mass (TC) | |
98 | TH2F *fTPCSignal3SigmaReK;//!hist. for LS inv mass (TC) | |
99 | TH2F *fTPCSignal3SigmaRep;//!hist. for LS inv mass (TC) | |
100 | TH2F *fTPCSignal2Sigma;//!hist. for LS inv mass (TC) | |
101 | TH2F *fTPCSignal2SigmaReK;//!hist. for LS inv mass (TC) | |
102 | TH2F *fTPCSignal2SigmaRep;//!hist. for LS inv mass (TC) | |
103 | TNtuple *fNtupleLambdac; //! output ntuple | |
104 | Float_t fUpmasslimit; //upper inv mass limit for histos | |
105 | Float_t fLowmasslimit; //lower inv mass limit for histos | |
106 | Float_t fCutsKF[10]; | |
107 | Int_t fNPtBins; //number of bins in Pt for histograms | |
108 | AliRDHFCutsLctopKpi *fRDCutsAnalysis; //Cuts for Analysis | |
109 | AliRDHFCutsLctopKpi *fRDCutsProduction; //Production Cuts | |
110 | TList *fListCuts; //list of cuts | |
111 | Double_t fArrayBinLimits[kMaxPtBins+1]; //limits for the Pt bins | |
112 | Bool_t fFillNtuple; // flag for filling ntuple | |
113 | Bool_t fReadMC; //flag for access to MC | |
114 | Bool_t fMCPid; //flag for access to MC | |
115 | Bool_t fRealPid; //flag for access to MC | |
116 | Bool_t fResPid; //flag to do LS analysis | |
117 | Bool_t fUseKF; //flag to do LS analysis | |
118 | AliAnalysisVertexingHF *fVHF; // Vertexer heavy flavour (used to pass the cuts) | |
119 | ||
120 | ClassDef(AliAnalysisTaskSELambdac,1); // AliAnalysisTaskSE for the MC association of heavy-flavour decay candidates | |
121 | }; | |
122 | ||
123 | #endif | |
124 |