AliPhysics  64f4410 (64f4410)
AliAnalysisTaskJetUEStudies.h
Go to the documentation of this file.
1 
12 #ifndef ALIANALYSISTASKJETUESTUDIES_H
13 #define ALIANALYSISTASKJETUESTUDIES_H
14 
15 /* Copyright(c) 1998-2017, ALICE Experiment at CERN, All rights reserved. *
16  * See cxx source for full Copyright notice */
17 
18 #include <map>
19 #include "THistManager.h"
20 #include "AliAnalysisTaskJetUE.h"
21 
22 class TRandom;
23 class AliEmcalJet;
24 
32  public:
33 
35  AliAnalysisTaskJetUEStudies(const char *name);
36  virtual ~AliAnalysisTaskJetUEStudies() { delete fRandom; }
37 
39 
40  void AddAltRho(TString rhoName) { fAlternativeRho.insert(std::make_pair(rhoName, nullptr)); }
41 
43  TString ntracks = "usedefault",
44  TString nclusters = "usedefault",
45  Double_t trackPtCut = 0.15,
46  Double_t clusECut = 0.30,
47  TString suffix = "");
48 
49  protected:
50  void ExecOnce();
51  Bool_t Run();
53  AliEmcalJet* GetJetCone(Double_t radius, Double_t eta, Double_t phi);
57 
58  template <class T, Int_t MAX_CONSTITUENTS>
59  Int_t SumParticles(Double_t& pt, Double_t eta, Double_t phi, Double_t maxD2, std::map<std::string, T*>& CollArray, std::array<Int_t, MAX_CONSTITUENTS>& ConstList);
60 
61  std::map<TString, AliRhoParameter*>
64 
65  std::set<TString> fDefaultRhoNames;
66  TRandom *fRandom;
67 
68  private:
71 
73  ClassDef(AliAnalysisTaskJetUEStudies, 1);
75 };
76 #endif
AliAnalysisTaskJetUEStudies()
Default constructor for ROOT I/O purposes.
double Double_t
Definition: External.C:58
std::set< TString > fDefaultRhoNames
! Default rho names
AliEmcalJet * GetJetCone(Double_t radius, Double_t eta, Double_t phi)
int Int_t
Definition: External.C:63
AliAnalysisTaskJetUEStudies & operator=(const AliAnalysisTaskJetUEStudies &)
Int_t SumParticles(Double_t &pt, Double_t eta, Double_t phi, Double_t maxD2, std::map< std::string, T * > &CollArray, std::array< Int_t, MAX_CONSTITUENTS > &ConstList)
AliEmcalJet * GetRandomConeExclLead(AliJetContainer *jetCont, AliEmcalJet *leadJet)
AliEmcalJet * GetRandomCone(AliJetContainer *jetCont)
Base class for a task that studies the UE.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:51
Container class for histograms.
Definition: THistManager.h:99
Declaration of class AliAnalysisTaskJetUE.
std::map< TString, AliRhoParameter * > fAlternativeRho
Alternative average background estimations.
THistManager fHistManager
Histogram manager.
bool Bool_t
Definition: External.C:53
static AliAnalysisTaskJetUEStudies * AddTaskJetUEStudies(TString ntracks="usedefault", TString nclusters="usedefault", Double_t trackPtCut=0.15, Double_t clusECut=0.30, TString suffix="")
TRandom * fRandom
! Random number generator
AliEmcalJet * GetRandomConePerp(AliJetContainer *jetCont, AliEmcalJet *leadJet)
Container for jet within the EMCAL jet framework.
void UserCreateOutputObjects()
Overloads base class method. Creates output objects.