AliPhysics  ec7afe5 (ec7afe5)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 ; //[0,128,7]
81  Double32_t fEP ; //[0,2*pi,9]
82 
86  };
87 
96  public:
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:
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:
167 
169 
170  void Reset();
171  void Set(const AliEmcalJetInfo& source);
172 
174  Double32_t fPt ; //[0,512,9]
176  Double32_t fEta ; //[-1.28,1.28,5]
178  Double32_t fPhi ; //[0,2*pi,7]
179  // Fraction of neutral energy
180  Double32_t fNEF ; //[0,1.28,5]
181  // Momentum of leading particle
182  Double32_t fLeadingPt ; //[0,512,9]
184  Double32_t fArea ; //[0,5.12,8]
186  Double32_t fNConstituents ; //[0,1024,7]
188  Double32_t fCorrPt ; //[-512,512,10]
189 
191  ClassDef(AliEmcalJetInfoSummaryPbPb, 4);
193  };
194 
203  public:
206 
208 
209  void Reset();
210  void Set(const AliEmcalJetInfo& source);
211 
212  Double32_t fPt ; //[0,512,9]
214  Double32_t fEta ; //[-1.28,1.28,5]
216  Double32_t fPhi ; //[0,2*pi,7]
217  // Momentum of leading particle
218  Double32_t fLeadingPt ; //[0,512,9]
220  Double32_t fArea ; //[0,5.12,8]
222  Double32_t fNConstituents ; //[0,1024,7]
224  Double32_t fCorrPt ; //[-512,512,10]
225 
229  };
230 
239  public:
242 
244 
245  void Reset();
246  void Set(const AliEmcalJetInfo& source);
247 
249  Double32_t fPt ; //[0,512,10]
251  Double32_t fEta ; //[-1.28,1.28,8]
253  Double32_t fPhi ; //[0,2*pi,9]
254  // Fraction of neutral energy
255  Double32_t fNEF ; //[0,1.28,7]
256  // Momentum of leading particle
257  Double32_t fLeadingPt ; //[0,512,9]
259  Double32_t fArea ; //[0,5.12,9]
261  Double32_t fNConstituents ; //[0,1024,9]
263  Double32_t fCorrPt ; //[-512,512,11]
265  Double32_t fMCPt ; //[0,512,10]
266 
268  ClassDef(AliEmcalJetInfoSummaryEmbedding, 4);
270  };
271 
273  AliAnalysisTaskEmcalJetTreeBase(const char *name);
275 
276  static AliAnalysisTaskEmcalJetTreeBase* CreateInstance(const char* name, EAnalisysType_t type = kJetPP);
277  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 = "");
278 
279  protected:
280  void AllocateTTree(const AliJetContainer* jets) = 0;
281  void FillTTree(const AliEmcalJetInfo& jetInfo, const AliJetContainer* jets) = 0;
282 
284 
285 private:
288 
292 };
293 
301 template <class T, class U>
303  public:
304 
306  AliAnalysisTaskEmcalJetTree(const char *name);
307 
309 
312 
313  protected:
314  void AllocateTTree(const AliJetContainer* jets);
315  void FillTTree(const AliEmcalJetInfo& jetInfo, const AliJetContainer* jets);
316 
317  std::map<std::string, std::vector<T> > *fCurrentOutput;
319 
320  private:
321  AliAnalysisTaskEmcalJetTree(const AliAnalysisTaskEmcalJetTree&); // not implemented
323 
325  ClassDef(AliAnalysisTaskEmcalJetTree, 1)
327 };
328 
329 #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)
void FillTTree(const AliEmcalJetInfo &jetInfo, const AliJetContainer *jets)
Class that encapsulates jets in a very compact structure (embedding analysis)
Class that encapsulates jets in a very compact structure (Pb-Pb analysis)
AliAnalysisTaskEmcalJetTreeBase & operator=(const AliAnalysisTaskEmcalJetTreeBase &)
AliAnalysisTaskEmcalJetTree & operator=(const AliAnalysisTaskEmcalJetTree &)
AliAnalysisTaskEmcalJetTree()
Default constructor for ROOT I/O purposes.
Double32_t fPt
Transverse momentum of the jet in GeV/c.
void UserCreateOutputObjects()
Overloads base class method. Creates output objects.
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)
Double32_t fPt
Transverse momentum of the jet in GeV/c.
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.
void AllocateTTree(const AliJetContainer *jets)
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="")