]>
Commit | Line | Data |
---|---|---|
25c94fc8 | 1 | #ifndef ALIANALYSISTASKDS_H |
2 | #define ALIANALYSISTASKDS_H | |
3 | ||
4 | /* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7b45817b | 7 | /* $Id$ */ |
25c94fc8 | 8 | |
9 | /////////////////////////////////////////////////////////////////// | |
10 | // // | |
11 | // Analysis task to produce Ds candidates mass spectra // | |
12 | // Origin: F.Prino, Torino, prino@to.infn.it // | |
13 | // // | |
14 | /////////////////////////////////////////////////////////////////// | |
15 | ||
16 | #include <TROOT.h> | |
17 | #include <TSystem.h> | |
18 | #include <TH1F.h> | |
19 | #include <TH2F.h> | |
20 | ||
21 | #include "AliAnalysisTaskSE.h" | |
4c230f6d | 22 | #include "AliRDHFCutsDstoKKpi.h" |
c3379416 | 23 | |
24 | class AliNormalizationCounter; | |
25 | ||
25c94fc8 | 26 | |
27 | class AliAnalysisTaskSEDs : public AliAnalysisTaskSE | |
28 | { | |
29 | public: | |
2e153422 | 30 | |
25c94fc8 | 31 | AliAnalysisTaskSEDs(); |
1f796bc2 | 32 | AliAnalysisTaskSEDs(const char *name, AliRDHFCutsDstoKKpi* analysiscuts, Int_t fillNtuple=0); |
25c94fc8 | 33 | virtual ~AliAnalysisTaskSEDs(); |
34 | void SetReadMC(Bool_t readMC=kTRUE){fReadMC=readMC;} | |
2e153422 | 35 | void SetFillNtuple(Int_t fill=0){fFillNtuple=fill;} |
9dbb1d69 | 36 | void SetMassRange(Double_t rang=0.4){fMassRange=rang;} |
37 | void SetDoCutVarHistos(Bool_t opt=kTRUE) {fDoCutVarHistos=opt;} | |
38 | void SetUseSelectionBit(Bool_t opt=kFALSE){ fUseSelectionBit=opt;} | |
39 | ||
a0bb2d06 | 40 | void SetInvMassBinSize(Double_t binsiz=0.002){fMassBinSize=binsiz;} |
4c230f6d | 41 | void SetPtBins(Int_t n, Float_t* lim); |
4c230f6d | 42 | void SetAnalysisCuts(AliRDHFCutsDstoKKpi* cuts){fAnalysisCuts=cuts;} |
25c94fc8 | 43 | // Implementation of interface methods |
44 | virtual void UserCreateOutputObjects(); | |
45 | virtual void Init(); | |
46 | virtual void LocalInit() {Init();} | |
47 | virtual void UserExec(Option_t *option); | |
48 | virtual void Terminate(Option_t *option); | |
49 | ||
50 | private: | |
c2a0a9d5 | 51 | Int_t GetHistoIndex(Int_t iPtBin) const { return iPtBin*4;} |
52 | Int_t GetSignalHistoIndex(Int_t iPtBin) const { return iPtBin*4+1;} | |
53 | Int_t GetBackgroundHistoIndex(Int_t iPtBin) const { return iPtBin*4+2;} | |
54 | Int_t GetReflSignalHistoIndex(Int_t iPtBin) const { return iPtBin*4+3;} | |
25c94fc8 | 55 | |
c135594e | 56 | enum {kMaxPtBins=20}; |
25c94fc8 | 57 | |
58 | AliAnalysisTaskSEDs(const AliAnalysisTaskSEDs &source); | |
59 | AliAnalysisTaskSEDs& operator=(const AliAnalysisTaskSEDs& source); | |
60 | ||
61 | TList* fOutput; //! list send on output slot 0 | |
62 | TH1F* fHistNEvents; //! hist. for No. of events | |
c2a0a9d5 | 63 | TH1F* fChanHist[4]; //! hist. with KKpi and piKK candidates (sig,bkg,tot) |
c2a0a9d5 | 64 | TH1F* fMassHist[4*kMaxPtBins]; //! hist. of mass spectra (sig,bkg,tot) |
86ede1c0 | 65 | TH1F* fMassHistPhi[3*kMaxPtBins]; //! hist. of mass spectra via phi (sig,bkg,tot) |
86ede1c0 | 66 | TH1F* fMassHistK0st[3*kMaxPtBins]; //! hist. of mass spectra via K0* (sig,bkg,tot) |
c2a0a9d5 | 67 | TH1F* fCosPHist[4*kMaxPtBins]; //! hist. of cos pointing angle (sig,bkg,tot) |
68 | TH1F* fDLenHist[4*kMaxPtBins]; //! hist. of decay length (sig,bkg,tot) | |
69 | TH1F* fSumd02Hist[4*kMaxPtBins]; //! hist. for sum d02 (Prod Cuts) | |
70 | TH1F* fSigVertHist[4*kMaxPtBins]; //! hist. for sigVert (Prod Cuts) | |
71 | TH1F* fPtMaxHist[4*kMaxPtBins]; //! hist. for Pt Max (Prod Cuts) | |
72 | TH1F* fPtCandHist[4*kMaxPtBins]; //! hist. for Pt Max (Prod Cuts) | |
73 | TH1F* fDCAHist[4*kMaxPtBins]; //! hist. for DCA (Prod Cuts) | |
74 | TH1F* fPtProng0Hist[4*kMaxPtBins]; //! hist. for Pt Max (Prod Cuts) | |
75 | TH1F* fPtProng1Hist[4*kMaxPtBins]; //! hist. for DCA (Prod Cuts) | |
76 | TH1F* fPtProng2Hist[4*kMaxPtBins]; //! hist. for DCA (Prod Cuts) | |
77 | TH2F* fDalitz[4*kMaxPtBins]; //! dalitz plot (sig,bkg,tot) | |
86ede1c0 | 78 | TH2F* fDalitzPhi[4*kMaxPtBins]; //! dalitz plot via phi (sig,bkg,tot) |
79 | TH2F* fDalitzK0st[4*kMaxPtBins]; //! dalitz plot via K0* (sig,bkg,tot) | |
3787d195 | 80 | TH2F *fPtVsMass; //! hist. of pt vs. mass (prod. cuts) |
811a34ce | 81 | TH2F *fPtVsMassPhi; //! hist. of pt vs. mass (phi selection) |
82 | TH2F *fPtVsMassK0st; //! hist. of pt vs. mass (K0* selection) | |
3787d195 | 83 | TH2F *fYVsPt; //! hist. of Y vs. Pt (prod. cuts) |
3787d195 | 84 | TH2F *fYVsPtSig; //! hist. of Y vs. Pt (MC, only sig, prod. cuts) |
010f88b8 | 85 | TH1F *fHistCentrality[3];//!hist. for cent distr (all,sel ev, ) |
86 | TH2F *fHistCentralityMult[3];//!hist. for cent distr vs mult (all,sel ev, ) | |
2e153422 | 87 | TNtuple *fNtupleDs; //! output ntuple |
88 | Int_t fFillNtuple; // 0 not to fill ntuple | |
89 | // 1 for filling ntuple for events through Phi | |
90 | // 2 for filling ntuple for events through K0Star | |
91 | // 3 for filling all | |
92 | ||
93 | ||
25c94fc8 | 94 | Bool_t fReadMC; // flag for access to MC |
9dbb1d69 | 95 | Bool_t fDoCutVarHistos; // flag to create and fill histos with distributions of cut variables |
96 | Bool_t fUseSelectionBit; // flag for useage of HasSelectionBit | |
25c94fc8 | 97 | UChar_t fNPtBins; // number of Pt bins |
4c230f6d | 98 | TList *fListCuts; //list of cuts |
99 | Float_t fPtLimits[kMaxPtBins+1]; // limits for pt bins | |
25c94fc8 | 100 | Double_t fMassRange; // range for mass histogram |
a0bb2d06 | 101 | Double_t fMassBinSize; // bin size for inv. mass histo |
102 | ||
f93cbbb4 | 103 | AliNormalizationCounter *fCounter;//!Counter for normalization |
a0bb2d06 | 104 | AliRDHFCutsDstoKKpi *fAnalysisCuts; // Cuts for Analysis |
25c94fc8 | 105 | |
010f88b8 | 106 | ClassDef(AliAnalysisTaskSEDs,12); // AliAnalysisTaskSE for Ds mass spectra |
25c94fc8 | 107 | }; |
108 | ||
109 | #endif | |
110 | ||
f93cbbb4 | 111 |