]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIANALYSISTASKDPLUS_H | |
2 | #define ALIANALYSISTASKDPLUS_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 AliAnalysisTaskSEDplus | |
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 | // F. Prino, prino@to.infn.it | |
14 | // G. Ortona, ortona@to.infn.it | |
15 | //************************************************************************* | |
16 | ||
17 | #include <TROOT.h> | |
18 | #include <TSystem.h> | |
19 | #include <TNtuple.h> | |
20 | #include <TH1F.h> | |
21 | #include <TArrayD.h> | |
22 | ||
23 | #include "AliRDHFCutsDplustoKpipi.h" | |
24 | #include "AliAnalysisTaskSE.h" | |
25 | #include "AliAnalysisVertexingHF.h" | |
26 | ||
27 | class AliAnalysisTaskSEDplus : public AliAnalysisTaskSE | |
28 | { | |
29 | public: | |
30 | ||
31 | AliAnalysisTaskSEDplus(); | |
32 | AliAnalysisTaskSEDplus(const char *name, AliRDHFCutsDplustoKpipi* analysiscuts,AliRDHFCutsDplustoKpipi* productioncuts,Bool_t fillNtuple=kFALSE); | |
33 | virtual ~AliAnalysisTaskSEDplus(); | |
34 | ||
35 | void SetReadMC(Bool_t readMC=kTRUE){fReadMC=readMC;} | |
36 | void SetDoLikeSign(Bool_t dols=kTRUE){fDoLS=dols;} | |
37 | void SetMassLimits(Float_t range); | |
38 | void SetMassLimits(Float_t lowlimit, Float_t uplimit); | |
39 | void SetPtBinLimit(Int_t n, Float_t *limitarray); | |
40 | void SetBinWidth(Float_t w); | |
41 | ||
42 | Float_t GetUpperMassLimit(){return fUpmasslimit;} | |
43 | Float_t GetLowerMassLimit(){return fLowmasslimit;} | |
44 | Int_t GetNBinsPt(){return fNPtBins;} | |
45 | Double_t GetPtBinLimit(Int_t ibin); | |
46 | Float_t GetBinWidth(){return fBinWidth;} | |
47 | Int_t GetNBinsHistos(); | |
48 | ||
49 | void LSAnalysis(TClonesArray *arrayOppositeSign,TClonesArray *arrayLikeSign,AliAODEvent *aod,AliAODVertex *vtx1, Int_t nDplusOS); | |
50 | ||
51 | // Implementation of interface methods | |
52 | virtual void UserCreateOutputObjects(); | |
53 | virtual void Init(); | |
54 | virtual void LocalInit() {Init();} | |
55 | virtual void UserExec(Option_t *option); | |
56 | virtual void Terminate(Option_t *option); | |
57 | ||
58 | private: | |
59 | ||
60 | AliAnalysisTaskSEDplus(const AliAnalysisTaskSEDplus &source); | |
61 | AliAnalysisTaskSEDplus& operator=(const AliAnalysisTaskSEDplus& source); | |
62 | Int_t GetHistoIndex(Int_t iPtBin) const { return iPtBin*3;} | |
63 | Int_t GetSignalHistoIndex(Int_t iPtBin) const { return iPtBin*3+1;} | |
64 | Int_t GetBackgroundHistoIndex(Int_t iPtBin) const { return iPtBin*3+2;} | |
65 | Int_t GetLSHistoIndex(Int_t iPtBin)const { return iPtBin*5;} | |
66 | ||
67 | enum {kMaxPtBins=20}; | |
68 | ||
69 | TList *fOutput; //! list send on output slot 0 | |
70 | TH1F *fHistNEvents; //!hist. for No. of events | |
71 | TH1F *fMassHist[3*kMaxPtBins]; //!hist. for inv mass (LC) | |
72 | TH1F* fCosPHist[3*kMaxPtBins]; //!hist. for PointingAngle (LC) | |
73 | TH1F* fDLenHist[3*kMaxPtBins]; //!hist. for Dec Length (LC) | |
74 | TH1F* fSumd02Hist[3*kMaxPtBins]; //!hist. for sum d02 (LC) | |
75 | TH1F* fSigVertHist[3*kMaxPtBins]; //!hist. for sigVert (LC) | |
76 | TH1F* fPtMaxHist[3*kMaxPtBins]; //!hist. for Pt Max (LC) | |
77 | TH1F* fDCAHist[3*kMaxPtBins]; //!hist. for DCA (LC) | |
78 | TH1F *fMassHistTC[3*kMaxPtBins]; //!hist. for inv mass (TC) | |
79 | TH1F *fMassHistLS[5*kMaxPtBins];//!hist. for LS inv mass (LC) | |
80 | TH1F *fCosPHistLS[3*kMaxPtBins];//!hist. for LS cuts variable 1 (LC) | |
81 | TH1F *fDLenHistLS[3*kMaxPtBins];//!hist. for LS cuts variable 2 (LC) | |
82 | TH1F *fSumd02HistLS[3*kMaxPtBins];//!hist. for LS cuts variable 3 (LC) | |
83 | TH1F *fSigVertHistLS[3*kMaxPtBins];//!hist. for LS cuts variable 4 (LC) | |
84 | TH1F *fPtMaxHistLS[3*kMaxPtBins];//!hist. for LS cuts variable 5 (LC) | |
85 | TH1F *fDCAHistLS[3*kMaxPtBins];//!hist. for LS cuts variable 6 (LC) | |
86 | TH1F *fMassHistLSTC[5*kMaxPtBins];//!hist. for LS inv mass (TC) | |
87 | TNtuple *fNtupleDplus; //! output ntuple | |
88 | Float_t fUpmasslimit; //upper inv mass limit for histos | |
89 | Float_t fLowmasslimit; //lower inv mass limit for histos | |
90 | Int_t fNPtBins; //Number of Pt Bins | |
91 | Float_t fBinWidth;//width of one bin in output histos | |
92 | TList *fListCuts; //list of cuts | |
93 | AliRDHFCutsDplustoKpipi *fRDCutsProduction; //Production D+ Cuts | |
94 | AliRDHFCutsDplustoKpipi *fRDCutsAnalysis; //Cuts for Analysis | |
95 | Double_t fArrayBinLimits[kMaxPtBins+1]; //limits for the Pt bins | |
96 | Bool_t fFillNtuple; // flag for filling ntuple | |
97 | Bool_t fReadMC; //flag for access to MC | |
98 | Bool_t fDoLS; //flag to do LS analysis | |
99 | ||
100 | ClassDef(AliAnalysisTaskSEDplus,6); // AliAnalysisTaskSE for the MC association of heavy-flavour decay candidates | |
101 | }; | |
102 | ||
103 | #endif |