AliPhysics  d565ceb (d565ceb)
AliAnalysisTaskJetCoreEmcal.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKJETCOREEMCAL_H
2 #define ALIANALYSISTASKJETCOREEMCAL_H
3 
4 //
5 // Implementation of jet core task in Emcal framework
6 // Basic functionality copied from AliAnalysisTaskEmcalJetSample
7 //
8 
9 class TH1F;
10 class TH1I;
11 class TH2F;
12 class TH3F;
13 class THnSparse;
14 class TRandom3;
15 
16 #include "AliEventCuts.h"
18 #include "THistManager.h"
19 
20 
22  public:
23 
25  AliAnalysisTaskJetCoreEmcal(const char *name) ;
27 
29  void Terminate(Option_t *option) ;
30 
31 
32  // Setters
33  virtual void SetCentrality(Float_t cmin, Float_t cmax){fCentMin=cmin; fCentMax=cmax;}
34  virtual void SetTTLowRef(Float_t ttlow){fTTLowRef=ttlow;}
35  virtual void SetTTUpRef(Float_t ttup){fTTUpRef=ttup;}
36  virtual void SetTTLowSig(Float_t ttlows){fTTLowSig=ttlows;}
37  virtual void SetTTUpSig(Float_t ttups){fTTUpSig=ttups;}
38  virtual void SetNRPBins(Float_t nrpb){fNRPBins=nrpb;}
39  virtual void SetSignalFraction(Float_t sfrac){fFrac=sfrac;}
40  virtual void SetJetEtaMin(Float_t eta){fJetEtaMin=eta;}
41  virtual void SetJetEtaMax(Float_t eta){fJetEtaMax=eta;}
42  virtual void SetJetHadronDeltaPhi(Float_t delta){fJetHadronDeltaPhi=delta;}
43  virtual void SetJetContName(TString cont){fJetContName=cont;}
45 
46 // static AliAnalysisTaskJetCoreEmcal* AddTaskJetCoreEmcal(
47 // const char *ntracks = "usedefault",
48 // const char *nclusters = "usedefault",
49 // const char* ncells = "usedefault",
50 // const char *suffix = "");
51 
52  enum JetShapeType {
53  kMCTrue = 0, // generated jets only
54  kTrueDet =1, // detector and generated jets
55  kData = 2, // raw data
56 // kDetEmb = 3, //detector embedded jets
57 // kDetEmbPart = 4,
58 // kPythiaDef = 5,
59 // kDetEmbPartPythia=6,
60 // kGenOnTheFly = 7
61  };
62 
63  protected:
64  void ExecOnce() ;
66  Bool_t Run() ;
67 
68  void AllocateJetHistograms() ;
71  void AllocateCellHistograms() ;
73 
74  void DoJetLoop() ;
75  void DoTrackLoop() ;
76  void DoClusterLoop() ;
77  void DoCellLoop() ;
78  void DoJetCoreLoop() ;
79 
80  Int_t SelectTrigger(TList *list,Double_t minT,Double_t maxT,Int_t &number);
81  THnSparse* NewTHnSparseF(const char* name, UInt_t entries);
82  void GetDimParams(Int_t iEntry, TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax);
85 
87 
88  // flags and selection
89  AliEventCuts fEventCuts;
103  //
104  TRandom3 *fRandom;
105  //histograms to fill
107  THnSparse *fHJetSpec;
115 
116  THnSparseF *fHJetPhiCorr;
119 
120  private:
121  AliAnalysisTaskJetCoreEmcal(const AliAnalysisTaskJetCoreEmcal&) ; // not implemented
123 
125  ClassDef(AliAnalysisTaskJetCoreEmcal, 2);
127 };
128 #endif
double Double_t
Definition: External.C:58
Definition: External.C:260
virtual void SetRunAnaAzimuthalCorrelation(Bool_t b)
Definition: External.C:236
Int_t SelectTrigger(TList *list, Double_t minT, Double_t maxT, Int_t &number)
virtual void SetTTLowRef(Float_t ttlow)
virtual void SetTTUpRef(Float_t ttup)
virtual void SetCentrality(Float_t cmin, Float_t cmax)
virtual void SetSignalFraction(Float_t sfrac)
int Int_t
Definition: External.C:63
Definition: External.C:204
unsigned int UInt_t
Definition: External.C:33
float Float_t
Definition: External.C:68
virtual void SetJetContName(TString cont)
Definition: External.C:212
THnSparse * NewTHnSparseF(const char *name, UInt_t entries)
virtual void SetJetEtaMin(Float_t eta)
virtual void SetJetHadronDeltaPhi(Float_t delta)
Double_t RelativePhi(Double_t mphi, Double_t vphi)
virtual void SetTTLowSig(Float_t ttlows)
virtual void SetJetEtaMax(Float_t eta)
THistManager fHistManager
Histogram manager.
virtual void SetNRPBins(Float_t nrpb)
Base task in the EMCAL jet framework.
Container class for histograms.
Definition: THistManager.h:99
const char Option_t
Definition: External.C:48
const Int_t nbins
bool Bool_t
Definition: External.C:53
void GetDimParams(Int_t iEntry, TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax)
AliAnalysisTaskJetCoreEmcal & operator=(const AliAnalysisTaskJetCoreEmcal &)
virtual void SetTTUpSig(Float_t ttups)