AliPhysics  b43479f (b43479f)
 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 
44  public:
48 
49  virtual void Reset();
50  virtual void Set(const AliEmcalJetInfo& source);
51 
53  Double32_t fPt ; //[0,200,12]
55  Double32_t fEta ; //[-2,2,10]
57  Double32_t fPhi ; //[0,2*pi,10]
58  // Fraction of neutral energy
59  Double32_t fNEF ; //[0,1,6]
60  // Momentum fraction of the leading particle
61  Double32_t fZLeading ; //[0,1,8]
62 
64  ClassDef(AliEmcalJetInfoSummaryBase, 1);
66  };
67 
76  public:
79 
80  virtual void Reset();
81  virtual void Set(const AliEmcalJetInfo& source);
82 
83  Char_t fNConstituents;
84 
86  ClassDef(AliEmcalJetInfoSummaryPP, 1);
88  };
89 
98  public:
101 
102  virtual void Reset();
103  virtual void Set(const AliEmcalJetInfo& source);
104 
105  Char_t fCent ;
106  Double32_t fEP ; //[0,pi,10]
109  Double32_t fArea ; //[0,10,11]
111  Double32_t fNConstituents ; //[0,1000,9]
113  Double32_t fCorrPt ; //[0,200,12]
114 
116  ClassDef(AliEmcalJetInfoSummaryPbPb, 1);
118  };
119 
128  public:
131 
132  virtual void Reset();
133  virtual void Set(const AliEmcalJetInfo& source);
134 
135  Double32_t fMCPt ; //[0,200,12]
136 
138  ClassDef(AliEmcalJetInfoSummaryEmbedding, 1);
140  };
141 
143  AliAnalysisTaskEmcalJetTreeBase(const char *name);
145 
146  static AliAnalysisTaskEmcalJetTreeBase* CreateInstance(const char* name, EAnalisysType_t type = kJetPP);
147 
148  protected:
149  void AllocateTTree(const AliJetContainer* jets) = 0;
150  void FillTTree(const AliEmcalJetInfo& jetInfo, const AliJetContainer* jets) = 0;
151 
152  TTree *fTree;
153 
157 };
158 
166 template <class T>
168  public:
169 
171  AliAnalysisTaskEmcalJetTree(const char *name);
172 
174 
176  Bool_t FillHistograms();
177 
178  protected:
179  void AllocateTTree(const AliJetContainer* jets);
180  void FillTTree(const AliEmcalJetInfo& jetInfo, const AliJetContainer* jets);
181 
182  std::map<std::string, std::vector<T> > *fCurrentOutput;
183 
184  private:
185  AliAnalysisTaskEmcalJetTree(const AliAnalysisTaskEmcalJetTree&); // not implemented
187 
189  ClassDef(AliAnalysisTaskEmcalJetTree, 1)
191 };
192 
193 #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)
Class that encapsulates jets in a very compact structure.
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
void UserCreateOutputObjects()
Overloads base class method. Creates output objects.
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 fEP
Angle between the jet axis and the event plane.
Class that encapsulates jets in a very compact structure (Pb-Pb analysis)
Double32_t fPt
Transverse momentum of the jet in GeV/c.
void AllocateTTree(const AliJetContainer *jets)
Implementation of a task to perform QA on jet spectra.