]>
Commit | Line | Data |
---|---|---|
d486095a | 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 | ||
27de2dfb | 7 | /* $Id$ */ |
8 | ||
d486095a | 9 | //************************************************************************* |
10 | // Class AliAnalysisTaskSEDplus | |
4afc48a2 | 11 | // AliAnalysisTaskSE for the D+ candidates Invariant Mass Histogram and |
12 | //comparison of heavy-flavour decay candidates | |
d486095a | 13 | // to MC truth (kinematics stored in the AOD) |
4afc48a2 | 14 | // Renu Bala, bala@to.infn.it |
993bfba1 | 15 | // F. Prino, prino@to.infn.it |
16 | // G. Ortona, ortona@to.infn.it | |
d486095a | 17 | //************************************************************************* |
18 | ||
19 | #include <TROOT.h> | |
20 | #include <TSystem.h> | |
21 | #include <TNtuple.h> | |
22 | #include <TH1F.h> | |
595cc7e2 | 23 | #include <TH2F.h> |
82bb8d4b | 24 | #include <TArrayD.h> |
d486095a | 25 | |
4c230f6d | 26 | #include "AliRDHFCutsDplustoKpipi.h" |
d486095a | 27 | #include "AliAnalysisTaskSE.h" |
28 | #include "AliAnalysisVertexingHF.h" | |
a96083b9 | 29 | #include "AliNormalizationCounter.h" |
d486095a | 30 | |
31 | class AliAnalysisTaskSEDplus : public AliAnalysisTaskSE | |
32 | { | |
33 | public: | |
34 | ||
35 | AliAnalysisTaskSEDplus(); | |
4c230f6d | 36 | AliAnalysisTaskSEDplus(const char *name, AliRDHFCutsDplustoKpipi* analysiscuts,AliRDHFCutsDplustoKpipi* productioncuts,Bool_t fillNtuple=kFALSE); |
d486095a | 37 | virtual ~AliAnalysisTaskSEDplus(); |
82bb8d4b | 38 | |
4afc48a2 | 39 | void SetReadMC(Bool_t readMC=kTRUE){fReadMC=readMC;} |
40 | void SetDoLikeSign(Bool_t dols=kTRUE){fDoLS=dols;} | |
a96083b9 | 41 | void SetUseStrangeness(Bool_t uses=kTRUE){fUseStrangeness=uses;} |
82bb8d4b | 42 | void SetMassLimits(Float_t range); |
43 | void SetMassLimits(Float_t lowlimit, Float_t uplimit); | |
4c230f6d | 44 | void SetPtBinLimit(Int_t n, Float_t *limitarray); |
993bfba1 | 45 | void SetBinWidth(Float_t w); |
82bb8d4b | 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); | |
993bfba1 | 51 | Float_t GetBinWidth(){return fBinWidth;} |
52 | Int_t GetNBinsHistos(); | |
82bb8d4b | 53 | |
54 | void LSAnalysis(TClonesArray *arrayOppositeSign,TClonesArray *arrayLikeSign,AliAODEvent *aod,AliAODVertex *vtx1, Int_t nDplusOS); | |
55 | ||
d486095a | 56 | // Implementation of interface methods |
57 | virtual void UserCreateOutputObjects(); | |
58 | virtual void Init(); | |
59 | virtual void LocalInit() {Init();} | |
60 | virtual void UserExec(Option_t *option); | |
61 | virtual void Terminate(Option_t *option); | |
4afc48a2 | 62 | |
d486095a | 63 | private: |
64 | ||
65 | AliAnalysisTaskSEDplus(const AliAnalysisTaskSEDplus &source); | |
66 | AliAnalysisTaskSEDplus& operator=(const AliAnalysisTaskSEDplus& source); | |
82bb8d4b | 67 | Int_t GetHistoIndex(Int_t iPtBin) const { return iPtBin*3;} |
68 | Int_t GetSignalHistoIndex(Int_t iPtBin) const { return iPtBin*3+1;} | |
69 | Int_t GetBackgroundHistoIndex(Int_t iPtBin) const { return iPtBin*3+2;} | |
70 | Int_t GetLSHistoIndex(Int_t iPtBin)const { return iPtBin*5;} | |
71 | ||
73173a6a | 72 | enum {kMaxPtBins=20}; |
82bb8d4b | 73 | |
d486095a | 74 | TList *fOutput; //! list send on output slot 0 |
4afc48a2 | 75 | TH1F *fHistNEvents; //!hist. for No. of events |
82bb8d4b | 76 | TH1F *fMassHist[3*kMaxPtBins]; //!hist. for inv mass (LC) |
ba9ae5b2 | 77 | TH1F* fCosPHist[3*kMaxPtBins]; //!hist. for PointingAngle (LC) |
78 | TH1F* fDLenHist[3*kMaxPtBins]; //!hist. for Dec Length (LC) | |
79 | TH1F* fSumd02Hist[3*kMaxPtBins]; //!hist. for sum d02 (LC) | |
80 | TH1F* fSigVertHist[3*kMaxPtBins]; //!hist. for sigVert (LC) | |
81 | TH1F* fPtMaxHist[3*kMaxPtBins]; //!hist. for Pt Max (LC) | |
82 | TH1F* fDCAHist[3*kMaxPtBins]; //!hist. for DCA (LC) | |
82bb8d4b | 83 | TH1F *fMassHistTC[3*kMaxPtBins]; //!hist. for inv mass (TC) |
bb69f127 | 84 | TH1F *fMassHistTCPlus[3*kMaxPtBins]; //!hist. for D+ inv mass (TC) |
85 | TH1F *fMassHistTCMinus[3*kMaxPtBins]; //!hist. for D- inv mass (TC) | |
82bb8d4b | 86 | TH1F *fMassHistLS[5*kMaxPtBins];//!hist. for LS inv mass (LC) |
ba9ae5b2 | 87 | TH1F *fCosPHistLS[3*kMaxPtBins];//!hist. for LS cuts variable 1 (LC) |
88 | TH1F *fDLenHistLS[3*kMaxPtBins];//!hist. for LS cuts variable 2 (LC) | |
89 | TH1F *fSumd02HistLS[3*kMaxPtBins];//!hist. for LS cuts variable 3 (LC) | |
90 | TH1F *fSigVertHistLS[3*kMaxPtBins];//!hist. for LS cuts variable 4 (LC) | |
91 | TH1F *fPtMaxHistLS[3*kMaxPtBins];//!hist. for LS cuts variable 5 (LC) | |
92 | TH1F *fDCAHistLS[3*kMaxPtBins];//!hist. for LS cuts variable 6 (LC) | |
82bb8d4b | 93 | TH1F *fMassHistLSTC[5*kMaxPtBins];//!hist. for LS inv mass (TC) |
37fc80e6 | 94 | TH1F *fHistCentrality[3];//!hist. for cent distr (all,sel ev, ) |
595cc7e2 | 95 | TH2F *fPtVsMass; //! hist. of pt vs. mass (prod. cuts) |
96 | TH2F *fPtVsMassTC; //! hist. of pt vs. mass (analysis cuts) | |
97 | TH2F *fYVsPt; //! hist. of Y vs. Pt (prod. cuts) | |
98 | TH2F *fYVsPtTC; //! hist. of Y vs. Pt (analysis cuts) | |
99 | TH2F *fYVsPtSig; //! hist. of Y vs. Pt (MC, only sig, prod. cuts) | |
100 | TH2F *fYVsPtSigTC; //! hist. of Y vs. Pt (MC, only sig, analysis cuts) | |
1f4e9722 | 101 | TNtuple *fNtupleDplus; //! output ntuple |
82bb8d4b | 102 | Float_t fUpmasslimit; //upper inv mass limit for histos |
103 | Float_t fLowmasslimit; //lower inv mass limit for histos | |
4c230f6d | 104 | Int_t fNPtBins; //Number of Pt Bins |
993bfba1 | 105 | Float_t fBinWidth;//width of one bin in output histos |
4c230f6d | 106 | TList *fListCuts; //list of cuts |
107 | AliRDHFCutsDplustoKpipi *fRDCutsProduction; //Production D+ Cuts | |
108 | AliRDHFCutsDplustoKpipi *fRDCutsAnalysis; //Cuts for Analysis | |
a96083b9 | 109 | AliNormalizationCounter *fCounter;//!Counter for normalization |
82bb8d4b | 110 | Double_t fArrayBinLimits[kMaxPtBins+1]; //limits for the Pt bins |
1f4e9722 | 111 | Bool_t fFillNtuple; // flag for filling ntuple |
82bb8d4b | 112 | Bool_t fReadMC; //flag for access to MC |
a96083b9 | 113 | Bool_t fUseStrangeness;//flag to enhance strangeness in MC to fit to data |
82bb8d4b | 114 | Bool_t fDoLS; //flag to do LS analysis |
d486095a | 115 | |
37fc80e6 | 116 | ClassDef(AliAnalysisTaskSEDplus,10); // AliAnalysisTaskSE for the MC association of heavy-flavour decay candidates |
d486095a | 117 | }; |
118 | ||
119 | #endif |