-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNtuple.h
executable file
·124 lines (105 loc) · 2.46 KB
/
Ntuple.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#ifndef Ntuple_h
#define Ntuple_h
#include "TChain.h"
#define MAXVTX 10
#define MAXJET 15
#define MAXPHO 12
#define MAXMU 5
#define MAXELE 5
#define MAXGEN 20
struct Ntuple
{
unsigned int runId;
unsigned int lumiSection;
unsigned int orbit;
unsigned int bx;
unsigned int eventId;
int triggered ;
int L1a;
// vertex variables
int nVertices;
int totalNVtx ;
float vtxNTracks[MAXVTX];
float vtxChi2[MAXVTX];
float vtxNdof[MAXVTX];
float vtxX[MAXVTX];
float vtxDx[MAXVTX];
float vtxY[MAXVTX];
float vtxDy[MAXVTX];
float vtxZ[MAXVTX];
float vtxDz[MAXVTX];
// reco variables
int nJets ;
float jetPx[MAXJET];
float jetPy[MAXJET];
float jetPz[MAXJET];
float jetE[MAXJET];
int jetNDau[MAXJET];
int jetCM[MAXJET];
float jetCEF[MAXJET];
float jetCHF[MAXJET];
float jetNHF[MAXJET];
float jetNEF[MAXJET];
float metPx;
float metPy;
float met;
int nElectrons ;
float elePx[MAXELE];
float elePy[MAXELE];
float elePz[MAXELE];
float eleE[MAXELE];
int eleNLostHits[MAXELE] ;
float eleEcalIso[MAXELE];
float eleHcalIso[MAXELE];
float eleTrkIso[MAXELE];
int nMuons ;
float muPx[MAXMU];
float muPy[MAXMU];
float muPz[MAXMU];
float muE[MAXMU];
int nPhotons ;
float phoPx[MAXPHO];
float phoPy[MAXPHO];
float phoPz[MAXPHO];
float phoE[MAXPHO];
float phoEcalIso[MAXPHO];
float phoHcalIso[MAXPHO];
float phoTrkIso[MAXPHO];
float dR_TrkPho[MAXPHO];
float pt_TrkPho[MAXPHO];
float phoHoverE[MAXPHO];
float sMinPho[MAXPHO];
float sMajPho[MAXPHO];
float seedTime[MAXPHO];
float seedTimeErr[MAXPHO];
float aveTime[MAXPHO];
float aveTime1[MAXPHO];
float aveTimeErr[MAXPHO];
float aveTimeErr1[MAXPHO];
float timeChi2[MAXPHO] ;
float fSpike[MAXPHO] ;
float seedSwissX[MAXPHO] ;
int nXtals[MAXPHO] ;
int nBC[MAXPHO] ;
// Gen Particle information
int nGen ;
int pdgId[MAXGEN] ;
int momId[MAXGEN] ;
float genPx[MAXGEN] ;
float genPy[MAXGEN] ;
float genPz[MAXGEN] ;
float genE[MAXGEN] ;
float genM[MAXGEN] ;
float genVx[MAXGEN] ;
float genVy[MAXGEN] ;
float genVz[MAXGEN] ;
float genT[MAXGEN] ;
};
// ------------------------------------------------------------------------
//! branch addresses settings
void setBranchAddresses(TTree* chain, Ntuple& treeVars);
//! create branches for a tree
void setBranches(TTree* chain, Ntuple& treeVars);
//! initialize branches
void initializeBranches(TTree* chain, Ntuple& treeVars);
#endif