GENIEGenerator
Loading...
Searching...
No Matches
flugg.h
Go to the documentation of this file.
1//////////////////////////////////////////////////////////
2// This class has been automatically generated on
3// Thu Sep 17 16:34:52 2009 by ROOT version 5.25/01
4// from TTree flugg/neutrino
5// found on file: generic_flugg.root
6//////////////////////////////////////////////////////////
7
8#ifndef flugg_h
9#define flugg_h
10
11#include <TROOT.h>
12#include <TChain.h>
13#include <TFile.h>
14
15class flugg {
16public :
17 TTree *fChain; //!pointer to the analyzed TTree or TChain
18 Int_t fCurrent; //!current Tree number in a TChain
19
20 // Declaration of leaf types
21 Int_t run;
22 Int_t evtno;
23 Double_t Ndxdz;
24 Double_t Ndydz;
25 Double_t Npz;
26 Double_t Nenergy;
27 Double_t Ndxdznea;
28 Double_t Ndydznea;
29 Double_t Nenergyn;
30 Double_t Nwtnear;
31 Double_t Ndxdzfar;
32 Double_t Ndydzfar;
33 Double_t Nenergyf;
34 Double_t Nwtfar;
35 Int_t Norig;
36 Int_t Ndecay;
37 Int_t Ntype;
38 Double_t Vx;
39 Double_t Vy;
40 Double_t Vz;
41 Double_t pdPx;
42 Double_t pdPy;
43 Double_t pdPz;
44 Double_t ppdxdz;
45 Double_t ppdydz;
46 Double_t pppz;
47 Double_t ppenergy;
48 Int_t ppmedium;
49 Int_t ptype;
50 Double_t ppvx;
51 Double_t ppvy;
52 Double_t ppvz;
53 Double_t muparpx;
54 Double_t muparpy;
55 Double_t muparpz;
56 Double_t mupare;
57 Double_t Necm;
58 Double_t Nimpwt;
59 Double_t xpoint;
60 Double_t ypoint;
61 Double_t zpoint;
62 Double_t tvx;
63 Double_t tvy;
64 Double_t tvz;
65 Double_t tpx;
66 Double_t tpy;
67 Double_t tpz;
68 Int_t tptype;
69 Int_t tgen;
70 Int_t tgptype;
71 Double_t tgppx;
72 Double_t tgppy;
73 Double_t tgppz;
74 Double_t tprivx;
75 Double_t tprivy;
76 Double_t tprivz;
77 Double_t beamx;
78 Double_t beamy;
79 Double_t beamz;
80 Double_t beampx;
81 Double_t beampy;
82 Double_t beampz;
83 Double_t Vr;
84 Double_t pdP;
85 Double_t pdPt;
86 Double_t ppp;
87 Double_t pppt;
88 Double_t ppvr;
89 Double_t muparp;
90 Double_t muparpt;
91 Double_t tvr;
92 Double_t tp;
93 Double_t tpt;
94
95 // List of branches
96 TBranch *b_run; //!
97 TBranch *b_evtno; //!
98 TBranch *b_Ndxdz; //!
99 TBranch *b_Ndydz; //!
100 TBranch *b_Npz; //!
101 TBranch *b_Nenergy; //!
102 TBranch *b_Ndxdznea; //!
103 TBranch *b_Ndydznea; //!
104 TBranch *b_Nenergyn; //!
105 TBranch *b_Nwtnear; //!
106 TBranch *b_Ndxdzfar; //!
107 TBranch *b_Ndydzfar; //!
108 TBranch *b_Nenergyf; //!
109 TBranch *b_Nwtfar; //!
110 TBranch *b_Norig; //!
111 TBranch *b_Ndecay; //!
112 TBranch *b_Ntype; //!
113 TBranch *b_Vx; //!
114 TBranch *b_Vy; //!
115 TBranch *b_Vz; //!
116 TBranch *b_pdPx; //!
117 TBranch *b_pdPy; //!
118 TBranch *b_pdPz; //!
119 TBranch *b_ppdxdz; //!
120 TBranch *b_ppdydz; //!
121 TBranch *b_pppz; //!
122 TBranch *b_ppenergy; //!
123 TBranch *b_ppmedium; //!
124 TBranch *b_ptype; //!
125 TBranch *b_ppvx; //!
126 TBranch *b_ppvy; //!
127 TBranch *b_ppvz; //!
128 TBranch *b_muparpx; //!
129 TBranch *b_muparpy; //!
130 TBranch *b_muparpz; //!
131 TBranch *b_mupare; //!
132 TBranch *b_Necm; //!
133 TBranch *b_Nimpwt; //!
134 TBranch *b_xpoint; //!
135 TBranch *b_ypoint; //!
136 TBranch *b_zpoint; //!
137 TBranch *b_tvx; //!
138 TBranch *b_tvy; //!
139 TBranch *b_tvz; //!
140 TBranch *b_tpx; //!
141 TBranch *b_tpy; //!
142 TBranch *b_tpz; //!
143 TBranch *b_tptype; //!
144 TBranch *b_tgen; //!
145 TBranch *b_tgptype; //!
146 TBranch *b_tgppx; //!
147 TBranch *b_tgppy; //!
148 TBranch *b_tgppz; //!
149 TBranch *b_tprivx; //!
150 TBranch *b_tprivy; //!
151 TBranch *b_tprivz; //!
152 TBranch *b_beamx; //!
153 TBranch *b_beamy; //!
154 TBranch *b_beamz; //!
155 TBranch *b_beampx; //!
156 TBranch *b_beampy; //!
157 TBranch *b_beampz; //!
158 TBranch *b_Vr; //!
159 TBranch *b_pdP; //!
160 TBranch *b_pdPt; //!
161 TBranch *b_ppp; //!
162 TBranch *b_pppt; //!
163 TBranch *b_ppvr; //!
164 TBranch *b_muparp; //!
165 TBranch *b_muparpt; //!
166 TBranch *b_tvr; //!
167 TBranch *b_tp; //!
168 TBranch *b_tpt; //!
169
170 flugg(TTree *tree=0);
171 virtual ~flugg();
172 virtual Int_t Cut(Long64_t entry);
173 virtual Int_t GetEntry(Long64_t entry);
174 virtual Long64_t LoadTree(Long64_t entry);
175 virtual void Init(TTree *tree);
176 virtual void Loop();
177 virtual Bool_t Notify();
178 virtual void Show(Long64_t entry = -1);
179};
180
181#endif
182
183#ifdef flugg_cxx
184flugg::flugg(TTree *tree)
185{
186// if parameter tree is not specified (or zero), connect the file
187// used to generate this class and read the Tree.
188 if (tree == 0) {
189 TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject("generic_flugg.root");
190 if (!f) {
191 f = new TFile("generic_flugg.root");
192 }
193 tree = (TTree*)gDirectory->Get("flugg");
194
195 }
196 Init(tree);
197}
198
200{
201 if (!fChain) return;
202 delete fChain->GetCurrentFile();
203}
204
205Int_t flugg::GetEntry(Long64_t entry)
206{
207// Read contents of entry.
208 if (!fChain) return 0;
209 return fChain->GetEntry(entry);
210}
211Long64_t flugg::LoadTree(Long64_t entry)
212{
213// Set the environment to read one entry
214 if (!fChain) return -5;
215 Long64_t centry = fChain->LoadTree(entry);
216 if (centry < 0) return centry;
217 if (!fChain->InheritsFrom(TChain::Class())) return centry;
218 TChain *chain = (TChain*)fChain;
219 if (chain->GetTreeNumber() != fCurrent) {
220 fCurrent = chain->GetTreeNumber();
221 Notify();
222 }
223 return centry;
224}
225
226void flugg::Init(TTree *tree)
227{
228 // The Init() function is called when the selector needs to initialize
229 // a new tree or chain. Typically here the branch addresses and branch
230 // pointers of the tree will be set.
231 // It is normally not necessary to make changes to the generated
232 // code, but the routine can be extended by the user if needed.
233 // Init() will be called many times when running on PROOF
234 // (once per file to be processed).
235
236 // Set branch addresses and branch pointers
237 if (!tree) return;
238 fChain = tree;
239 fCurrent = -1;
240 fChain->SetMakeClass(1);
241
242 fChain->SetBranchAddress("run", &run, &b_run);
243 fChain->SetBranchAddress("evtno", &evtno, &b_evtno);
244 fChain->SetBranchAddress("Ndxdz", &Ndxdz, &b_Ndxdz);
245 fChain->SetBranchAddress("Ndydz", &Ndydz, &b_Ndydz);
246 fChain->SetBranchAddress("Npz", &Npz, &b_Npz);
247 fChain->SetBranchAddress("Nenergy", &Nenergy, &b_Nenergy);
248 fChain->SetBranchAddress("Ndxdznea", &Ndxdznea, &b_Ndxdznea);
249 fChain->SetBranchAddress("Ndydznea", &Ndydznea, &b_Ndydznea);
250 fChain->SetBranchAddress("Nenergyn", &Nenergyn, &b_Nenergyn);
251 fChain->SetBranchAddress("Nwtnear", &Nwtnear, &b_Nwtnear);
252 fChain->SetBranchAddress("Ndxdzfar", &Ndxdzfar, &b_Ndxdzfar);
253 fChain->SetBranchAddress("Ndydzfar", &Ndydzfar, &b_Ndydzfar);
254 fChain->SetBranchAddress("Nenergyf", &Nenergyf, &b_Nenergyf);
255 fChain->SetBranchAddress("Nwtfar", &Nwtfar, &b_Nwtfar);
256 fChain->SetBranchAddress("Norig", &Norig, &b_Norig);
257 fChain->SetBranchAddress("Ndecay", &Ndecay, &b_Ndecay);
258 fChain->SetBranchAddress("Ntype", &Ntype, &b_Ntype);
259 fChain->SetBranchAddress("Vx", &Vx, &b_Vx);
260 fChain->SetBranchAddress("Vy", &Vy, &b_Vy);
261 fChain->SetBranchAddress("Vz", &Vz, &b_Vz);
262 fChain->SetBranchAddress("pdPx", &pdPx, &b_pdPx);
263 fChain->SetBranchAddress("pdPy", &pdPy, &b_pdPy);
264 fChain->SetBranchAddress("pdPz", &pdPz, &b_pdPz);
265 fChain->SetBranchAddress("ppdxdz", &ppdxdz, &b_ppdxdz);
266 fChain->SetBranchAddress("ppdydz", &ppdydz, &b_ppdydz);
267 fChain->SetBranchAddress("pppz", &pppz, &b_pppz);
268 fChain->SetBranchAddress("ppenergy", &ppenergy, &b_ppenergy);
269 fChain->SetBranchAddress("ppmedium", &ppmedium, &b_ppmedium);
270 fChain->SetBranchAddress("ptype", &ptype, &b_ptype);
271 fChain->SetBranchAddress("ppvx", &ppvx, &b_ppvx);
272 fChain->SetBranchAddress("ppvy", &ppvy, &b_ppvy);
273 fChain->SetBranchAddress("ppvz", &ppvz, &b_ppvz);
274 fChain->SetBranchAddress("muparpx", &muparpx, &b_muparpx);
275 fChain->SetBranchAddress("muparpy", &muparpy, &b_muparpy);
276 fChain->SetBranchAddress("muparpz", &muparpz, &b_muparpz);
277 fChain->SetBranchAddress("mupare", &mupare, &b_mupare);
278 fChain->SetBranchAddress("Necm", &Necm, &b_Necm);
279 fChain->SetBranchAddress("Nimpwt", &Nimpwt, &b_Nimpwt);
280 fChain->SetBranchAddress("xpoint", &xpoint, &b_xpoint);
281 fChain->SetBranchAddress("ypoint", &ypoint, &b_ypoint);
282 fChain->SetBranchAddress("zpoint", &zpoint, &b_zpoint);
283 fChain->SetBranchAddress("tvx", &tvx, &b_tvx);
284 fChain->SetBranchAddress("tvy", &tvy, &b_tvy);
285 fChain->SetBranchAddress("tvz", &tvz, &b_tvz);
286 fChain->SetBranchAddress("tpx", &tpx, &b_tpx);
287 fChain->SetBranchAddress("tpy", &tpy, &b_tpy);
288 fChain->SetBranchAddress("tpz", &tpz, &b_tpz);
289 fChain->SetBranchAddress("tptype", &tptype, &b_tptype);
290 fChain->SetBranchAddress("tgen", &tgen, &b_tgen);
291 fChain->SetBranchAddress("tgptype", &tgptype, &b_tgptype);
292 fChain->SetBranchAddress("tgppx", &tgppx, &b_tgppx);
293 fChain->SetBranchAddress("tgppy", &tgppy, &b_tgppy);
294 fChain->SetBranchAddress("tgppz", &tgppz, &b_tgppz);
295 fChain->SetBranchAddress("tprivx", &tprivx, &b_tprivx);
296 fChain->SetBranchAddress("tprivy", &tprivy, &b_tprivy);
297 fChain->SetBranchAddress("tprivz", &tprivz, &b_tprivz);
298 fChain->SetBranchAddress("beamx", &beamx, &b_beamx);
299 fChain->SetBranchAddress("beamy", &beamy, &b_beamy);
300 fChain->SetBranchAddress("beamz", &beamz, &b_beamz);
301 fChain->SetBranchAddress("beampx", &beampx, &b_beampx);
302 fChain->SetBranchAddress("beampy", &beampy, &b_beampy);
303 fChain->SetBranchAddress("beampz", &beampz, &b_beampz);
304 fChain->SetBranchAddress("Vr", &Vr, &b_Vr);
305 fChain->SetBranchAddress("pdP", &pdP, &b_pdP);
306 fChain->SetBranchAddress("pdPt", &pdPt, &b_pdPt);
307 fChain->SetBranchAddress("ppp", &ppp, &b_ppp);
308 fChain->SetBranchAddress("pppt", &pppt, &b_pppt);
309 fChain->SetBranchAddress("ppvr", &ppvr, &b_ppvr);
310 fChain->SetBranchAddress("muparp", &muparp, &b_muparp);
311 fChain->SetBranchAddress("muparpt", &muparpt, &b_muparpt);
312 fChain->SetBranchAddress("tvr", &tvr, &b_tvr);
313 fChain->SetBranchAddress("tp", &tp, &b_tp);
314 fChain->SetBranchAddress("tpt", &tpt, &b_tpt);
315 Notify();
316}
317
318Bool_t flugg::Notify()
319{
320 // The Notify() function is called when a new file is opened. This
321 // can be either for a new TTree in a TChain or when when a new TTree
322 // is started when using PROOF. It is normally not necessary to make changes
323 // to the generated code, but the routine can be extended by the
324 // user if needed. The return value is currently not used.
325
326 return kTRUE;
327}
328
329void flugg::Show(Long64_t entry)
330{
331// Print contents of entry.
332// If entry is not specified, print current entry
333 if (!fChain) return;
334 fChain->Show(entry);
335}
336Int_t flugg::Cut(Long64_t /* entry */)
337{
338// This function may be called from Loop.
339// returns 1 if entry is accepted.
340// returns -1 otherwise.
341 return 1;
342}
343#endif // #ifdef flugg_cxx
Double_t tvz
Definition flugg.h:64
Double_t tpx
Definition flugg.h:65
TBranch * b_tp
Definition flugg.h:167
Double_t beampx
Definition flugg.h:80
TBranch * b_tpx
Definition flugg.h:140
TBranch * b_tgptype
Definition flugg.h:145
TBranch * b_Ndxdzfar
Definition flugg.h:106
TBranch * b_tpz
Definition flugg.h:142
TBranch * b_Ndydzfar
Definition flugg.h:107
TBranch * b_Ndxdz
Definition flugg.h:98
Int_t Norig
Definition flugg.h:35
Double_t muparpt
Definition flugg.h:90
TBranch * b_pdPy
Definition flugg.h:117
Double_t tprivy
Definition flugg.h:75
Double_t Vz
Definition flugg.h:40
TBranch * b_ppmedium
Definition flugg.h:123
TBranch * b_tptype
Definition flugg.h:143
Double_t ppvz
Definition flugg.h:52
Int_t run
current Tree number in a TChain
Definition flugg.h:21
TBranch * b_evtno
Definition flugg.h:97
Double_t Nimpwt
Definition flugg.h:58
Double_t ppvy
Definition flugg.h:51
flugg(TTree *tree=0)
TBranch * b_mupare
Definition flugg.h:131
TBranch * b_beampy
Definition flugg.h:156
TBranch * b_tpt
Definition flugg.h:168
Double_t tprivz
Definition flugg.h:76
TBranch * b_tvy
Definition flugg.h:138
TBranch * b_tvz
Definition flugg.h:139
Double_t pppt
Definition flugg.h:87
TBranch * b_tgppx
Definition flugg.h:146
Double_t muparpz
Definition flugg.h:55
TBranch * b_ppdxdz
Definition flugg.h:119
TBranch * b_beamy
Definition flugg.h:153
TBranch * b_tprivz
Definition flugg.h:151
TBranch * b_ppvz
Definition flugg.h:127
Double_t tpt
Definition flugg.h:93
TBranch * b_tgen
Definition flugg.h:144
TBranch * b_pdPx
Definition flugg.h:116
Double_t tpy
Definition flugg.h:66
TBranch * b_Ntype
Definition flugg.h:112
TBranch * b_Ndecay
Definition flugg.h:111
Double_t ppp
Definition flugg.h:86
Int_t tptype
Definition flugg.h:68
Double_t zpoint
Definition flugg.h:61
Double_t muparp
Definition flugg.h:89
TBranch * b_tvr
Definition flugg.h:166
TBranch * b_Vy
Definition flugg.h:114
Double_t pdP
Definition flugg.h:84
TBranch * b_beampz
Definition flugg.h:157
TBranch * b_tprivy
Definition flugg.h:150
virtual ~flugg()
Double_t beamz
Definition flugg.h:79
Double_t Ndxdzfar
Definition flugg.h:31
Double_t muparpy
Definition flugg.h:54
Double_t ppvr
Definition flugg.h:88
Double_t beampz
Definition flugg.h:82
TBranch * b_Ndydznea
Definition flugg.h:103
TBranch * b_ppvx
Definition flugg.h:125
TBranch * b_muparpt
Definition flugg.h:165
TBranch * b_Npz
Definition flugg.h:100
Double_t muparpx
Definition flugg.h:53
Double_t tgppx
Definition flugg.h:71
TBranch * b_ptype
Definition flugg.h:124
Double_t xpoint
Definition flugg.h:59
TBranch * b_muparpy
Definition flugg.h:129
TBranch * b_muparpz
Definition flugg.h:130
Double_t Nwtfar
Definition flugg.h:34
Double_t Necm
Definition flugg.h:57
TBranch * b_ppenergy
Definition flugg.h:122
TBranch * b_ppdydz
Definition flugg.h:120
Double_t tvr
Definition flugg.h:91
Double_t tgppz
Definition flugg.h:73
TBranch * b_Vr
Definition flugg.h:158
Double_t Ndydzfar
Definition flugg.h:32
virtual void Show(Long64_t entry=-1)
TBranch * b_beamz
Definition flugg.h:154
TBranch * b_pppt
Definition flugg.h:162
TBranch * b_muparp
Definition flugg.h:164
TBranch * b_xpoint
Definition flugg.h:134
Double_t beampy
Definition flugg.h:81
Double_t tvx
Definition flugg.h:62
TBranch * b_pdPz
Definition flugg.h:118
TBranch * b_pppz
Definition flugg.h:121
TBranch * b_Norig
Definition flugg.h:110
Int_t fCurrent
pointer to the analyzed TTree or TChain
Definition flugg.h:18
Double_t Ndxdznea
Definition flugg.h:27
TBranch * b_muparpx
Definition flugg.h:128
virtual void Loop()
Double_t mupare
Definition flugg.h:56
Double_t pdPz
Definition flugg.h:43
Double_t Ndydz
Definition flugg.h:24
Int_t ppmedium
Definition flugg.h:48
Double_t pppz
Definition flugg.h:46
Double_t ppdydz
Definition flugg.h:45
TBranch * b_Vz
Definition flugg.h:115
TBranch * b_Vx
Definition flugg.h:113
Double_t Vr
Definition flugg.h:83
Double_t Ndxdz
Definition flugg.h:23
TBranch * b_ppvy
Definition flugg.h:126
TBranch * b_tvx
Definition flugg.h:137
Double_t beamy
Definition flugg.h:78
TBranch * b_Nwtfar
Definition flugg.h:109
virtual Int_t GetEntry(Long64_t entry)
TBranch * b_ypoint
Definition flugg.h:135
Double_t pdPt
Definition flugg.h:85
TBranch * b_ppp
Definition flugg.h:161
TBranch * b_beamx
Definition flugg.h:152
Double_t pdPx
Definition flugg.h:41
TBranch * b_run
Definition flugg.h:96
Double_t ypoint
Definition flugg.h:60
TBranch * b_Ndydz
Definition flugg.h:99
TBranch * b_Nenergyn
Definition flugg.h:104
Double_t tvy
Definition flugg.h:63
Double_t Nenergy
Definition flugg.h:26
Double_t Nwtnear
Definition flugg.h:30
Double_t tp
Definition flugg.h:92
Double_t tpz
Definition flugg.h:67
Double_t Npz
Definition flugg.h:25
Int_t Ntype
Definition flugg.h:37
Double_t tprivx
Definition flugg.h:74
virtual void Init(TTree *tree)
TBranch * b_Ndxdznea
Definition flugg.h:102
Double_t Nenergyf
Definition flugg.h:33
TBranch * b_Nwtnear
Definition flugg.h:105
TBranch * b_Nenergyf
Definition flugg.h:108
TBranch * b_tgppy
Definition flugg.h:147
TBranch * b_ppvr
Definition flugg.h:163
Int_t tgptype
Definition flugg.h:70
Double_t pdPy
Definition flugg.h:42
Double_t Vx
Definition flugg.h:38
TBranch * b_Necm
Definition flugg.h:132
TBranch * b_pdP
Definition flugg.h:159
Double_t Nenergyn
Definition flugg.h:29
virtual Int_t Cut(Long64_t entry)
virtual Long64_t LoadTree(Long64_t entry)
TBranch * b_Nenergy
Definition flugg.h:101
TBranch * b_tprivx
Definition flugg.h:149
Int_t evtno
Definition flugg.h:22
Int_t tgen
Definition flugg.h:69
Double_t ppdxdz
Definition flugg.h:44
TBranch * b_tgppz
Definition flugg.h:148
TBranch * b_tpy
Definition flugg.h:141
TTree * fChain
Definition flugg.h:17
Int_t Ndecay
Definition flugg.h:36
Double_t ppenergy
Definition flugg.h:47
virtual Bool_t Notify()
TBranch * b_Nimpwt
Definition flugg.h:133
Double_t tgppy
Definition flugg.h:72
Double_t Vy
Definition flugg.h:39
Double_t Ndydznea
Definition flugg.h:28
TBranch * b_pdPt
Definition flugg.h:160
Double_t ppvx
Definition flugg.h:50
TBranch * b_beampx
Definition flugg.h:155
Double_t beamx
Definition flugg.h:77
TBranch * b_zpoint
Definition flugg.h:136
Int_t ptype
Definition flugg.h:49
void Init(void)