forked from sPHENIX-Collaboration/analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTreeMaker.h
111 lines (84 loc) · 2.16 KB
/
TreeMaker.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#ifndef __TREEMAKER_H__
#define __TREEMAKER_H__
// --- need to check all these includes...
#include <fun4all/SubsysReco.h>
#include "TTree.h"
#include "TFile.h"
class PHCompositeNode;
class TreeMaker: public SubsysReco
{
public:
TreeMaker(const std::string &name="TreeMaker.root");
~TreeMaker();
int Init(PHCompositeNode*);
int InitRun(PHCompositeNode*);
int process_event(PHCompositeNode*);
int End(PHCompositeNode*);
int CreateNode(PHCompositeNode*);
int InitializeTree();
int InitializeCounters();
int GetTruthJets(PHCompositeNode*);
int GetRecoJets(PHCompositeNode*);
int GetClusters(PHCompositeNode*);
int CopyAndMakeJets(PHCompositeNode*);
int CopyAndMakeClusters(PHCompositeNode*);
int UseFastJet(PHCompositeNode*);
private:
TFile *outfile;
TTree *tree;
std::string foutname;
int b_tower_n;
int b_tower_layer[10000];
float b_tower_e[10000];
float b_tower_eta[10000];
float b_tower_phi[10000];
float b_tower_total_0;
float b_tower_total_1;
float b_tower_total_2;
int b_jet5_n;
float b_jet5_e[200];
float b_jet5_pt[200];
float b_jet5_eta[200];
float b_jet5_phi[200];
int b_jet4_n;
float b_jet4_e[200];
float b_jet4_pt[200];
float b_jet4_eta[200];
float b_jet4_phi[200];
int b_jet3_n;
float b_jet3_e[200];
float b_jet3_pt[200];
float b_jet3_eta[200];
float b_jet3_phi[200];
int b_jet2_n;
float b_jet2_e[200];
float b_jet2_pt[200];
float b_jet2_eta[200];
float b_jet2_phi[200];
int b_modjet2_n;
float b_modjet2_e[200];
float b_modjet2_pt[200];
float b_modjet2_eta[200];
float b_modjet2_phi[200];
int b_truthjet5_n;
float b_truthjet5_e[200];
float b_truthjet5_pt[200];
float b_truthjet5_eta[200];
float b_truthjet5_phi[200];
int b_truthjet4_n;
float b_truthjet4_e[200];
float b_truthjet4_pt[200];
float b_truthjet4_eta[200];
float b_truthjet4_phi[200];
int b_truthjet3_n;
float b_truthjet3_e[200];
float b_truthjet3_pt[200];
float b_truthjet3_eta[200];
float b_truthjet3_phi[200];
int b_truthjet2_n;
float b_truthjet2_e[200];
float b_truthjet2_pt[200];
float b_truthjet2_eta[200];
float b_truthjet2_phi[200];
};
#endif // __TREEMAKER_H__