AliPhysics  781d0c7 (781d0c7)
 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:
35  };
36 
45  public:
48 
50 
51  void Reset();
52  void Set(const AliEmcalJetInfo& source);
53 
55  Double32_t fPt ; //[0,512,10]
57  Double32_t fEta ; //[-1.28,1.28,8]
59  Double32_t fPhi ; //[0,2*pi,9]
60  // Fraction of neutral energy
61  Double32_t fNEF ; //[0,1.28,7]
62  // Momentum fraction of the leading particle
63  Double32_t fZLeading ; //[0,1.28,7]
65  Double32_t fNConstituents ; //[0,256,8]
66 
68  ClassDef(AliEmcalJetInfoSummaryPP, 3);
70  };
71 
80  public:
81  AliEmcalJetInfoSummaryPbPb() : fPt(0), fEta(0), fPhi(0), fNEF(0), fZLeading(0), fCent(0), fEP(0), fArea(0), fNConstituents(0), fCorrPt(0) {;}
83 
85 
86  void Reset();
87  void Set(const AliEmcalJetInfo& source);
88 
90  Double32_t fPt ; //[0,512,10]
92  Double32_t fEta ; //[-1.28,1.28,8]
94  Double32_t fPhi ; //[0,2*pi,9]
95  // Fraction of neutral energy
96  Double32_t fNEF ; //[0,1.28,7]
97  // Momentum fraction of the leading particle
98  Double32_t fZLeading ; //[0,1.28,7]
100  Double32_t fCent ; //[0,128,8]
102  Double32_t fEP ; //[0,pi,8]
104  Double32_t fArea ; //[0,5.12,9]
106  Double32_t fNConstituents ; //[0,1024,9]
108  Double32_t fCorrPt ; //[-512,512,11]
109 
111  ClassDef(AliEmcalJetInfoSummaryPbPb, 3);
113  };
114 
123  public:
126 
128 
129  void Reset();
130  void Set(const AliEmcalJetInfo& source);
131 
133  Double32_t fPt ; //[0,512,10]
135  Double32_t fEta ; //[-1.28,1.28,8]
137  Double32_t fPhi ; //[0,2*pi,9]
138  // Fraction of neutral energy
139  Double32_t fNEF ; //[0,1.28,7]
140  // Momentum fraction of the leading particle
141  Double32_t fZLeading ; //[0,1.28,7]
143  Double32_t fCent ; //[0,128,8]
145  Double32_t fEP ; //[0,pi,8]
147  Double32_t fArea ; //[0,5.12,9]
149  Double32_t fNConstituents ; //[0,1024,9]
151  Double32_t fCorrPt ; //[-512,512,11]
153  Double32_t fMCPt ; //[0,512,10]
154 
156  ClassDef(AliEmcalJetInfoSummaryEmbedding, 3);
158  };
159 
161  AliAnalysisTaskEmcalJetTreeBase(const char *name);
163 
164  static AliAnalysisTaskEmcalJetTreeBase* CreateInstance(const char* name, EAnalisysType_t type = kJetPP);
165 
166  protected:
167  void AllocateTTree(const AliJetContainer* jets) = 0;
168  void FillTTree(const AliEmcalJetInfo& jetInfo, const AliJetContainer* jets) = 0;
169 
171 
175 };
176 
184 template <class T>
186  public:
187 
189  AliAnalysisTaskEmcalJetTree(const char *name);
190 
192 
195 
196  protected:
197  void AllocateTTree(const AliJetContainer* jets);
198  void FillTTree(const AliEmcalJetInfo& jetInfo, const AliJetContainer* jets);
199 
200  std::map<std::string, std::vector<T> > *fCurrentOutput;
201 
202  private:
203  AliAnalysisTaskEmcalJetTree(const AliAnalysisTaskEmcalJetTree&); // not implemented
205 
207  ClassDef(AliAnalysisTaskEmcalJetTree, 1)
209 };
210 
211 #endif
Declaration of class AliAnalysisTaskEmcalJetSpectraQA.
void FillTTree(const AliEmcalJetInfo &jetInfo, const AliJetContainer *jets)=0
Class that encapsulates jets in a very compact structure (embedding analysis)
AliAnalysisTaskEmcalJetTree()
Default constructor for ROOT I/O purposes.
std::map< std::string, std::vector< T > > * fCurrentOutput
! This vector contains the pointers of the tree branch objects
Double32_t fEP
Angle between the jet axis and the event plane.
void UserCreateOutputObjects()
Overloads base class method. Creates output objects.
Double32_t fPt
Transverse momentum of the jet in GeV/c.
void AllocateTTree(const AliJetContainer *jets)=0
Pure virtual base class for AliAnalysisTaskEmcalJetTree<T>
Implementation of a task to generate a tree with all jets.
void FillTTree(const AliEmcalJetInfo &jetInfo, const AliJetContainer *jets)
static AliAnalysisTaskEmcalJetTreeBase * CreateInstance(const char *name, EAnalisysType_t type=kJetPP)
AliAnalysisTaskEmcalJetTree & operator=(const AliAnalysisTaskEmcalJetTree &)
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
Double32_t fEP
Angle between the jet axis and the event plane.
Class that encapsulates jets in a very compact structure (Pb-Pb analysis)
void AllocateTTree(const AliJetContainer *jets)
Container for jet within the EMCAL jet framework.
Implementation of a task to perform QA on jet spectra.