1 #ifndef ALIANALYSISTASKSEDSTARJETS_H
2 #define ALIANALYSISTASKSEDSTARJETS_H
3 /**************************************************************************
4 * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
6 * Author: The ALICE Off-line Project. *
7 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 //-----------------------------------------------------------------------
19 // Author : A. Grelli, UTRECHT
20 //-----------------------------------------------------------------------
24 #include "AliAnalysisTaskSE.h"
25 #include "AliAODEvent.h"
26 #include "AliRDHFCutsDStartoKpipi.h"
30 class AliAODMCParticle;
33 class AliAnalysisTaskSEDStarJets : public AliAnalysisTaskSE
38 AliAnalysisTaskSEDStarJets();
39 AliAnalysisTaskSEDStarJets(const Char_t* name,AliRDHFCutsDStartoKpipi* cuts);
40 virtual ~AliAnalysisTaskSEDStarJets();
42 virtual void UserCreateOutputObjects();
43 virtual void UserExec(Option_t *option);
44 virtual void Terminate(Option_t *);
46 virtual void LocalInit() {Init();}
48 //side band background eval
49 void SideBandBackground(Double_t finvM, Double_t finvMDStar, Double_t dStarMomBkg, Double_t fejet, Double_t ejet);
52 Bool_t DefineHistoFroAnalysis();
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;}
60 void SetMC(Bool_t theMCon) {fUseMCInfo = theMCon;}
61 Bool_t GetMC() const {return fUseMCInfo;}
65 AliAnalysisTaskSEDStarJets(const AliAnalysisTaskSEDStarJets &source);
66 AliAnalysisTaskSEDStarJets& operator=(const AliAnalysisTaskSEDStarJets& source);
68 Int_t fEvents; // n. of events
69 Int_t fchargeFrCorr; // Charge fraction correction UA1 algorithm
70 Bool_t fUseMCInfo; // Use MC info
71 Bool_t fRequireNormalization; // normalization
73 TList *fOutput; //! user output
74 AliRDHFCutsDStartoKpipi *fCuts; // Cuts
76 // define the histograms
81 TH1F *fRECOPtDStar; //!
85 TH1F *fDiffSideBand; //!
96 TH1F *fDphiD0Dstar; //!
99 ClassDef(AliAnalysisTaskSEDStarJets,3); // class for charm-jet correlations