AliPhysics  8d00e07 (8d00e07)
AliAnalysisTaskRhoMassBase.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKRHOMASSBASE_H
2 #define ALIANALYSISTASKRHOMASSBASE_H
3 
4 // $Id$
5 
6 class TString;
7 class TF1;
8 class TH1F;
9 class TH2F;
10 class AliRhoParameter;
11 
13 
15  public:
17  AliAnalysisTaskRhoMassBase(const char *name, Bool_t histo=kFALSE);
19 
21 
22  void SetOutRhoMassName(const char *name) { fOutRhoMassName = name ;
23  fOutRhoMassScaledName = Form("%s_Scaled",name) ; }
24  void SetCompareRhoMassName(const char *name) { fCompareRhoMassName = name ; }
25  void SetCompareRhoMassScaledName(const char *name) { fCompareRhoMassScaledName = name ; }
26  void SetScaleFunction(TF1* sf) { fScaleFunction = sf ; }
27  void SetRhoMassFunction(TF1* rf) { fRhoMassFunction = rf ; }
29  void SetSmallSystem(Bool_t setter = kTRUE) {fIsPbPb = !setter; }
30 
31 
32  const TString& GetOutRhoMassName() const { return fOutRhoMassName; }
34 
35  protected:
36  void ExecOnce();
37  Bool_t Run();
39 
40  virtual Double_t GetRhoMassFactor(Double_t cent);
41  virtual Double_t GetScaleFactor(Double_t cent);
42 
43  TString fOutRhoMassName; // name of output rho mass object
44  TString fOutRhoMassScaledName; // name of output scaled rho mass object
45  TString fCompareRhoMassName; // name of rho mass object to compare
46  TString fCompareRhoMassScaledName; // name of scaled rho mass object to compare
47  TF1 *fRhoMassFunction; // pre-computed rho mass as a function of centrality
48  TF1 *fScaleFunction; // pre-computed scale factor as a function of centrality
49  Bool_t fAttachToEvent; // whether or not attach rho mass to the event objects list
50  Bool_t fIsPbPb; // different histogram ranges for pp/pPb and PbPb
51 
56 
62 
67 
70 
72 
73  AliAnalysisTaskRhoMassBase(const AliAnalysisTaskRhoMassBase&); // not implemented
75 
76  ClassDef(AliAnalysisTaskRhoMassBase, 2); // Rho mass base task
77 };
78 #endif
AliRhoParameter * fCompareRhoMass
output scaled rho object
TH2F * fHistDeltaRhoMassvsNtrack
rho mass scaled vs. no. of tracks
TH2F * fHistRhoMassvsNcluster
delta rho mass scaled vs. no. of tracks
AliRhoParameter * fCompareRhoMassScaled
rho object to compare
double Double_t
Definition: External.C:58
Definition: External.C:236
TH2F * fHistDeltaRhoMassvsCent
rho mass scaled vs. centrality
Bool_t FillHistograms()
Function filling histograms.
virtual Double_t GetScaleFactor(Double_t cent)
AliRhoParameter * fOutRhoMassScaled
output rho object
TH2F * fHistRhoMassvsCent
jet mass vs. centrality
const TString & GetOutRhoMassScaledName() const
virtual Double_t GetRhoMassFactor(Double_t cent)
void SetSmallSystem(Bool_t setter=kTRUE)
const TString & GetOutRhoMassName() const
TH2F * fHistDeltaRhoMassScalevsCent
delta rho mass vs. centrality
void SetOutRhoMassName(const char *name)
TH2F * fHistRhoMassScaledvsNcluster
rho mass vs. no. of clusters
TH2F * fHistGammaVsNtrack
rho mass scaled vs. no. of clusters
void SetCompareRhoMassName(const char *name)
TH2F * fHistRhoMassScaledvsNtrack
rho mass vs. no. of tracks
AliAnalysisTaskRhoMassBase & operator=(const AliAnalysisTaskRhoMassBase &)
void ExecOnce()
Perform steps needed to initialize the analysis.
TH2F * fHistDeltaRhoMassScalevsNtrack
delta rho mass vs. no. of tracks
Base task in the EMCAL jet framework.
void SetCompareRhoMassScaledName(const char *name)
TH2F * fHistRhoMassScaledvsCent
rho mass vs. centrality
TH2F * fHistRhoMassvsNtrack
delta rho mass scaled vs. centrality
bool Bool_t
Definition: External.C:53
TH2F * fHistJetMassvsCent
scaled rho object to compare
Bool_t Run()
Run function. This is the core function of the analysis and contains the user code. Therefore users have to implement this function.