]>
Commit | Line | Data |
---|---|---|
954ac830 | 1 | #ifndef ALIANALYSISTASKSEDSTARJETS_H |
2 | #define ALIANALYSISTASKSEDSTARJETS_H | |
3 | /************************************************************************** | |
4 | * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. * | |
5 | * * | |
6 | * Author: The ALICE Off-line Project. * | |
7 | * Contributors are mentioned in the code where appropriate. * | |
8 | * * | |
9 | * Permission to use, copy, modify and distribute this software and its * | |
10 | * documentation strictly for non-commercial purposes is hereby granted * | |
11 | * without fee, provided that the above copyright notice appears in all * | |
12 | * copies and that both the copyright notice and this permission notice * | |
13 | * appear in the supporting documentation. The authors make no claims * | |
14 | * about the suitability of this software for any purpose. It is * | |
15 | * provided "as is" without express or implied warranty. * | |
16 | **************************************************************************/ | |
17 | ||
18 | //----------------------------------------------------------------------- | |
19 | // Author : A. Grelli, UTRECHT | |
20 | //----------------------------------------------------------------------- | |
21 | ||
22 | ||
23 | #include <TH2F.h> | |
24 | #include "AliAnalysisTaskSE.h" | |
25 | #include "AliAODEvent.h" | |
dee71c6f | 26 | #include "AliRDHFCutsDStartoKpipi.h" |
954ac830 | 27 | |
954ac830 | 28 | class TParticle ; |
954ac830 | 29 | class TClonesArray ; |
954ac830 | 30 | class AliAODMCParticle; |
31 | ||
32 | ||
dee71c6f | 33 | class AliAnalysisTaskSEDStarJets : public AliAnalysisTaskSE |
34 | { | |
954ac830 | 35 | |
36 | public: | |
37 | ||
38 | AliAnalysisTaskSEDStarJets(); | |
dee71c6f | 39 | AliAnalysisTaskSEDStarJets(const Char_t* name,AliRDHFCutsDStartoKpipi* cuts); |
954ac830 | 40 | virtual ~AliAnalysisTaskSEDStarJets(); |
41 | ||
dee71c6f | 42 | virtual void UserCreateOutputObjects(); |
43 | virtual void UserExec(Option_t *option); | |
44 | virtual void Terminate(Option_t *); | |
45 | virtual void Init(); | |
46 | virtual void LocalInit() {Init();} | |
954ac830 | 47 | |
954ac830 | 48 | //side band background eval |
dee71c6f | 49 | void SideBandBackground(Double_t finvM, Double_t finvMDStar, Double_t dStarMomBkg, Double_t fejet, Double_t ejet); |
954ac830 | 50 | |
51 | // inizializations | |
dee71c6f | 52 | Bool_t DefineHistoFroAnalysis(); |
53 | //MC FF | |
54 | double FillMCFF(AliAODMCParticle* mcPart, TClonesArray* mcArray, Int_t mcLabel); | |
55 | // correction for UA1 cone algorithm | |
56 | void SetChargeFractionCorrection(Int_t chargeFrCorr) {fchargeFrCorr = chargeFrCorr;} | |
57 | Int_t GetChargeFractionCorrection() const {return fchargeFrCorr;} | |
feaae220 | 58 | |
59 | // set MC usage | |
60 | void SetMC(Bool_t theMCon) {fUseMCInfo = theMCon;} | |
61 | Bool_t GetMC() const {return fUseMCInfo;} | |
954ac830 | 62 | |
dee71c6f | 63 | private: |
954ac830 | 64 | |
dee71c6f | 65 | AliAnalysisTaskSEDStarJets(const AliAnalysisTaskSEDStarJets &source); |
66 | AliAnalysisTaskSEDStarJets& operator=(const AliAnalysisTaskSEDStarJets& source); | |
67 | ||
954ac830 | 68 | Int_t fEvents; // n. of events |
dee71c6f | 69 | Int_t fchargeFrCorr; // Charge fraction correction UA1 algorithm |
feaae220 | 70 | Bool_t fUseMCInfo; // Use MC info |
feaae220 | 71 | Bool_t fRequireNormalization; // normalization |
dee71c6f | 72 | |
73 | TList *fOutput; //! user output | |
74 | AliRDHFCutsDStartoKpipi *fCuts; // Cuts | |
954ac830 | 75 | |
76 | // define the histograms | |
dee71c6f | 77 | |
954ac830 | 78 | TH1F *ftrigger; //! |
79 | TH1F *fPtPion; //! | |
80 | TH1F *fInvMass; //! | |
81 | TH1F *fRECOPtDStar; //! | |
dee71c6f | 82 | TH1F *fRECOPtBkg; //! |
954ac830 | 83 | TH1F *fDStar; //! |
84 | TH1F *fDiff; //! | |
85 | TH1F *fDiffSideBand; //! | |
86 | TH1F *fDStarMass; //! | |
87 | TH1F *fPhi; //! | |
88 | TH1F *fPhiBkg; //! | |
89 | TH1F *fTrueDiff; //! | |
90 | TH1F *fResZ; //! | |
dee71c6f | 91 | TH1F *fResZBkg; //! |
954ac830 | 92 | TH1F *fEjet; //! |
93 | TH1F *fPhijet; //! | |
94 | TH1F *fEtaJet; //! | |
dee71c6f | 95 | TH1F *theMCFF; //! |
96 | TH1F *fDphiD0Dstar; //! | |
97 | TH1F *fPtJet; //! | |
954ac830 | 98 | |
dee71c6f | 99 | ClassDef(AliAnalysisTaskSEDStarJets,3); // class for charm-jet correlations |
954ac830 | 100 | }; |
101 | ||
102 | #endif |