forked from nuPRISM/temp_event_display
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfitQunDisplay.h
516 lines (492 loc) · 25.3 KB
/
fitQunDisplay.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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
//////////////////////////////////////////////////////////
// This class has been automatically generated on
// Fri Jun 20 13:41:57 2014 by ROOT version 5.34/10
// from TTree fiTQun/
// found on file: ../hk-fitqun/HyperK_muminus_1000MeV_random_4pi_000_v3r4.root
//////////////////////////////////////////////////////////
#ifndef fitQunDisplay_h
#define fitQunDisplay_h
#include <math.h>
#include <TROOT.h>
#include <TChain.h>
#include <TFile.h>
#include <TSelector.h>
#include <TEveManager.h>
#include <TEveLine.h>
#include <TEveScene.h>
#include "TEveStraightLineSet.h"
#include "WCSimWrap.h"
#include "hyperk_esd_html_summary.h"
#include "THKGamma.h"
// Header file for the classes stored in the TTree if any.
// Fixed size dimensions of array or collections stored in the TTree if any.
class fitQunDisplay : public TSelector {
private:
// const float pScale=1.0;
#define pScale 0.35
TString HYPO[7];
int HYPERCOLOUR[7];
float MASS[7];
public :
TTree *fChain; //!pointer to the analyzed TTree or TChain
private:
WCSimRootGeom *wcsimrootgeom;
public :
// Declaration of leaf types
Float_t yOffset;
Int_t cluster_ncand;
Float_t cluster_tstart[50]; //[cluster_ncand]
Float_t cluster_tend[50]; //[cluster_ncand]
Int_t cluster_nhits[50]; //[cluster_ncand]
Float_t cluster_totq[50]; //[cluster_ncand]
Int_t cluster_goodflag[50]; //[cluster_ncand]
Int_t cluster_npeaks[50][6]; //[cluster_ncand]
Int_t cluster_ipeak[50][6][10]; //[cluster_ncand]
Float_t cluster_timeofpeak[50][6][10]; //[cluster_ncand]
Int_t muechk_ncand[9];
Float_t muechk_toya[9];
Float_t muechk_tpeak[9][10];
Int_t muechk_bg[9][10];
Float_t muechk_mean[9][10];
Float_t muechk_excess[9][10];
Float_t muechk_signif[9][10];
Int_t muechk_icluster[9][10];
Float_t trgoff;
Int_t fqntwnd;
Int_t fqtwnd_iclstr[50]; //[fqntwnd]
Int_t fqtwnd_npeak[50]; //[fqntwnd]
Float_t fqtwnd_prftt0[50]; //[fqntwnd]
Float_t fqtwnd_prftpos[50][3]; //[fqntwnd]
Float_t fqtwnd[50][2]; //[fqntwnd]
Float_t fqtwnd_peakt0[50][10]; //[fqntwnd]
Float_t fqtwnd_peakiness[50][10]; //[fqntwnd]
Int_t fqnse;
Int_t fqitwnd[50]; //[fqnse]
Int_t fqipeak[50]; //[fqnse]
Int_t fqnhitpmt[50]; //[fqnse]
Float_t fqtotq[50]; //[fqnse]
Float_t fq0rtotmu[50]; //[fqnse]
Float_t fq0rnll[50]; //[fqnse]
Int_t fqn50[50]; //[fqnse]
Float_t fqq50[50]; //[fqnse]
Int_t fq1rpcflg[50][7]; //[fqnse]
Float_t fq1rmom[50][7]; //[fqnse]
Float_t fq1rt0[50][7]; //[fqnse]
Float_t fq1rtotmu[50][7]; //[fqnse]
Float_t fq1rnll[50][7]; //[fqnse]
Float_t fq1rpos[50][7][3]; //[fqnse]
Float_t fq1rdir[50][7][3]; //[fqnse]
Float_t fq1rdconv[50][7]; //[fqnse]
Float_t fq1reloss[50][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[100]; //[fqnmrfit]
Int_t fqmrnring[100]; //[fqnmrfit]
Int_t fqmrpcflg[100]; //[fqnmrfit]
Float_t fqmrnll[100]; //[fqnmrfit]
Float_t fqmrtotmu[100]; //[fqnmrfit]
Int_t fqmrpid[100][6]; //[fqnmrfit]
Float_t fqmrmom[100][6]; //[fqnmrfit]
Float_t fqmrdconv[100][6]; //[fqnmrfit]
Float_t fqmreloss[100][6]; //[fqnmrfit]
Float_t fqmrt0[100][6]; //[fqnmrfit]
Float_t fqmrpos[100][6][3]; //[fqnmrfit]
Float_t fqmrdir[100][6][3]; //[fqnmrfit]
Int_t fqmsnfit;
Int_t fqmspcflg[50]; //[fqmsnfit]
Int_t fqmsnseg[50]; //[fqmsnfit]
Int_t fqmspid[50]; //[fqmsnfit]
Int_t fqmsifit[50]; //[fqmsnfit]
Int_t fqmsimer[50]; //[fqmsnfit]
Float_t fqmstotmu[50]; //[fqmsnfit]
Float_t fqmsnll[50]; //[fqmsnfit]
Float_t fqmsmom[50][20]; //[fqmsnfit]
Float_t fqmseloss[50][20]; //[fqmsnfit]
Float_t fqmst0[50][20]; //[fqmsnfit]
Float_t fqmspos[50][20][3]; //[fqmsnfit]
Float_t fqmsdir[50][20][3]; //[fqmsnfit]
Int_t fqtestn1r;
Int_t fqtest1rstage[50]; //[fqtestn1r]
Int_t fqtest1rse[50]; //[fqtestn1r]
Int_t fqtest1rpid[50]; //[fqtestn1r]
Int_t fqtest1rpcflg[50]; //[fqtestn1r]
Float_t fqtest1rmom[50]; //[fqtestn1r]
Float_t fqtest1rt0[50]; //[fqtestn1r]
Float_t fqtest1rtotmu[50]; //[fqtestn1r]
Float_t fqtest1rnll[50]; //[fqtestn1r]
Float_t fqtest1rpos[50][3]; //[fqtestn1r]
Float_t fqtest1rdir[50][3]; //[fqtestn1r]
Float_t fqtest1rdconv[50]; //[fqtestn1r]
Float_t fqtest1reloss[50]; //[fqtestn1r]
Int_t fqtestnpi0;
Int_t fqtestpi0stage[50]; //[fqtestnpi0]
Int_t fqtestpi0pcflg[50]; //[fqtestnpi0]
Float_t fqtestpi0mom1[50]; //[fqtestnpi0]
Float_t fqtestpi0mom50[50]; //[fqtestnpi0]
Float_t fqtestpi0momtot[50]; //[fqtestnpi0]
Float_t fqtestpi0dconv1[50]; //[fqtestnpi0]
Float_t fqtestpi0dconv50[50]; //[fqtestnpi0]
Float_t fqtestpi0t0[50]; //[fqtestnpi0]
Float_t fqtestpi0totmu[50]; //[fqtestnpi0]
Float_t fqtestpi0nll[50]; //[fqtestnpi0]
Float_t fqtestpi0mass[50]; //[fqtestnpi0]
Float_t fqtestpi0photangle[50]; //[fqtestnpi0]
Float_t fqtestpi0pos[50][3]; //[fqtestnpi0]
Float_t fqtestpi0dir1[50][3]; //[fqtestnpi0]
Float_t fqtestpi0dir50[50][3]; //[fqtestnpi0]
Float_t fqtestpi0dirtot[50][3]; //[fqtestnpi0]
Int_t ifqver;
Float_t fqproctime[20];
Int_t nevt;
// List of branches
TBranch *b_cluster_ncand; //!
TBranch *b_cluster_tstart; //!
TBranch *b_cluster_tend; //!
TBranch *b_cluster_nhits; //!
TBranch *b_cluster_totq; //!
TBranch *b_cluster_goodflag; //!
TBranch *b_cluster_npeaks; //!
TBranch *b_cluster_ipeak; //!
TBranch *b_cluster_timeofpeak; //!
TBranch *b_muechk_ncand; //!
TBranch *b_muechk_toya; //!
TBranch *b_muechk_tpeak; //!
TBranch *b_muechk_bg; //!
TBranch *b_muechk_mean; //!
TBranch *b_muechk_excess; //!
TBranch *b_muechk_signif; //!
TBranch *b_muechk_icluster; //!
TBranch *b_trgoff; //!
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_fqtestn1r; //!
TBranch *b_fqtest1rstage; //!
TBranch *b_fqtest1rse; //!
TBranch *b_fqtest1rpid; //!
TBranch *b_fqtest1rpcflg; //!
TBranch *b_fqtest1rmom; //!
TBranch *b_fqtest1rt0; //!
TBranch *b_fqtest1rtotmu; //!
TBranch *b_fqtest1rnll; //!
TBranch *b_fqtest1rpos; //!
TBranch *b_fqtest1rdir; //!
TBranch *b_fqtest1rdconv; //!
TBranch *b_fqtest1reloss; //!
TBranch *b_fqtestnpi0; //!
TBranch *b_fqtestpi0stage; //!
TBranch *b_fqtestpi0pcflg; //!
TBranch *b_fqtestpi0mom1; //!
TBranch *b_fqtestpi0mom2; //!
TBranch *b_fqtestpi0momtot; //!
TBranch *b_fqtestpi0dconv1; //!
TBranch *b_fqtestpi0dconv2; //!
TBranch *b_fqtestpi0t0; //!
TBranch *b_fqtestpi0totmu; //!
TBranch *b_fqtestpi0nll; //!
TBranch *b_fqtestpi0mass; //!
TBranch *b_fqtestpi0photangle; //!
TBranch *b_fqtestpi0pos; //!
TBranch *b_fqtestpi0dir1; //!
TBranch *b_fqtestpi0dir2; //!
TBranch *b_fqtestpi0dirtot; //!
TBranch *b_ifqver; //!
TBranch *b_fqproctime; //!
TBranch *b_nevt; //!
private:
void PreProcessGeometry();
public:
fitQunDisplay(TTree * /*tree*/ =0) : fChain(0),wcsimrootgeom(NULL) { }
virtual ~fitQunDisplay() { }
virtual Int_t Version() const { return 2; }
virtual void Begin(TTree *tree);
virtual void SlaveBegin(TTree *tree);
virtual void Init(TTree *tree);
virtual Bool_t Notify();
virtual Bool_t Process(Long64_t entry);
virtual Int_t GetEntry(Long64_t entry, Int_t getall = 0) { return fChain ? fChain->GetTree()->GetEntry(entry, getall) : 0; }
virtual void SetOption(const char *option) { fOption = option; }
virtual void SetObject(TObject *obj) { fObject = obj; }
virtual void SetInputList(TList *input) { fInput = input; }
virtual TList *GetOutputList() const { return fOutput; }
virtual void SlaveTerminate();
virtual void Terminate();
void SetWCSimGeom(WCSimRootGeom *input){wcsimrootgeom=input;PreProcessGeometry();};
void setLimits(float maxX,float MaxY,float mZ,float nZ){
maxZ=mZ;minZ=nZ;maxR=sqrt(maxX*maxX+MaxY*MaxY); }
void CreateTable(HtmlSummary* fgHtmlSummary);
static void CartesianToPolar(double &mom,double &theta,double &phi,double p[3]);
void createCerenkov(THKCerenkov* cone,THKCerenkov2D* cone2D,
TString Name,Color_t colour,
double Momentum,double theta,double phi,float Mass,double pos[3]);
float maxY, maxX, minX, minY, minZ, maxZ;
private:
int maxTube,nextMaxTube,nextNextMaxTube;
int maxYIndex,maxPhiIndex,maxXIndex,maxZIndex;
int *CylinderTubeList;
int *NegativeCapTubeList;
int *PositiveCapTubeList;
int zIndex(float Z);
int xyIndex(float xOry);
int phiIndex(float x,float y);
TEveElementList *fitQunResults, *fitQunResults2D;
void addTrack(double pos[3],double theta,double phi,double momentum,TString Name,int colour,float Mass,TEveElementList* se3d, TEveElementList* se2d);
void describe_event(int entry);
void load_event();
void UnrollView(double position[3],int location);
void addTableRow(HtmlObjTable *table,int nused,int subevent,const char* name,double pos[3],double theta,double phi,double mod);
void addPi0Rows (HtmlObjTable *table,int used ,int subevent,double pos[3],double theta1,double phi1,double mom1,double theta2,double phi2,double mom2);
void polarToCartesian(double mom,double theta,double phi,double p[3]);
double cosAngleToTube(double pos[3],double cerenkov[3],int tubeId);
void searchForTube(int *List,int xI,int yI,int maxYStep,
double pos[3],double cerenkov[3],bool debug,int tubes[3]);
void lineTubeIntersect(double cerenkov[3],double pos[3],float cylinderR,float &xc,float &xy);
bool FindConeEnd(double pos[3],double cerenkov[3],double endPoint[3],int &location);
void addPi0(double pos[3],double theta1,double phi1,double mom1,double theta2,double phi2,double mom2,TEveElementList* se3d, TEveElementList* se2d);
int nYvalues;
float maxR;
ClassDef(fitQunDisplay,0);
};
#endif
#ifdef fitQunDisplay_cxx
void fitQunDisplay::Init(TTree *tree)
{
// The Init() function is called when the selector needs to initialize
// a new tree or chain. Typically here the branch addresses and branch
// pointers of the tree will be set.
// It is normally not necessary to make changes to the generated
// code, but the routine can be extended by the user if needed.
// Init() will be called many times when running on PROOF
// (once per file to be processed).
// Set branch addresses and branch pointers
if (!tree) return;
fChain = tree;
fChain->SetMakeClass(1);
fChain->SetBranchAddress("cluster_ncand", &cluster_ncand, &b_cluster_ncand);
fChain->SetBranchAddress("cluster_tstart", cluster_tstart, &b_cluster_tstart);
fChain->SetBranchAddress("cluster_tend", cluster_tend, &b_cluster_tend);
fChain->SetBranchAddress("cluster_nhits", cluster_nhits, &b_cluster_nhits);
fChain->SetBranchAddress("cluster_totq", cluster_totq, &b_cluster_totq);
fChain->SetBranchAddress("cluster_goodflag", cluster_goodflag, &b_cluster_goodflag);
fChain->SetBranchAddress("cluster_npeaks", cluster_npeaks, &b_cluster_npeaks);
fChain->SetBranchAddress("cluster_ipeak", cluster_ipeak, &b_cluster_ipeak);
fChain->SetBranchAddress("cluster_timeofpeak", cluster_timeofpeak, &b_cluster_timeofpeak);
fChain->SetBranchAddress("muechk_ncand", muechk_ncand, &b_muechk_ncand);
fChain->SetBranchAddress("muechk_toya", muechk_toya, &b_muechk_toya);
fChain->SetBranchAddress("muechk_tpeak", muechk_tpeak, &b_muechk_tpeak);
fChain->SetBranchAddress("muechk_bg", muechk_bg, &b_muechk_bg);
fChain->SetBranchAddress("muechk_mean", muechk_mean, &b_muechk_mean);
fChain->SetBranchAddress("muechk_excess", muechk_excess, &b_muechk_excess);
fChain->SetBranchAddress("muechk_signif", muechk_signif, &b_muechk_signif);
fChain->SetBranchAddress("muechk_icluster", muechk_icluster, &b_muechk_icluster);
fChain->SetBranchAddress("trgoff", &trgoff, &b_trgoff);
fChain->SetBranchAddress("fqntwnd", &fqntwnd, &b_fqntwnd);
fChain->SetBranchAddress("fqtwnd_iclstr", fqtwnd_iclstr, &b_fqtwnd_iclstr);
fChain->SetBranchAddress("fqtwnd_npeak", fqtwnd_npeak, &b_fqtwnd_npeak);
fChain->SetBranchAddress("fqtwnd_prftt0", fqtwnd_prftt0, &b_fqtwnd_prftt0);
fChain->SetBranchAddress("fqtwnd_prftpos", fqtwnd_prftpos, &b_fqtwnd_prftpos);
fChain->SetBranchAddress("fqtwnd", fqtwnd, &b_fqtwnd);
fChain->SetBranchAddress("fqtwnd_peakt0", fqtwnd_peakt0, &b_fqtwnd_peakt0);
fChain->SetBranchAddress("fqtwnd_peakiness", fqtwnd_peakiness, &b_fqtwnd_peakiness);
fChain->SetBranchAddress("fqnse", &fqnse, &b_fqnse);
fChain->SetBranchAddress("fqitwnd", fqitwnd, &b_fqitwnd);
fChain->SetBranchAddress("fqipeak", fqipeak, &b_fqipeak);
fChain->SetBranchAddress("fqnhitpmt", fqnhitpmt, &b_fqnhitpmt);
fChain->SetBranchAddress("fqtotq", fqtotq, &b_fqtotq);
fChain->SetBranchAddress("fq0rtotmu", fq0rtotmu, &b_fq0rtotmu);
fChain->SetBranchAddress("fq0rnll", fq0rnll, &b_fq0rnll);
fChain->SetBranchAddress("fqn50", fqn50, &b_fqn50);
fChain->SetBranchAddress("fqq50", fqq50, &b_fqq50);
fChain->SetBranchAddress("fq1rpcflg", fq1rpcflg, &b_fq1rpcflg);
fChain->SetBranchAddress("fq1rmom", fq1rmom, &b_fq1rmom);
fChain->SetBranchAddress("fq1rt0", fq1rt0, &b_fq1rt0);
fChain->SetBranchAddress("fq1rtotmu", fq1rtotmu, &b_fq1rtotmu);
fChain->SetBranchAddress("fq1rnll", fq1rnll, &b_fq1rnll);
fChain->SetBranchAddress("fq1rpos", fq1rpos, &b_fq1rpos);
fChain->SetBranchAddress("fq1rdir", fq1rdir, &b_fq1rdir);
fChain->SetBranchAddress("fq1rdconv", fq1rdconv, &b_fq1rdconv);
fChain->SetBranchAddress("fq1reloss", fq1reloss, &b_fq1reloss);
fChain->SetBranchAddress("fqpi0pcflg", fqpi0pcflg, &b_fqpi0pcflg);
fChain->SetBranchAddress("fqpi0mom1", fqpi0mom1, &b_fqpi0mom1);
fChain->SetBranchAddress("fqpi0mom2", fqpi0mom2, &b_fqpi0mom2);
fChain->SetBranchAddress("fqpi0momtot", fqpi0momtot, &b_fqpi0momtot);
fChain->SetBranchAddress("fqpi0dconv1", fqpi0dconv1, &b_fqpi0dconv1);
fChain->SetBranchAddress("fqpi0dconv2", fqpi0dconv2, &b_fqpi0dconv2);
fChain->SetBranchAddress("fqpi0t0", fqpi0t0, &b_fqpi0t0);
fChain->SetBranchAddress("fqpi0totmu", fqpi0totmu, &b_fqpi0totmu);
fChain->SetBranchAddress("fqpi0nll", fqpi0nll, &b_fqpi0nll);
fChain->SetBranchAddress("fqpi0mass", fqpi0mass, &b_fqpi0mass);
fChain->SetBranchAddress("fqpi0photangle", fqpi0photangle, &b_fqpi0photangle);
fChain->SetBranchAddress("fqpi0pos", fqpi0pos, &b_fqpi0pos);
fChain->SetBranchAddress("fqpi0dir1", fqpi0dir1, &b_fqpi0dir1);
fChain->SetBranchAddress("fqpi0dir2", fqpi0dir2, &b_fqpi0dir2);
fChain->SetBranchAddress("fqpi0dirtot", fqpi0dirtot, &b_fqpi0dirtot);
fChain->SetBranchAddress("fqnmrfit", &fqnmrfit, &b_fqnmrfit);
fChain->SetBranchAddress("fqmrifit", fqmrifit, &b_fqmrifit);
fChain->SetBranchAddress("fqmrnring", fqmrnring, &b_fqmrnring);
fChain->SetBranchAddress("fqmrpcflg", fqmrpcflg, &b_fqmrpcflg);
fChain->SetBranchAddress("fqmrnll", fqmrnll, &b_fqmrnll);
fChain->SetBranchAddress("fqmrtotmu", fqmrtotmu, &b_fqmrtotmu);
fChain->SetBranchAddress("fqmrpid", fqmrpid, &b_fqmrpid);
fChain->SetBranchAddress("fqmrmom", fqmrmom, &b_fqmrmom);
fChain->SetBranchAddress("fqmrdconv", fqmrdconv, &b_fqmrdconv);
fChain->SetBranchAddress("fqmreloss", fqmreloss, &b_fqmreloss);
fChain->SetBranchAddress("fqmrt0", fqmrt0, &b_fqmrt0);
fChain->SetBranchAddress("fqmrpos", fqmrpos, &b_fqmrpos);
fChain->SetBranchAddress("fqmrdir", fqmrdir, &b_fqmrdir);
fChain->SetBranchAddress("fqmsnfit", &fqmsnfit, &b_fqmsnfit);
fChain->SetBranchAddress("fqmspcflg", fqmspcflg, &b_fqmspcflg);
fChain->SetBranchAddress("fqmsnseg", fqmsnseg, &b_fqmsnseg);
fChain->SetBranchAddress("fqmspid", fqmspid, &b_fqmspid);
fChain->SetBranchAddress("fqmsifit", fqmsifit, &b_fqmsifit);
fChain->SetBranchAddress("fqmsimer", fqmsimer, &b_fqmsimer);
fChain->SetBranchAddress("fqmstotmu", fqmstotmu, &b_fqmstotmu);
fChain->SetBranchAddress("fqmsnll", fqmsnll, &b_fqmsnll);
fChain->SetBranchAddress("fqmsmom", fqmsmom, &b_fqmsmom);
fChain->SetBranchAddress("fqmseloss", fqmseloss, &b_fqmseloss);
fChain->SetBranchAddress("fqmst0", fqmst0, &b_fqmst0);
fChain->SetBranchAddress("fqmspos", fqmspos, &b_fqmspos);
fChain->SetBranchAddress("fqmsdir", fqmsdir, &b_fqmsdir);
fChain->SetBranchAddress("fqtestn1r", &fqtestn1r, &b_fqtestn1r);
fChain->SetBranchAddress("fqtest1rstage", fqtest1rstage, &b_fqtest1rstage);
fChain->SetBranchAddress("fqtest1rse", fqtest1rse, &b_fqtest1rse);
fChain->SetBranchAddress("fqtest1rpid", fqtest1rpid, &b_fqtest1rpid);
fChain->SetBranchAddress("fqtest1rpcflg", fqtest1rpcflg, &b_fqtest1rpcflg);
fChain->SetBranchAddress("fqtest1rmom", fqtest1rmom, &b_fqtest1rmom);
fChain->SetBranchAddress("fqtest1rt0", fqtest1rt0, &b_fqtest1rt0);
fChain->SetBranchAddress("fqtest1rtotmu", fqtest1rtotmu, &b_fqtest1rtotmu);
fChain->SetBranchAddress("fqtest1rnll", fqtest1rnll, &b_fqtest1rnll);
fChain->SetBranchAddress("fqtest1rpos", fqtest1rpos, &b_fqtest1rpos);
fChain->SetBranchAddress("fqtest1rdir", fqtest1rdir, &b_fqtest1rdir);
fChain->SetBranchAddress("fqtest1rdconv", fqtest1rdconv, &b_fqtest1rdconv);
fChain->SetBranchAddress("fqtest1reloss", fqtest1reloss, &b_fqtest1reloss);
fChain->SetBranchAddress("fqtestnpi0", &fqtestnpi0, &b_fqtestnpi0);
fChain->SetBranchAddress("fqtestpi0stage", fqtestpi0stage, &b_fqtestpi0stage);
fChain->SetBranchAddress("fqtestpi0pcflg", fqtestpi0pcflg, &b_fqtestpi0pcflg);
fChain->SetBranchAddress("fqtestpi0mom1", fqtestpi0mom1, &b_fqtestpi0mom1);
// fChain->SetBranchAddress("fqtestpi0mom2", fqtestpi0mom2, &b_fqtestpi0mom2);
fChain->SetBranchAddress("fqtestpi0momtot", fqtestpi0momtot, &b_fqtestpi0momtot);
fChain->SetBranchAddress("fqtestpi0dconv1", fqtestpi0dconv1, &b_fqtestpi0dconv1);
// fChain->SetBranchAddress("fqtestpi0dconv2", fqtestpi0dconv2, &b_fqtestpi0dconv2);
fChain->SetBranchAddress("fqtestpi0t0", fqtestpi0t0, &b_fqtestpi0t0);
fChain->SetBranchAddress("fqtestpi0totmu", fqtestpi0totmu, &b_fqtestpi0totmu);
fChain->SetBranchAddress("fqtestpi0nll", fqtestpi0nll, &b_fqtestpi0nll);
fChain->SetBranchAddress("fqtestpi0mass", fqtestpi0mass, &b_fqtestpi0mass);
fChain->SetBranchAddress("fqtestpi0photangle", fqtestpi0photangle, &b_fqtestpi0photangle);
fChain->SetBranchAddress("fqtestpi0pos", fqtestpi0pos, &b_fqtestpi0pos);
fChain->SetBranchAddress("fqtestpi0dir1", fqtestpi0dir1, &b_fqtestpi0dir1);
// fChain->SetBranchAddress("fqtestpi0dir2", fqtestpi0dir2, &b_fqtestpi0dir2);
fChain->SetBranchAddress("fqtestpi0dirtot", fqtestpi0dirtot, &b_fqtestpi0dirtot);
fChain->SetBranchAddress("ifqver", &ifqver, &b_ifqver);
fChain->SetBranchAddress("fqproctime", fqproctime, &b_fqproctime);
fChain->SetBranchAddress("nevt", &nevt, &b_nevt);
HYPO[0]="gamma";
HYPO[1]="electron";
HYPO[2]="muon";
HYPO[3]="pion";
HYPO[4]="kaon";
HYPO[5]="proton";
HYPO[6]="cone generator";
HYPERCOLOUR[0]= kWhite;
HYPERCOLOUR[1]= kYellow;
HYPERCOLOUR[2]= kBlue;
HYPERCOLOUR[3]= kMagenta;
HYPERCOLOUR[4]= kBlue;
HYPERCOLOUR[5]= kRed;
HYPERCOLOUR[6]= kGreen;
MASS[0]=0.0;
MASS[1]=0.510998;
MASS[2]=113.43;
MASS[3]=139.57;
MASS[4]=493.677;
MASS[5]=938.272;
MASS[6]=0;
}
Bool_t fitQunDisplay::Notify()
{
// The Notify() function is called when a new file is opened. This
// can be either for a new TTree in a TChain or when when a new TTree
// is started when using PROOF. It is normally not necessary to make changes
// to the generated code, but the routine can be extended by the
// user if needed. The return value is currently not used.
return kTRUE;
}
#endif // #ifdef fitQunDisplay_cxx