AliPhysics  b555aef (b555aef)
AliAnalysisTaskEmcalJetTree.h
Go to the documentation of this file.
1 
12 #ifndef ALIANALYSISTASKEMCALJETTREE_H
13 #define ALIANALYSISTASKEMCALJETTREE_H
14 
15 /* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
16  * See cxx source for full Copyright notice */
17 
18 #include <map>
19 #include <vector>
20 #include <string>
22 
30  public:
37  };
38 
47  public:
50 
52 
53  void Reset() {;}
54  void Set(Double_t, Double_t) {;}
55 
57  ClassDef(AliEmcalJetEventInfoSummaryPP, 1);
59  };
60 
69  public:
72 
74 
75  void Reset();
76  void Set(Double_t cent, Double_t ep);
77 
79  Double32_t fCent ; //[-10,118,7]
81  Double32_t fEP ; //[0,2*pi,9]
82 
86  };
87 
96  public:
97  AliEmcalJetInfoSummaryPP() : fPt(0), fEta(0), fPhi(0), fNEF(0), fLeadingPt(0), fNConstituents(0) {;}
99 
101 
102  void Reset();
103  void Set(const AliEmcalJetInfo& source);
104 
106  Double32_t fPt ; //[0,512,10]
108  Double32_t fEta ; //[-1.28,1.28,8]
110  Double32_t fPhi ; //[0,2*pi,9]
111  // Fraction of neutral energy
112  Double32_t fNEF ; //[0,1.28,7]
113  // Momentum of leading particle
114  Double32_t fLeadingPt ; //[0,512,10]
116  Double32_t fNConstituents ; //[0,256,8]
117 
119  ClassDef(AliEmcalJetInfoSummaryPP, 4);
121  };
122 
131  public:
132  AliEmcalJetInfoSummaryPPCharged() : fPt(0), fEta(0), fPhi(0), fLeadingPt(0), fNConstituents(0) {;}
134 
136 
137  void Reset();
138  void Set(const AliEmcalJetInfo& source);
139 
141  Double32_t fPt ; //[0,512,10]
143  Double32_t fEta ; //[-1.28,1.28,8]
145  Double32_t fPhi ; //[0,2*pi,9]
146  // Momentum of leading particle
147  Double32_t fLeadingPt ; //[0,512,10]
149  Double32_t fNConstituents ; //[0,256,8]
150 
152  ClassDef(AliEmcalJetInfoSummaryPPCharged, 1);
154  };
155 
164  public:
165  AliEmcalJetInfoSummaryPbPb() : fPt(0), fEta(0), fPhi(0), fNEF(0), fLeadingPt(0), fArea(0), fNConstituents(0), fCorrPt(0) {;}
167 
169 
170  void Reset();
171  void Set(const AliEmcalJetInfo& source);
172 
173  Double32_t fPt ; //[0,512,9]
175  Double32_t fEta ; //[-1.28,1.28,5]
177  Double32_t fPhi ; //[0,2*pi,7]
178  // Fraction of neutral energy
179  Double32_t fNEF ; //[0,1.28,5]
180  // Momentum of leading particle
181  Double32_t fLeadingPt ; //[0,512,9]
183  Double32_t fArea ; //[0,1.28,6]
185  Double32_t fNConstituents ; //[0,1024,9]
187  Double32_t fCorrPt ; //[-256,256,9]
188 
190  ClassDef(AliEmcalJetInfoSummaryPbPb, 5);
192  };
193 
202  public:
203  AliEmcalJetInfoSummaryPbPbCharged() : fPt(0), fEta(0), fPhi(0), fLeadingPt(0), fArea(0), fNConstituents(0), fCorrPt(0) {;}
205 
207 
208  void Reset();
209  void Set(const AliEmcalJetInfo& source);
210 
211  Double32_t fPt ; //[0,512,9]
213  Double32_t fEta ; //[-1.28,1.28,5]
215  Double32_t fPhi ; //[0,2*pi,7]
216  // Momentum of leading particle
217  Double32_t fLeadingPt ; //[0,512,9]
219  Double32_t fArea ; //[0,1.28,6]
221  Double32_t fNConstituents ; //[0,1024,9]
223  Double32_t fCorrPt ; //[-256,256,9]
224 
228  };
229 
238  public:
239  AliEmcalJetInfoSummaryEmbedding() : fPt(0), fEta(0), fPhi(0), fNEF(0), fLeadingPt(0), fArea(0), fNConstituents(0), fCorrPt(0), fMCPt(0) {;}
241 
243 
244  void Reset();
245  void Set(const AliEmcalJetInfo& source);
246 
248  Double32_t fPt ; //[0,512,10]
250  Double32_t fEta ; //[-1.28,1.28,8]
252  Double32_t fPhi ; //[0,2*pi,9]
253  // Fraction of neutral energy
254  Double32_t fNEF ; //[0,1.28,7]
255  // Momentum of leading particle
256  Double32_t fLeadingPt ; //[0,512,9]
258  Double32_t fArea ; //[0,5.12,9]
260  Double32_t fNConstituents ; //[0,1024,9]
262  Double32_t fCorrPt ; //[-512,512,11]
264  Double32_t fMCPt ; //[0,512,10]
265 
267  ClassDef(AliEmcalJetInfoSummaryEmbedding, 4);
269  };
270 
272  AliAnalysisTaskEmcalJetTreeBase(const char *name);
274 
275  static AliAnalysisTaskEmcalJetTreeBase* CreateInstance(const char* name, EAnalisysType_t type = kJetPP);
276  static AliAnalysisTaskEmcalJetTreeBase* AddTaskEmcalJetTree(TString ntracks = "usedefault", TString nclusters = "usedefault", Double_t trackPtCut = 0.15, Double_t clusECut = 0.30, EAnalisysType_t type = kJetPP, TString suffix = "");
277 
278  protected:
279  void AllocateTTree(const AliJetContainer* jets) = 0;
280  void FillTTree(const AliEmcalJetInfo& jetInfo, const AliJetContainer* jets) = 0;
281 
283 
284 private:
287 
291 };
292 
300 template <class T, class U>
302  public:
303 
305  AliAnalysisTaskEmcalJetTree(const char *name);
306 
308 
311 
312  protected:
313  void AllocateTTree(const AliJetContainer* jets);
314  void FillTTree(const AliEmcalJetInfo& jetInfo, const AliJetContainer* jets);
315 
316  std::map<std::string, std::vector<T> > *fCurrentOutput;
318 
319  private:
320  AliAnalysisTaskEmcalJetTree(const AliAnalysisTaskEmcalJetTree&); // not implemented
322 
324  ClassDef(AliAnalysisTaskEmcalJetTree, 1)
326 };
327 
328 #endif
Declaration of class AliAnalysisTaskEmcalJetSpectraQA.
double Double_t
Definition: External.C:58
void FillTTree(const AliEmcalJetInfo &jetInfo, const AliJetContainer *jets)=0
Class that encapsulates jets in a very compact structure (pp analysis)
Class that encapsulates jets in a very compact structure (embedding analysis)
void UserCreateOutputObjects()
Overloads base class method. Creates output objects.
Class that encapsulates jets in a very compact structure (Pb-Pb analysis)
AliAnalysisTaskEmcalJetTreeBase & operator=(const AliAnalysisTaskEmcalJetTreeBase &)
Double32_t fPt
Transverse momentum of the jet in GeV/c.
Class that encapsulates event properties in a very compact structure (PbPb analysis) ...
void AllocateTTree(const AliJetContainer *jets)=0
Class that encapsulates event properties in a very compact structure (pp analysis) ...
Pure virtual base class for AliAnalysisTaskEmcalJetTree<T>
Implementation of a task to generate a tree with all jets.
static AliAnalysisTaskEmcalJetTreeBase * CreateInstance(const char *name, EAnalisysType_t type=kJetPP)
std::map< std::string, std::vector< T > > * fCurrentOutput
! This map contains the pointers of the tree branch objects
Class that encapsulates jets in a very compact structure (pp analysis)
bool Bool_t
Definition: External.C:53
U * fCurrentEvent
! This pointer holds the event object branch
Class that encapsulates jets in a very compact structure (Pb-Pb analysis)
Double_t fCent
!event centrality
Container for jet within the EMCAL jet framework.
Implementation of a task to perform QA on jet spectra.
static AliAnalysisTaskEmcalJetTreeBase * AddTaskEmcalJetTree(TString ntracks="usedefault", TString nclusters="usedefault", Double_t trackPtCut=0.15, Double_t clusECut=0.30, EAnalisysType_t type=kJetPP, TString suffix="")