ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AnaTutorialECCE.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file AnaTutorialECCE.h
1 #ifndef ANATUTORIALECCE_H__
2 #define ANATUTORIALECCE_H__
3 
4 #include <fun4all/SubsysReco.h>
5 
8 class PHCompositeNode;
9 class TFile;
10 class TTree;
11 class TH1;
12 class TH2;
13 class PHCompositeNode;
15 class RawCluster;
16 class SvtxTrackMap;
17 class JetMap;
18 class GlobalVertex;
19 class PHHepMCGenEventMap;
20 class JetEvalStack;
21 class JetRecoEval;
23 class PHHepMCGenEvent;
24 class CaloTriggerInfo;
25 class JetTruthEval;
26 class JetEvalStack;
27 
30 {
31  public:
33  AnaTutorialECCE(const std::string &name = "AnaTutorialECCE",
34  const std::string &fname = "AnaTutorialECCE.root");
35 
36  // Destructor
37  virtual ~AnaTutorialECCE();
38 
40  int Init(PHCompositeNode *);
41 
44 
46  int End(PHCompositeNode *);
47 
49  void setMinJetPt(float minjetpt) { m_minjetpt = minjetpt; }
50 
52  void setMinClusPt(float mincluspt) { m_mincluspt = mincluspt; }
53 
59 
60  private:
62  std::string m_outfilename;
63 
66 
68  float m_minjetpt;
69 
71  float m_mincluspt;
72 
75 
78 
81 
84 
86  TFile *m_outfile;
87  TTree *m_clustertree;
88  TTree *m_tracktree;
89  TTree *m_hepmctree;
90  TTree *m_truthtree;
91  TTree *m_recojettree;
93  TH1 *m_phi_h;
95 
97 
99  void getTracks(PHCompositeNode *topNode);
100  void getTruthJets(PHCompositeNode *topNode);
101  void getReconstructedJets(PHCompositeNode *topNode);
102  void getEMCalClusters(PHCompositeNode *topNode);
103  void getHEPMCTruth(PHCompositeNode *topNode);
104  void getPHG4Truth(PHCompositeNode *topNode);
105 
106  void initializeVariables();
107  void initializeTrees();
108 
113 
116  double m_x1;
117  double m_x2;
118  int m_mpi;
121  double m_trutheta;
122  double m_truthphi;
123  double m_truthpx;
124  double m_truthpy;
125  double m_truthpz;
126  double m_truthpt;
127  double m_truthp;
130 
132  double m_tr_px;
133  double m_tr_py;
134  double m_tr_pz;
135  double m_tr_p;
136  double m_tr_pt;
137  double m_tr_phi;
138  double m_tr_eta;
139  int m_charge;
140  double m_chisq;
141  int m_ndf;
142  double m_dca;
143  double m_tr_x;
144  double m_tr_y;
145  double m_tr_z;
159 
161  double m_recojetpt;
163  double m_recojetpx;
164  double m_recojetpy;
165  double m_recojetpz;
166  double m_recojetphi;
167  double m_recojetp;
169  double m_recojeteta;
171  double m_truthjetp;
174  double m_truthjetpt;
176  double m_truthjetpx;
177  double m_truthjetpy;
178  double m_truthjetpz;
179  double m_dR;
180 
182  double m_clusenergy;
183  double m_cluseta;
184  double m_clustheta;
185  double m_cluspt;
186  double m_clusphi;
187  double m_cluspx;
188  double m_cluspy;
189  double m_cluspz;
190  double m_E_4x4;
191 };
192 
193 #endif