AliPhysics  d497547 (d497547)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskRhoBase.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKRHOBASE_H
2 #define ALIANALYSISTASKRHOBASE_H
3 
4 // $Id$
5 
6 class TString;
7 class TF1;
8 class TH1F;
9 class TH2F;
10 class TH3F;
11 class AliRhoParameter;
12 
14 
16  public:
18  AliAnalysisTaskRhoBase(const char *name, Bool_t histo=kFALSE);
20 
22 
23  void SetOutRhoName(const char *name) { fOutRhoName = name ;
24  fOutRhoScaledName = Form("%s_Scaled",name); }
25  void SetCompareRhoName(const char *name) { fCompareRhoName = name ; }
26  void SetCompareRhoScaledName(const char *name) { fCompareRhoScaledName = name ; }
27  void SetScaleFunction(TF1* sf) { fScaleFunction = sf ; }
28  void SetRhoFunction(TF1* rf) { fRhoFunction = rf ; }
29  TF1* LoadRhoFunction(const char* path, const char* name);
32  void SetSmallSystem(Bool_t setter = kTRUE) { fIsPbPb = !setter ; }
33 
34  const char* GetOutRhoName() const { return fOutRhoName.Data() ; }
35  const char* GetOutRhoScaledName() const { return fOutRhoScaledName.Data() ; }
36 
37  protected:
38  void ExecOnce();
39  Bool_t Run();
41 
42  virtual Double_t GetRhoFactor(Double_t cent);
43  virtual Double_t GetScaleFactor(Double_t cent);
44 
45  TString fOutRhoName; // name of output rho object
46  TString fOutRhoScaledName; // name of output scaled rho object
47  TString fCompareRhoName; // name of rho object to compare
48  TString fCompareRhoScaledName; // name of scaled rho object to compare
49  TF1 *fRhoFunction; // pre-computed rho as a function of centrality
50  TF1 *fScaleFunction; // pre-computed scale factor as a function of centrality
51  Double_t fInEventSigmaRho; // in-event sigma rho
52  Bool_t fAttachToEvent; // whether or not attach rho to the event objects list
53  Bool_t fIsPbPb; // different histogram ranges for pp/pPb and PbPb
54 
59 
74 
79 
82 
83  AliAnalysisTaskRhoBase(const AliAnalysisTaskRhoBase&); // not implemented
84  AliAnalysisTaskRhoBase& operator=(const AliAnalysisTaskRhoBase&); // not implemented
85 
86  ClassDef(AliAnalysisTaskRhoBase, 11); // Rho base task
87 };
88 #endif
AliRhoParameter * fCompareRho
output scaled rho object
TH2F * fHistDeltaRhovsNtrack
rhoscaled vs. no. of tracks vs V0mult
double Double_t
Definition: External.C:58
Definition: External.C:260
TH2F * fHistDeltaRhoScalevsNtrack
delta rho vs. no. of tracks
TH2F * fHistNjetvsNtrack
jet area vs. no. of tracks
Definition: External.C:236
AliAnalysisTaskRhoBase & operator=(const AliAnalysisTaskRhoBase &)
const char * GetOutRhoScaledName() const
void SetOutRhoName(const char *name)
TH2F * fHistNjetvsCent
jet pt/area vs. centrality
TF1 * LoadRhoFunction(const char *path, const char *name)
TH2F * fHistJetRhovsCent
jet area vs. centrality
TH2F * fHistJetPtvsNtrack
no. of jets vs. centrality
virtual Double_t GetRhoFactor(Double_t cent)
AliRhoParameter * fOutRhoScaled
output rho object
AliRhoParameter * fCompareRhoScaled
rho object to compare
const char * GetOutRhoName() const
void SetSmallSystem(Bool_t setter=kTRUE)
TH2F * fHistJetRhovsEta[4]
jet no. of constituents vs. pt
TH2F * fHistJetAreavsNtrack
jet pt vs. no. of tracks
TH3F * fHistRhovsNtrackvsV0Mult
delta rhoscaled vs. centrality
TH2F * fHistRhoScaledvsCent
rho vs. centrality
TH2F * fHistRhovsNcluster
delta rho scaled vs. no. of tracks
virtual Double_t GetScaleFactor(Double_t cent)
void SetCompareRhoName(const char *name)
TH2F * fHistNjUEoverNjVsNj[12]
no. of jets vs. no. of tracks
TH2F * fHistJetAreavsCent
jet pt vs. centrality
TH2F * fHistJetNconstVsPt[4]
ratio no. of jets below rho*A+sigma_rho over. no. of jets vs. no. of jets
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.
TH2F * fHistRhoScaledvsNcluster
rho vs. no. of clusters
TH2F * fHistRhovsCent
rho vs. eta
TH2F * fHistJetPtvsCent
scaled rho object to compare
Base task in the EMCAL jet framework.
Bool_t FillHistograms()
Function filling histograms.
bool Bool_t
Definition: External.C:53
void ExecOnce()
Perform steps needed to initialize the analysis.
TH2F * fHistDeltaRhoScalevsCent
delta rho vs. centrality
void SetInEventSigmaRho(Double_t s)
void SetCompareRhoScaledName(const char *name)
TH2F * fHistDeltaRhovsCent
rhoscaled vs. centrality
TH3F * fHistRhoScaledvsNtrackvsV0Mult
rho vs. no. of tracks vs V0mult