AliPhysics  56f1704 (56f1704)
AliAnalysisTaskRhoBaseDev.h
Go to the documentation of this file.
1 
11 /* Copyright(c) 1998-2017, ALICE Experiment at CERN, All rights reserved. *
12  * See cxx source for full Copyright notice */
13 
14 #ifndef ALIANALYSISTASKRHOBASEDEV_H
15 #define ALIANALYSISTASKRHOBASEDEV_H
16 
17 class TString;
18 class TF1;
19 class TH1F;
20 class TH2F;
21 class TH3F;
22 class AliRhoParameter;
23 
24 #include <map>
25 #include <string>
26 
27 #include "AliAnalysisTaskJetUE.h"
28 
29 
39  public:
41  AliAnalysisTaskRhoBaseDev(const char *name, Bool_t histo=kFALSE);
43 
45 
46  void SetOutRhoName(const char *name) { fOutRhoName = name ;
47  fOutRhoScaledName = Form("%s_Scaled",name); }
48  void SetScaleFunction(TF1* sf) { fScaleFunction = sf ; }
49  void SetRhoFunction(TF1* rf) { fRhoFunction = rf ; }
50  TF1* LoadRhoFunction(const char* path, const char* name);
52 
53  const char* GetOutRhoName() const { return fOutRhoName.Data() ; }
54  const char* GetOutRhoScaledName() const { return fOutRhoScaledName.Data() ; }
55 
57  TString nTracks = "usedefault",
58  TString nClusters = "usedefault",
59  TString nRho = "Rho",
60  Double_t jetradius = 0.2,
61  UInt_t acceptance = AliEmcalJet::kTPCfid,
64  Bool_t histo = kTRUE,
65  TString suffix = ""
66  );
67 
68  protected:
69  void ExecOnce();
70  Bool_t Run();
72 
73  virtual Bool_t VerifyContainers() { return kTRUE; }
74 
75  virtual void CalculateRho();
76 
77  virtual Double_t GetRhoFactor(Double_t cent);
78  virtual Double_t GetScaleFactor(Double_t cent);
79 
82  TF1 *fRhoFunction;
85 
87 
88  // Exported background density
91 
92  // Histograms
94 
95  std::map<std::string, TH2*> fHistRhoVsLeadJetPt;
96  std::map<std::string, TH2*> fHistLeadJetPtVsCent;
97  std::map<std::string, TH2*> fHistLeadJetPtDensityVsCent;
98  std::map<std::string, TH2*> fHistTotJetAreaVsCent;
99  std::map<std::string, TH2*> fHistLeadJetNconstVsCent;
100  std::map<std::string, TH2**> fHistLeadJetNconstVsPt;
101  std::map<std::string, TH2*> fHistNjetVsCent;
102  std::map<std::string, TH2*> fHistNjetVsNtrack;
103 
108 
113 
117 
118  AliAnalysisTaskRhoBaseDev(const AliAnalysisTaskRhoBaseDev&); // not implemented
120 
122  ClassDef(AliAnalysisTaskRhoBaseDev, 2);
124 };
125 #endif
TString fOutRhoName
name of output rho object
double Double_t
Definition: External.C:58
Definition: External.C:260
Definition: External.C:236
TF1 * fScaleFunction
pre-computed scale factor as a function of centrality
TString fOutRhoScaledName
name of output scaled rho object
virtual Double_t GetRhoFactor(Double_t cent)
TH2 * fHistRhoVsCent
!rho vs. centrality
Base class for a task that calculates the UE.
Bool_t fAttachToEvent
whether or not attach rho to the event objects list
AliAnalysisTaskRhoBaseDev & operator=(const AliAnalysisTaskRhoBaseDev &)
std::map< std::string, TH2 * > fHistRhoVsLeadJetPt
!rho vs. leading jet pt
Bool_t fTaskConfigured
!kTRUE if the task is properly configured
std::map< std::string, TH2 * > fHistLeadJetPtVsCent
!leading jet pt vs. centrality
std::map< std::string, TH2 * > fHistTotJetAreaVsCent
!total area covered by jets vs. centrality
TH2 * fHistNtrackVsCent
!no. of tracks vs. centrality
TH2 * fHistRhoVsLeadClusterE
!rho vs. leading cluster energy
TPC fiducial acceptance (each eta edge narrowed by jet R)
Definition: AliEmcalJet.h:68
std::map< std::string, TH2 * > fHistLeadJetPtDensityVsCent
!leading jet area vs. centrality
std::map< std::string, TH2 ** > fHistLeadJetNconstVsPt
!leading jet constituents vs. pt
void SetOutRhoName(const char *name)
unsigned int UInt_t
Definition: External.C:33
TF1 * LoadRhoFunction(const char *path, const char *name)
TH2 * fHistRhoScaledVsCent
!rhoscaled vs. centrality
const char * GetOutRhoName() const
TH2 * fHistLeadClusterEVsCent
!leading cluster energy vs. centrality
const char * GetOutRhoScaledName() const
TH2 * fHistRhoScaledVsNcluster
!rhoscaled vs. no. of clusters
std::map< std::string, TH2 * > fHistLeadJetNconstVsCent
!leading jet constituents vs. cent
virtual Double_t GetScaleFactor(Double_t cent)
static AliAnalysisTaskRhoBaseDev * AddTaskRhoBaseDev(TString nTracks="usedefault", TString nClusters="usedefault", TString nRho="Rho", Double_t jetradius=0.2, UInt_t acceptance=AliEmcalJet::kTPCfid, AliJetContainer::EJetType_t jetType=AliJetContainer::kChargedJet, AliJetContainer::ERecoScheme_t rscheme=AliJetContainer::pt_scheme, Bool_t histo=kTRUE, TString suffix="")
TH2 * fHistRhoVsNcluster
!rho vs. no. of clusters
std::map< std::string, TH2 * > fHistNjetVsNtrack
!no. of jets vs. no. of tracks
TH2 * fHistRhoVsLeadTrackPt
!rho vs. leading track pt
Base class for a task that studies the UE.
Definition: External.C:220
TH2 * fHistNclusterVsCent
!no. of cluster vs. centrality
TH2 * fHistRhoVsNtrack
!rho vs. no. of tracks
TF1 * fRhoFunction
pre-computed rho as a function of centrality
Declaration of class AliAnalysisTaskJetUE.
TH2 * fHistRhoScaledVsNtrack
!rhoscaled vs. no. of tracks
bool Bool_t
Definition: External.C:53
AliRhoParameter * fOutRhoScaled
!output scaled rho object
AliRhoParameter * fOutRho
!output rho object
std::map< std::string, TH2 * > fHistNjetVsCent
!no. of jets vs. centrality
TH2 * fHistLeadTrackPtVsCent
!leading track pt vs. centrality