AliPhysics  3f43add (3f43add)
 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,200,12]
57  Double32_t fEta ; //[-2,2,10]
59  Double32_t fPhi ; //[0,2*pi,10]
60  // Fraction of neutral energy
61  Double32_t fNEF ; //[0,1,6]
62  // Momentum fraction of the leading particle
63  Double32_t fZLeading ; //[0,1,8]
64  Char_t fNConstituents;
65 
67  ClassDef(AliEmcalJetInfoSummaryPP, 2);
69  };
70 
79  public:
80  AliEmcalJetInfoSummaryPbPb() : fPt(0), fEta(0), fPhi(0), fNEF(0), fZLeading(0), fCent(0), fEP(0), fArea(0), fNConstituents(0), fCorrPt(0) {;}
82 
84 
85  void Reset();
86  void Set(const AliEmcalJetInfo& source);
87 
89  Double32_t fPt ; //[0,200,12]
91  Double32_t fEta ; //[-2,2,10]
93  Double32_t fPhi ; //[0,2*pi,10]
94  // Fraction of neutral energy
95  Double32_t fNEF ; //[0,1,6]
96  // Momentum fraction of the leading particle
97  Double32_t fZLeading ; //[0,1,8]
98  Char_t fCent ;
99  Double32_t fEP ; //[0,pi,10]
102  Double32_t fArea ; //[0,10,11]
104  Double32_t fNConstituents ; //[0,1000,9]
106  Double32_t fCorrPt ; //[0,200,12]
107 
109  ClassDef(AliEmcalJetInfoSummaryPbPb, 2);
111  };
112 
121  public:
124 
126 
127  void Reset();
128  void Set(const AliEmcalJetInfo& source);
129 
131  Double32_t fPt ; //[0,200,12]
133  Double32_t fEta ; //[-2,2,10]
135  Double32_t fPhi ; //[0,2*pi,10]
136  // Fraction of neutral energy
137  Double32_t fNEF ; //[0,1,6]
138  // Momentum fraction of the leading particle
139  Double32_t fZLeading ; //[0,1,8]
140  Char_t fCent ;
141  Double32_t fEP ; //[0,pi,10]
144  Double32_t fArea ; //[0,10,11]
146  Double32_t fNConstituents ; //[0,1000,9]
148  Double32_t fCorrPt ; //[0,200,12]
149  Double32_t fMCPt ; //[0,200,12]
150 
152  ClassDef(AliEmcalJetInfoSummaryEmbedding, 2);
154  };
155 
157  AliAnalysisTaskEmcalJetTreeBase(const char *name);
159 
160  static AliAnalysisTaskEmcalJetTreeBase* CreateInstance(const char* name, EAnalisysType_t type = kJetPP);
161 
162  protected:
163  void AllocateTTree(const AliJetContainer* jets) = 0;
164  void FillTTree(const AliEmcalJetInfo& jetInfo, const AliJetContainer* jets) = 0;
165 
166  TTree *fTree;
167 
171 };
172 
180 template <class T>
182  public:
183 
185  AliAnalysisTaskEmcalJetTree(const char *name);
186 
188 
190  Bool_t FillHistograms();
191 
192  protected:
193  void AllocateTTree(const AliJetContainer* jets);
194  void FillTTree(const AliEmcalJetInfo& jetInfo, const AliJetContainer* jets);
195 
196  std::map<std::string, std::vector<T> > *fCurrentOutput;
197 
198  private:
199  AliAnalysisTaskEmcalJetTree(const AliAnalysisTaskEmcalJetTree&); // not implemented
201 
203  ClassDef(AliAnalysisTaskEmcalJetTree, 1)
205 };
206 
207 #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.
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.