AliPhysics  5364b50 (5364b50)
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;}
44 
45 // static AliAnalysisTaskJetCoreEmcal* AddTaskJetCoreEmcal(
46 // const char *ntracks = "usedefault",
47 // const char *nclusters = "usedefault",
48 // const char* ncells = "usedefault",
49 // const char *suffix = "");
50 
51  enum JetShapeType {
52  kMCTrue = 0, // generated jets only
53  kTrueDet =1, // detector and generated jets
54  kData = 2, // raw data
55 // kDetEmb = 3, //detector embedded jets
56 // kDetEmbPart = 4,
57 // kPythiaDef = 5,
58 // kDetEmbPartPythia=6,
59 // kGenOnTheFly = 7
60  };
61 
62  protected:
63  void ExecOnce() ;
65  Bool_t Run() ;
66 
67  void AllocateJetHistograms() ;
70  void AllocateCellHistograms() ;
72 
73  void DoJetLoop() ;
74  void DoTrackLoop() ;
75  void DoClusterLoop() ;
76  void DoCellLoop() ;
77  void DoJetCoreLoop() ;
78 
79  Int_t SelectTrigger(TList *list,Double_t minT,Double_t maxT,Int_t &number);
80  THnSparse* NewTHnSparseF(const char* name, UInt_t entries);
81  void GetDimParams(Int_t iEntry, TString &label, Int_t &nbins, Double_t &xmin, Double_t &xmax);
84 
86 
87  // flags and selection
88  AliEventCuts fEventCuts; // Event cuts
101  //
102  TRandom3 *fRandom;
103  //histograms to fill
105  THnSparse *fHJetSpec;
113 
114  private:
115  AliAnalysisTaskJetCoreEmcal(const AliAnalysisTaskJetCoreEmcal&) ; // not implemented
117 
119  ClassDef(AliAnalysisTaskJetCoreEmcal, 1);
121 };
122 #endif
double Double_t
Definition: External.C:58
Definition: External.C:260
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)