Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TreeMaker.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TreeMaker.h
1 #ifndef __TREEMAKER_H__
2 #define __TREEMAKER_H__
3 
4 // --- need to check all these includes...
5 #include <fun4all/SubsysReco.h>
6 
7 #include "TTree.h"
8 #include "TFile.h"
9 
10 class PHCompositeNode;
11 
12 class TreeMaker: public SubsysReco
13 {
14 
15  public:
16 
17  TreeMaker(const std::string &name="TreeMaker.root");
18  ~TreeMaker();
19 
20  int Init(PHCompositeNode*);
23  int End(PHCompositeNode*);
25 
26  int InitializeTree();
27  int InitializeCounters();
28 
35 
36  private:
37 
38  TFile *outfile;
39 
40  TTree *tree;
41 
43 
44  int b_tower_n;
45  int b_tower_layer[10000];
46  float b_tower_e[10000];
47  float b_tower_eta[10000];
48  float b_tower_phi[10000];
49 
53 
54  int b_jet5_n;
55  float b_jet5_e[200];
56  float b_jet5_pt[200];
57  float b_jet5_eta[200];
58  float b_jet5_phi[200];
59 
60  int b_jet4_n;
61  float b_jet4_e[200];
62  float b_jet4_pt[200];
63  float b_jet4_eta[200];
64  float b_jet4_phi[200];
65 
66  int b_jet3_n;
67  float b_jet3_e[200];
68  float b_jet3_pt[200];
69  float b_jet3_eta[200];
70  float b_jet3_phi[200];
71 
72  int b_jet2_n;
73  float b_jet2_e[200];
74  float b_jet2_pt[200];
75  float b_jet2_eta[200];
76  float b_jet2_phi[200];
77 
79  float b_modjet2_e[200];
80  float b_modjet2_pt[200];
81  float b_modjet2_eta[200];
82  float b_modjet2_phi[200];
83 
85  float b_truthjet5_e[200];
86  float b_truthjet5_pt[200];
87  float b_truthjet5_eta[200];
88  float b_truthjet5_phi[200];
89 
91  float b_truthjet4_e[200];
92  float b_truthjet4_pt[200];
93  float b_truthjet4_eta[200];
94  float b_truthjet4_phi[200];
95 
97  float b_truthjet3_e[200];
98  float b_truthjet3_pt[200];
99  float b_truthjet3_eta[200];
100  float b_truthjet3_phi[200];
101 
103  float b_truthjet2_e[200];
104  float b_truthjet2_pt[200];
105  float b_truthjet2_eta[200];
106  float b_truthjet2_phi[200];
107 
108 };
109 
110 #endif // __TREEMAKER_H__
111