AliPhysics  4c9ecbb (4c9ecbb)
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:
39  };
40 
45  class EventInfo {
46  public:
47  EventInfo() : fCent(-1), fEP(-1), fWeight(1), fPtHard(0) {}
48  EventInfo(double cent, double ep, double w, double pt) : fCent(cent), fEP(ep), fWeight(w), fPtHard(pt) {}
49 
50  double fCent;
51  double fEP;
52  double fWeight;
53  double fPtHard;
54  };
55 
64  public:
67 
69 
70  void Reset() {;}
71  void Set(EventInfo) {;}
72 
74  ClassDef(AliEmcalJetEventInfoSummaryPP, 1);
76  };
77 
86  public:
89 
91 
92  void Reset();
93  void Set(EventInfo event);
94 
96  Double32_t fWeight ; //[0,0,12]
97  Double32_t fPtHard ; //[0,512,10]
98 
102  };
103 
112  public:
115 
117 
118  void Reset();
119  void Set(EventInfo event);
120 
122  Double32_t fCent ; //[-10,118,7]
124  Double32_t fEP ; //[0,2*pi,9]
125 
127  ClassDef(AliEmcalJetEventInfoSummaryPbPb, 2);
129  };
130 
139  public:
140  AliEmcalJetInfoSummaryPP() : fPt(0), fEta(0), fPhi(0), fNEF(0), fLeadingPt(0), fNConstituents(0) {;}
142 
144 
145  void Reset();
146  void Set(const AliEmcalJetInfo& source);
147 
149  Double32_t fPt ; //[0,512,10]
151  Double32_t fEta ; //[-1.28,1.28,8]
153  Double32_t fPhi ; //[0,2*pi,9]
154  // Fraction of neutral energy
155  Double32_t fNEF ; //[0,1.28,7]
156  // Momentum of leading particle
157  Double32_t fLeadingPt ; //[0,512,10]
159  Double32_t fNConstituents ; //[0,256,8]
160 
162  ClassDef(AliEmcalJetInfoSummaryPP, 4);
164  };
165 
174  public:
175  AliEmcalJetInfoSummaryPPCharged() : fPt(0), fEta(0), fPhi(0), fLeadingPt(0), fNConstituents(0) {;}
177 
179 
180  void Reset();
181  void Set(const AliEmcalJetInfo& source);
182 
184  Double32_t fPt ; //[0,512,10]
186  Double32_t fEta ; //[-1.28,1.28,8]
188  Double32_t fPhi ; //[0,2*pi,9]
189  // Momentum of leading particle
190  Double32_t fLeadingPt ; //[0,512,10]
192  Double32_t fNConstituents ; //[0,256,8]
193 
195  ClassDef(AliEmcalJetInfoSummaryPPCharged, 1);
197  };
198 
207  public:
208  AliEmcalJetInfoSummaryPbPb() : fPt(0), fEta(0), fPhi(0), fNEF(0), fLeadingPt(0), fArea(0), fNConstituents(0), fCorrPt(0) {;}
210 
212 
213  void Reset();
214  void Set(const AliEmcalJetInfo& source);
215 
216  Double32_t fPt ; //[0,512,9]
218  Double32_t fEta ; //[-1.28,1.28,5]
220  Double32_t fPhi ; //[0,2*pi,7]
221  // Fraction of neutral energy
222  Double32_t fNEF ; //[0,1.28,5]
223  // Momentum of leading particle
224  Double32_t fLeadingPt ; //[0,512,9]
226  Double32_t fArea ; //[0,1.28,6]
228  Double32_t fNConstituents ; //[0,1024,9]
230  Double32_t fCorrPt ; //[-256,256,9]
231 
233  ClassDef(AliEmcalJetInfoSummaryPbPb, 5);
235  };
236 
245  public:
246  AliEmcalJetInfoSummaryPbPbCharged() : fPt(0), fEta(0), fPhi(0), fLeadingPt(0), fArea(0), fNConstituents(0), fCorrPt(0) {;}
248 
250 
251  void Reset();
252  void Set(const AliEmcalJetInfo& source);
253 
254  Double32_t fPt ; //[0,512,9]
256  Double32_t fEta ; //[-1.28,1.28,5]
258  Double32_t fPhi ; //[0,2*pi,7]
259  // Momentum of leading particle
260  Double32_t fLeadingPt ; //[0,512,9]
262  Double32_t fArea ; //[0,1.28,6]
264  Double32_t fNConstituents ; //[0,1024,9]
266  Double32_t fCorrPt ; //[-256,256,9]
267 
271  };
272 
281  public:
282  AliEmcalJetInfoSummaryEmbedding() : fPt(0), fEta(0), fPhi(0), fNEF(0), fLeadingPt(0), fArea(0), fNConstituents(0), fCorrPt(0), fMCPt(0) {;}
284 
286 
287  void Reset();
288  void Set(const AliEmcalJetInfo& source);
289 
291  Double32_t fPt ; //[0,512,10]
293  Double32_t fEta ; //[-1.28,1.28,8]
295  Double32_t fPhi ; //[0,2*pi,9]
296  // Fraction of neutral energy
297  Double32_t fNEF ; //[0,1.28,7]
298  // Momentum of leading particle
299  Double32_t fLeadingPt ; //[0,512,9]
301  Double32_t fArea ; //[0,5.12,9]
303  Double32_t fNConstituents ; //[0,1024,9]
305  Double32_t fCorrPt ; //[-512,512,11]
307  Double32_t fMCPt ; //[0,512,10]
308 
310  ClassDef(AliEmcalJetInfoSummaryEmbedding, 4);
312  };
313 
315  AliAnalysisTaskEmcalJetTreeBase(const char *name);
317 
318  static AliAnalysisTaskEmcalJetTreeBase* CreateInstance(const char* name, EAnalisysType_t type = kJetPP);
319  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 = "");
320 
321  protected:
322  void AllocateTTree(const AliJetContainer* jets) = 0;
323  void FillTTree(const AliEmcalJetInfo& jetInfo, const AliJetContainer* jets) = 0;
324 
326 
327 private:
330 
334 };
335 
343 template <class T, class U>
345  public:
346 
348  AliAnalysisTaskEmcalJetTree(const char *name);
349 
351 
354 
355  protected:
356  void AllocateTTree(const AliJetContainer* jets);
357  void FillTTree(const AliEmcalJetInfo& jetInfo, const AliJetContainer* jets);
358 
359  std::map<std::string, std::vector<T> > *fCurrentOutput;
361 
362  private:
363  AliAnalysisTaskEmcalJetTree(const AliAnalysisTaskEmcalJetTree&); // not implemented
365 
367  ClassDef(AliAnalysisTaskEmcalJetTree, 1)
369 };
370 
371 #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)
Class that encapsulates event properties in a very compact structure (pp simulation 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)
Container for jet within the EMCAL jet framework.
Implementation of a task to perform QA on jet spectra.
EventInfo(double cent, double ep, double w, double pt)
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="")