]>
Commit | Line | Data |
---|---|---|
cbedddce | 1 | #ifndef ALIANALYSISTASKSESIGNIFICANCE_H |
2 | #define ALIANALYSISTASKSESIGNIFICANCE_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 | // AliAnalysisTaskSESignificane to calculate effects on | |
9 | // significance of D mesons cut | |
10 | // Authors: G. Ortona, ortona@to.infn.it | |
11 | // F. Prino, prino@to.infn.it | |
12 | // Renu Bala, bala@to.infn.it | |
13 | // Chiara Bianchin, cbianchi@pd.infn.it | |
14 | //************************************************************************* | |
15 | ||
16 | #include "AliAnalysisTaskSE.h" | |
17 | #include "AliAnalysisVertexingHF.h" | |
18 | ||
19 | class TH1F; | |
20 | class AliMultiDimVector; | |
21 | class AliRDHFCuts; | |
22 | ||
23 | class AliAnalysisTaskSESignificance : public AliAnalysisTaskSE | |
24 | { | |
25 | public: | |
26 | ||
27 | AliAnalysisTaskSESignificance(); | |
28 | AliAnalysisTaskSESignificance(const char *name, TList *listMDV,AliRDHFCuts *RDCuts, Int_t decaychannel,Int_t selectionlevel=AliRDHFCuts::kAll); | |
29 | ||
30 | virtual ~AliAnalysisTaskSESignificance(); | |
31 | ||
3aa6ce53 | 32 | Bool_t CheckConsistency(); |
cbedddce | 33 | void SetReadMC(Bool_t readMC=kTRUE){fReadMC=readMC;} |
34 | void SetMassLimits(Float_t range,Int_t pdg); | |
35 | void SetMassLimits(Float_t lowlimit, Float_t uplimit); | |
f80a6da9 | 36 | void SetNBins(Int_t nbins){fNBins=nbins;} |
37 | void SetFillWithPartAntiPartBoth(Int_t value){fPartOrAndAntiPart=value;} | |
cbedddce | 38 | //void SetMultiVector(const AliMultiDimVector *MultiDimVec){fMultiDimVec->CopyStructure(MultiDimVec);} |
f80a6da9 | 39 | Float_t GetUpperMassLimit()const {return fUpmasslimit;} |
40 | Float_t GetLowerMassLimit()const {return fLowmasslimit;} | |
41 | Int_t GetNBins()const {return fNBins;} | |
42 | Int_t GetFillWithPartAntiPartBoth()const {return fPartOrAndAntiPart;} | |
43 | ||
cbedddce | 44 | // Implementation of interface methods |
45 | virtual void UserCreateOutputObjects(); | |
46 | virtual void LocalInit();// {Init();} | |
47 | virtual void UserExec(Option_t *option); | |
48 | virtual void Terminate(Option_t *option); | |
49 | ||
50 | private: | |
51 | ||
52 | AliAnalysisTaskSESignificance(const AliAnalysisTaskSESignificance &source); | |
53 | AliAnalysisTaskSESignificance& operator=(const AliAnalysisTaskSESignificance& source); | |
54 | Int_t GetHistoIndex(Int_t iPtBin) const { return iPtBin*3;} | |
55 | Int_t GetSignalHistoIndex(Int_t iPtBin) const { return iPtBin*3+1;} | |
56 | Int_t GetBackgroundHistoIndex(Int_t iPtBin) const { return iPtBin*3+2;} | |
57 | Int_t GetLSHistoIndex(Int_t iPtBin)const { return iPtBin*5;} | |
f80a6da9 | 58 | |
59 | void CalculateInvMasses(AliAODRecoDecayHF* d,Double_t* &masses,Int_t& nmasses); | |
60 | ||
61 | void FillDplus(AliAODRecoDecayHF* d,TClonesArray *arrayMC,Int_t index,Double_t* masses,Int_t isSel); | |
62 | void FillD02p(AliAODRecoDecayHF* d,TClonesArray *arrayMC,Int_t index,Double_t* masses, Int_t isSel); | |
63 | void FillDs(AliAODRecoDecayHF* d,TClonesArray *arrayMC,Int_t index,Double_t* masses,Int_t isSel); | |
64 | void FillDstar(AliAODRecoDecayHF* d,TClonesArray *arrayMC,Int_t index,Double_t* masses,Int_t isSel); | |
65 | void FillD04p(AliAODRecoDecayHF* d,TClonesArray *arrayMC,Int_t index,Double_t* masses,Int_t isSel); | |
66 | void FillLambdac(AliAODRecoDecayHF* d,TClonesArray *arrayMC,Int_t index,Double_t* masses,Int_t isSel); | |
67 | ||
68 | ||
cbedddce | 69 | enum {kMaxPtBins=5}; |
70 | enum {kMaxCutVar=5}; | |
71 | enum {kMaxSteps=10}; | |
72 | enum {kMaxNHist=500000}; | |
5ecc6e9b | 73 | enum {kDplustoKpipi,kD0toKpi,kDstartoKpipi,kDstoKKpi,kD0toKpipipi,kLambdactopKpi}; |
cbedddce | 74 | |
75 | TList *fOutput; //! list send on output slot 0 | |
76 | TList *fCutList; //Multidimvector container | |
77 | TH1F *fMassHist[kMaxNHist]; //!hist. for inv mass | |
78 | TH1F *fSigHist[kMaxNHist]; //!hist. for inv mass (sig from MC truth) | |
79 | TH1F *fBkgHist[kMaxNHist]; //!hist. for inv mass (bkg from MC truth) | |
80 | TH1F *fRflHist[kMaxNHist]; //!hist. for inv mass (bkg from MC truth) | |
81 | TH1F* fHistNEvents; //! hist of n of aods | |
82 | Float_t fUpmasslimit; //upper inv mass limit for histos | |
83 | Float_t fLowmasslimit; //lower inv mass limit for histos | |
84 | AliRDHFCuts *fRDCuts;//prong cut values | |
85 | Int_t fNPtBins; //number of pt bins | |
86 | Bool_t fReadMC; //flag for access to MC | |
87 | Int_t fDecChannel; //decay channel identifier | |
88 | Int_t fSelectionlevel;//selection level: kALL,kTracks,kCandidate | |
f80a6da9 | 89 | Int_t fNBins; //number of bins in the mass histograms |
90 | Int_t fPartOrAndAntiPart; //fill histograms with particle only (+1), antiparticle only (-1), both (0) | |
91 | ||
92 | ClassDef(AliAnalysisTaskSESignificance,2); // AliAnalysisTaskSE for the MC association of heavy-flavour decay candidates | |
cbedddce | 93 | }; |
94 | ||
95 | #endif | |
96 | ||
97 |