forked from amissert/atmFitTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfqReader.h
308 lines (300 loc) · 11.1 KB
/
fqReader.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
//////////////////////////////////////////////////////////
// This class has been automatically generated on
// Fri Sep 4 11:28:11 2015 by ROOT version 5.28/00c
// from TTree h1/DST
// found on file: jan14sk4_skdetsim13p90_neut532.reduc.081_fQv4r0.root
//////////////////////////////////////////////////////////
#ifndef __FQREADER_H__
#define __FQREADER_H__
#include "TROOT.h"
#include "TChain.h"
#include "TFile.h"
#include "TTree.h"
#include "TBranch.h"
class fqReader {
public :
TTree *fChain; //!pointer to the analyzed TTree or TChain
Int_t fCurrent; //!current Tree number in a TChain
// Declaration of leaf types
Int_t nring;
Int_t nev;
UInt_t nhitac;
UInt_t ip[10]; //[nring]
Float_t amom[10]; //[nring]
Float_t amome[10]; //[nring]
Float_t amomm[10]; //[nring]
Int_t nmue;
Int_t npar;
Float_t wallv;
UInt_t ipv[50]; //[npar]
Float_t posv[3];
Float_t dirv[50][3]; //[npar]
Float_t pmomv[50]; //[npar]
Int_t npar2;
UInt_t ipv2[50]; //[npar2]
Int_t numnu;
Int_t mode;
Int_t ipnu[50]; //[numnu]
Float_t pnu[50]; //[numnu]
Float_t dirnu[50][3]; //[numnu]
Float_t flxh06[3];
Float_t flxh11[3];
Int_t nscndprt;
Int_t itrkscnd[1000]; //[nscndprt]
Float_t vtxscnd[1000][3]; //[nscndprt]
Float_t pscnd[1000][3]; //[nscndprt]
Int_t iprtscnd[1000]; //[nscndprt]
Float_t tscnd[1000]; //[nscndprt]
Int_t iprntprt[1000]; //[nscndprt]
Int_t lmecscnd[1000]; //[nscndprt]
Int_t iprnttrk[1000]; //[nscndprt]
Int_t iorgprt[1000]; //[nscndprt]
Float_t pprnt[1000][3]; //[nscndprt]
Int_t iflgscnd[1000]; //[nscndprt]
Int_t Npvc;
Int_t Ipvc[100]; //[Npvc]
Int_t Ichvc[100]; //[Npvc]
Int_t Iorgvc[100]; //[Npvc]
Int_t Iflvc[100]; //[Npvc]
Float_t Abspvc[100]; //[Npvc]
Float_t Pvc[100][3]; //[Npvc]
Float_t Crsx;
Float_t Crsy;
Float_t Crsz;
Float_t Crsphi;
Int_t Numbndn;
Int_t Numbndp;
Int_t Numfrep;
Int_t Numatom;
Int_t Ibound;
Int_t Nvert;
Float_t Posvert[300][3]; //[Nvert]
Int_t Iflgvert[300]; //[Nvert]
Int_t Nvcvert;
Float_t Dirvert[900][3]; //[Nvcvert]
Float_t Abspvert[900]; //[Nvcvert]
Float_t Abstpvert[900]; //[Nvcvert]
Int_t Ipvert[900]; //[Nvcvert]
Int_t Iverti[900]; //[Nvcvert]
Int_t Ivertf[900]; //[Nvcvert]
Float_t Fsiprob;
Int_t fqntwnd;
Int_t fqtwnd_iclstr[10]; //[fqntwnd]
Int_t fqtwnd_npeak[10]; //[fqntwnd]
Float_t fqtwnd_prftt0[10]; //[fqntwnd]
Float_t fqtwnd_prftpos[10][3]; //[fqntwnd]
Float_t fqtwnd[10][2]; //[fqntwnd]
Float_t fqtwnd_peakt0[10][10]; //[fqntwnd]
Float_t fqtwnd_peakiness[10][10]; //[fqntwnd]
Int_t fqnse;
Int_t fqitwnd[10]; //[fqnse]
Int_t fqipeak[10]; //[fqnse]
Int_t fqnhitpmt[10]; //[fqnse]
Float_t fqtotq[10]; //[fqnse]
Float_t fq0rtotmu[10]; //[fqnse]
Float_t fq0rnll[10]; //[fqnse]
Int_t fqn50[10]; //[fqnse]
Float_t fqq50[10]; //[fqnse]
Int_t fq1rpcflg[10][7]; //[fqnse]
Float_t fq1rmom[10][7]; //[fqnse]
Float_t fq1rt0[10][7]; //[fqnse]
Float_t fq1rtotmu[10][7]; //[fqnse]
Float_t fq1rnll[10][7]; //[fqnse]
Float_t fq1rpos[10][7][3]; //[fqnse]
Float_t fq1rdir[10][7][3]; //[fqnse]
Float_t fq1rdconv[10][7]; //[fqnse]
Float_t fq1reloss[10][7]; //[fqnse]
Int_t fqpi0pcflg[2];
Float_t fqpi0mom1[2];
Float_t fqpi0mom2[2];
Float_t fqpi0momtot[2];
Float_t fqpi0dconv1[2];
Float_t fqpi0dconv2[2];
Float_t fqpi0t0[2];
Float_t fqpi0totmu[2];
Float_t fqpi0nll[2];
Float_t fqpi0mass[2];
Float_t fqpi0photangle[2];
Float_t fqpi0pos[2][3];
Float_t fqpi0dir1[2][3];
Float_t fqpi0dir2[2][3];
Float_t fqpi0dirtot[2][3];
Int_t fqnmrfit;
Int_t fqmrifit[32]; //[fqnmrfit]
Int_t fqmrnring[32]; //[fqnmrfit]
Int_t fqmrpcflg[32]; //[fqnmrfit]
Float_t fqmrnll[32]; //[fqnmrfit]
Float_t fqmrtotmu[32]; //[fqnmrfit]
Int_t fqmrpid[32][6]; //[fqnmrfit]
Float_t fqmrmom[32][6]; //[fqnmrfit]
Float_t fqmrdconv[32][6]; //[fqnmrfit]
Float_t fqmreloss[32][6]; //[fqnmrfit]
Float_t fqmrt0[32][6]; //[fqnmrfit]
Float_t fqmrpos[32][6][3]; //[fqnmrfit]
Float_t fqmrdir[32][6][3]; //[fqnmrfit]
Int_t fqmsnfit;
Int_t fqmspcflg[5]; //[fqmsnfit]
Int_t fqmsnseg[5]; //[fqmsnfit]
Int_t fqmspid[5]; //[fqmsnfit]
Int_t fqmsifit[5]; //[fqmsnfit]
Int_t fqmsimer[5]; //[fqmsnfit]
Float_t fqmstotmu[5]; //[fqmsnfit]
Float_t fqmsnll[5]; //[fqmsnfit]
Float_t fqmsmom[5][20]; //[fqmsnfit]
Float_t fqmseloss[5][20]; //[fqmsnfit]
Float_t fqmst0[5][20]; //[fqmsnfit]
Float_t fqmspos[5][20][3]; //[fqmsnfit]
Float_t fqmsdir[5][20][3]; //[fqmsnfit]
Float_t oscwgt;
Double_t wgtosc1[4];
Double_t wgtosc2[4];
Double_t wgtflx[4];
Float_t fWeight;
Float_t rfgWeight;
// List of branches
TBranch *b_nring; //!
TBranch *b_nev; //!
TBranch *b_nhitac; //!
TBranch *b_ip; //!
TBranch *b_amom; //!
TBranch *b_amome; //!
TBranch *b_amomm; //!
TBranch *b_nmue; //!
TBranch *b_npar; //!
TBranch *b_wallv; //!
TBranch *b_ipv; //!
TBranch *b_posv; //!
TBranch *b_dirv; //!
TBranch *b_pmomv; //!
TBranch *b_npar2; //!
TBranch *b_ipv2; //!
TBranch *b_numnu; //!
TBranch *b_mode; //!
TBranch *b_ipnu; //!
TBranch *b_pnu; //!
TBranch *b_dirnu; //!
TBranch *b_flxh06; //!
TBranch *b_flxh11; //!
TBranch *b_nscndprt; //!
TBranch *b_itrkscnd; //!
TBranch *b_vtxscnd; //!
TBranch *b_pscnd; //!
TBranch *b_iprtscnd; //!
TBranch *b_tscnd; //!
TBranch *b_iprntprt; //!
TBranch *b_lmecscnd; //!
TBranch *b_iprnttrk; //!
TBranch *b_iorgprt; //!
TBranch *b_pprnt; //!
TBranch *b_iflgscnd; //!
TBranch *b_Npvc; //!
TBranch *b_Ipvc; //!
TBranch *b_Ichvc; //!
TBranch *b_Iorgvc; //!
TBranch *b_Iflvc; //!
TBranch *b_Abspvc; //!
TBranch *b_Pvc; //!
TBranch *b_Crsx; //!
TBranch *b_Crsy; //!
TBranch *b_Crsz; //!
TBranch *b_Crsphi; //!
TBranch *b_Numbndn; //!
TBranch *b_Numbndp; //!
TBranch *b_Numfrep; //!
TBranch *b_Numatom; //!
TBranch *b_Ibound; //!
TBranch *b_Nvert; //!
TBranch *b_Posvert; //!
TBranch *b_Iflgvert; //!
TBranch *b_Nvcvert; //!
TBranch *b_Dirvert; //!
TBranch *b_Abspvert; //!
TBranch *b_Abstpvert; //!
TBranch *b_Ipvert; //!
TBranch *b_Iverti; //!
TBranch *b_Ivertf; //!
TBranch *b_Fsiprob; //!
TBranch *b_fqntwnd; //!
TBranch *b_fqtwnd_iclstr; //!
TBranch *b_fqtwnd_npeak; //!
TBranch *b_fqtwnd_prftt0; //!
TBranch *b_fqtwnd_prftpos; //!
TBranch *b_fqtwnd; //!
TBranch *b_fqtwnd_peakt0; //!
TBranch *b_fqtwnd_peakiness; //!
TBranch *b_fqnse; //!
TBranch *b_fqitwnd; //!
TBranch *b_fqipeak; //!
TBranch *b_fqnhitpmt; //!
TBranch *b_fqtotq; //!
TBranch *b_fq0rtotmu; //!
TBranch *b_fq0rnll; //!
TBranch *b_fqn50; //!
TBranch *b_fqq50; //!
TBranch *b_fq1rpcflg; //!
TBranch *b_fq1rmom; //!
TBranch *b_fq1rt0; //!
TBranch *b_fq1rtotmu; //!
TBranch *b_fq1rnll; //!
TBranch *b_fq1rpos; //!
TBranch *b_fq1rdir; //!
TBranch *b_fq1rdconv; //!
TBranch *b_fq1reloss; //!
TBranch *b_fqpi0pcflg; //!
TBranch *b_fqpi0mom1; //!
TBranch *b_fqpi0mom2; //!
TBranch *b_fqpi0momtot; //!
TBranch *b_fqpi0dconv1; //!
TBranch *b_fqpi0dconv2; //!
TBranch *b_fqpi0t0; //!
TBranch *b_fqpi0totmu; //!
TBranch *b_fqpi0nll; //!
TBranch *b_fqpi0mass; //!
TBranch *b_fqpi0photangle; //!
TBranch *b_fqpi0pos; //!
TBranch *b_fqpi0dir1; //!
TBranch *b_fqpi0dir2; //!
TBranch *b_fqpi0dirtot; //!
TBranch *b_fqnmrfit; //!
TBranch *b_fqmrifit; //!
TBranch *b_fqmrnring; //!
TBranch *b_fqmrpcflg; //!
TBranch *b_fqmrnll; //!
TBranch *b_fqmrtotmu; //!
TBranch *b_fqmrpid; //!
TBranch *b_fqmrmom; //!
TBranch *b_fqmrdconv; //!
TBranch *b_fqmreloss; //!
TBranch *b_fqmrt0; //!
TBranch *b_fqmrpos; //!
TBranch *b_fqmrdir; //!
TBranch *b_fqmsnfit; //!
TBranch *b_fqmspcflg; //!
TBranch *b_fqmsnseg; //!
TBranch *b_fqmspid; //!
TBranch *b_fqmsifit; //!
TBranch *b_fqmsimer; //!
TBranch *b_fqmstotmu; //!
TBranch *b_fqmsnll; //!
TBranch *b_fqmsmom; //!
TBranch *b_fqmseloss; //!
TBranch *b_fqmst0; //!
TBranch *b_fqmspos; //!
TBranch *b_fqmsdir; //!
TBranch *b_oscwgt; //!
TBranch *b_wgtosc1; //!
TBranch *b_wgtosc2; //!
TBranch *b_wgtflx; //!
TBranch *b_fWeight; //!
TBranch *b_rfgWeight; //!
fqReader(TTree *tree=0);
virtual ~fqReader();
virtual Int_t Cut(Long64_t entry);
virtual Int_t GetEntry(Long64_t entry);
virtual Long64_t LoadTree(Long64_t entry);
virtual void Init(TTree *tree);
virtual void Loop();
virtual Bool_t Notify();
virtual void Show(Long64_t entry = -1);
};
#endif