Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
h1analysis.h
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////
2 // This class has been automatically generated
3 // (Wed Apr 19 21:47:55 2000 by ROOT version 2.24/02)
4 // from TTree h42/
5 // found on file: Memory Directory
6 //
7 // The example was modfied for the new TSelector version
8 // (Thu Sep 25 06:44:10 EDT 2003)
9 //////////////////////////////////////////////////////////
10 
11 
12 #ifndef h1analysis_h
13 #define h1analysis_h
14 
15 #include <TROOT.h>
16 #include <TChain.h>
17 #include <TEntryList.h>
18 #include <TFile.h>
19 #include <TSelector.h>
20 
21 class TH1F;
22 class TH2F;
23 
24 class h1analysis : public TSelector {
25  public :
26 
27  TH1F *hdmd;//!
28  TH2F *h2;//!
29 
30  Bool_t useList;//!
31  Bool_t fillList;//!
32  TEntryList *elist;//!
33  Long64_t fProcessed;//!
34 
35  TTree *fChain;//! //pointer to the analyzed TTree or TChain
36  //Declaration of leaves types
37  Int_t nrun;//!
38  Int_t nevent;//!
39  Int_t nentry;//!
40  UChar_t trelem[192];//!
41  UChar_t subtr[128];//!
42  UChar_t rawtr[128];//!
43  UChar_t L4subtr[128];//!
44  UChar_t L5class[32];//!
45  Float_t E33;//!
46  Float_t de33;//!
47  Float_t x33;//!
48  Float_t dx33;//!
49  Float_t y33;//!
50  Float_t dy33;//!
51  Float_t E44;//!
52  Float_t de44;//!
53  Float_t x44;//!
54  Float_t dx44;//!
55  Float_t y44;//!
56  Float_t dy44;//!
57  Float_t Ept;//!
58  Float_t dept;//!
59  Float_t xpt;//!
60  Float_t dxpt;//!
61  Float_t ypt;//!
62  Float_t dypt;//!
63  Float_t pelec[4];//!
64  Int_t flagelec;//!
65  Float_t xeelec;//!
66  Float_t yeelec;//!
67  Float_t Q2eelec;//!
68  Int_t nelec;//!
69  Float_t Eelec[20];//!
70  Float_t thetelec[20];//!
71  Float_t phielec[20];//!
72  Float_t xelec[20];//!
73  Float_t Q2elec[20];//!
74  Float_t xsigma[20];//!
75  Float_t Q2sigma[20];//!
76  Float_t sumc[4];//!
77  Float_t sumetc;//!
78  Float_t yjbc;//!
79  Float_t Q2jbc;//!
80  Float_t sumct[4];//!
81  Float_t sumetct;//!
82  Float_t yjbct;//!
83  Float_t Q2jbct;//!
84  Float_t Ebeamel;//!
85  Float_t Ebeampr;//!
86  Float_t pvtx_d[3];//!
87  Float_t cpvtx_d[6];//!
88  Float_t pvtx_t[3];//!
89  Float_t cpvtx_t[6];//!
90  Int_t ntrkxy_t;//!
91  Float_t prbxy_t;//!
92  Int_t ntrkz_t;//!
93  Float_t prbz_t;//!
94  Int_t nds;//!
95  Int_t rankds;//!
96  Int_t qds;//!
97  Float_t pds_d[4];//!
98  Float_t ptds_d;//!
99  Float_t etads_d;//!
100  Float_t dm_d;//!
101  Float_t ddm_d;//!
102  Float_t pds_t[4];//!
103  Float_t dm_t;//!
104  Float_t ddm_t;//!
105  Int_t ik;//!
106  Int_t ipi;//!
107  Int_t ipis;//!
108  Float_t pd0_d[4];//!
109  Float_t ptd0_d;//!
110  Float_t etad0_d;//!
111  Float_t md0_d;//!
112  Float_t dmd0_d;//!
113  Float_t pd0_t[4];//!
114  Float_t md0_t;//!
115  Float_t dmd0_t;//!
116  Float_t pk_r[4];//!
117  Float_t ppi_r[4];//!
118  Float_t pd0_r[4];//!
119  Float_t md0_r;//!
120  Float_t Vtxd0_r[3];//!
121  Float_t cvtxd0_r[6];//!
122  Float_t dxy_r;//!
123  Float_t dz_r;//!
124  Float_t psi_r;//!
125  Float_t rd0_d;//!
126  Float_t drd0_d;//!
127  Float_t rpd0_d;//!
128  Float_t drpd0_d;//!
129  Float_t rd0_t;//!
130  Float_t drd0_t;//!
131  Float_t rpd0_t;//!
132  Float_t drpd0_t;//!
133  Float_t rd0_dt;//!
134  Float_t drd0_dt;//!
135  Float_t prbr_dt;//!
136  Float_t prbz_dt;//!
137  Float_t rd0_tt;//!
138  Float_t drd0_tt;//!
139  Float_t prbr_tt;//!
140  Float_t prbz_tt;//!
141  Int_t ijetd0;//!
142  Float_t ptr3d0_j;//!
143  Float_t ptr2d0_j;//!
144  Float_t ptr3d0_3;//!
145  Float_t ptr2d0_3;//!
146  Float_t ptr2d0_2;//!
147  Float_t Mimpds_r;//!
148  Float_t Mimpbk_r;//!
149  Int_t ntracks;//!
150  Float_t pt[200];//!
151  Float_t kappa[200];//!
152  Float_t phi[200];//!
153  Float_t theta[200];//!
154  Float_t dca[200];//!
155  Float_t z0[200];//!
156  Float_t covar[200][15];//!
157  Int_t nhitrp[200];//!
158  Float_t prbrp[200];//!
159  Int_t nhitz[200];//!
160  Float_t prbz[200];//!
161  Float_t rstart[200];//!
162  Float_t rend[200];//!
163  Float_t lhk[200];//!
164  Float_t lhpi[200];//!
165  Float_t nlhk[200];//!
166  Float_t nlhpi[200];//!
167  Float_t dca_d[200];//!
168  Float_t ddca_d[200];//!
169  Float_t dca_t[200];//!
170  Float_t ddca_t[200];//!
171  Int_t muqual[200];//!
172  Int_t imu;//!
173  Int_t imufe;//!
174  Int_t njets;//!
175  Float_t E_j[20];//!
176  Float_t pt_j[20];//!
177  Float_t theta_j[20];//!
178  Float_t eta_j[20];//!
179  Float_t phi_j[20];//!
180  Float_t m_j[20];//!
181  Float_t thrust;//!
182  Float_t pthrust[4];//!
183  Float_t thrust2;//!
184  Float_t pthrust2[4];//!
185  Float_t spher;//!
186  Float_t aplan;//!
187  Float_t plan;//!
188  Float_t nnout[1];//!
189 
190 //List of branches
191  TBranch *b_nrun;//!
192  TBranch *b_nevent;//!
193  TBranch *b_nentry;//!
194  TBranch *b_trelem;//!
195  TBranch *b_subtr;//!
196  TBranch *b_rawtr;//!
197  TBranch *b_L4subtr;//!
198  TBranch *b_L5class;//!
199  TBranch *b_E33;//!
200  TBranch *b_de33;//!
201  TBranch *b_x33;//!
202  TBranch *b_dx33;//!
203  TBranch *b_y33;//!
204  TBranch *b_dy33;//!
205  TBranch *b_E44;//!
206  TBranch *b_de44;//!
207  TBranch *b_x44;//!
208  TBranch *b_dx44;//!
209  TBranch *b_y44;//!
210  TBranch *b_dy44;//!
211  TBranch *b_Ept;//!
212  TBranch *b_dept;//!
213  TBranch *b_xpt;//!
214  TBranch *b_dxpt;//!
215  TBranch *b_ypt;//!
216  TBranch *b_dypt;//!
217  TBranch *b_pelec;//!
218  TBranch *b_flagelec;//!
219  TBranch *b_xeelec;//!
220  TBranch *b_yeelec;//!
221  TBranch *b_Q2eelec;//!
222  TBranch *b_nelec;//!
223  TBranch *b_Eelec;//!
224  TBranch *b_thetelec;//!
225  TBranch *b_phielec;//!
226  TBranch *b_xelec;//!
227  TBranch *b_Q2elec;//!
228  TBranch *b_xsigma;//!
229  TBranch *b_Q2sigma;//!
230  TBranch *b_sumc;//!
231  TBranch *b_sumetc;//!
232  TBranch *b_yjbc;//!
233  TBranch *b_Q2jbc;//!
234  TBranch *b_sumct;//!
235  TBranch *b_sumetct;//!
236  TBranch *b_yjbct;//!
237  TBranch *b_Q2jbct;//!
238  TBranch *b_Ebeamel;//!
239  TBranch *b_Ebeampr;//!
240  TBranch *b_pvtx_d;//!
241  TBranch *b_cpvtx_d;//!
242  TBranch *b_pvtx_t;//!
243  TBranch *b_cpvtx_t;//!
244  TBranch *b_ntrkxy_t;//!
245  TBranch *b_prbxy_t;//!
246  TBranch *b_ntrkz_t;//!
247  TBranch *b_prbz_t;//!
248  TBranch *b_nds;//!
249  TBranch *b_rankds;//!
250  TBranch *b_qds;//!
251  TBranch *b_pds_d;//!
252  TBranch *b_ptds_d;//!
253  TBranch *b_etads_d;//!
254  TBranch *b_dm_d;//!
255  TBranch *b_ddm_d;//!
256  TBranch *b_pds_t;//!
257  TBranch *b_dm_t;//!
258  TBranch *b_ddm_t;//!
259  TBranch *b_ik;//!
260  TBranch *b_ipi;//!
261  TBranch *b_ipis;//!
262  TBranch *b_pd0_d;//!
263  TBranch *b_ptd0_d;//!
264  TBranch *b_etad0_d;//!
265  TBranch *b_md0_d;//!
266  TBranch *b_dmd0_d;//!
267  TBranch *b_pd0_t;//!
268  TBranch *b_md0_t;//!
269  TBranch *b_dmd0_t;//!
270  TBranch *b_pk_r;//!
271  TBranch *b_ppi_r;//!
272  TBranch *b_pd0_r;//!
273  TBranch *b_md0_r;//!
274  TBranch *b_Vtxd0_r;//!
275  TBranch *b_cvtxd0_r;//!
276  TBranch *b_dxy_r;//!
277  TBranch *b_dz_r;//!
278  TBranch *b_psi_r;//!
279  TBranch *b_rd0_d;//!
280  TBranch *b_drd0_d;//!
281  TBranch *b_rpd0_d;//!
282  TBranch *b_drpd0_d;//!
283  TBranch *b_rd0_t;//!
284  TBranch *b_drd0_t;//!
285  TBranch *b_rpd0_t;//!
286  TBranch *b_drpd0_t;//!
287  TBranch *b_rd0_dt;//!
288  TBranch *b_drd0_dt;//!
289  TBranch *b_prbr_dt;//!
290  TBranch *b_prbz_dt;//!
291  TBranch *b_rd0_tt;//!
292  TBranch *b_drd0_tt;//!
293  TBranch *b_prbr_tt;//!
294  TBranch *b_prbz_tt;//!
295  TBranch *b_ijetd0;//!
296  TBranch *b_ptr3d0_j;//!
297  TBranch *b_ptr2d0_j;//!
298  TBranch *b_ptr3d0_3;//!
299  TBranch *b_ptr2d0_3;//!
300  TBranch *b_ptr2d0_2;//!
301  TBranch *b_Mimpds_r;//!
302  TBranch *b_Mimpbk_r;//!
303  TBranch *b_ntracks;//!
304  TBranch *b_pt;//!
305  TBranch *b_kappa;//!
306  TBranch *b_phi;//!
307  TBranch *b_theta;//!
308  TBranch *b_dca;//!
309  TBranch *b_z0;//!
310  TBranch *b_covar;//!
311  TBranch *b_nhitrp;//!
312  TBranch *b_prbrp;//!
313  TBranch *b_nhitz;//!
314  TBranch *b_prbz;//!
315  TBranch *b_rstart;//!
316  TBranch *b_rend;//!
317  TBranch *b_lhk;//!
318  TBranch *b_lhpi;//!
319  TBranch *b_nlhk;//!
320  TBranch *b_nlhpi;//!
321  TBranch *b_dca_d;//!
322  TBranch *b_ddca_d;//!
323  TBranch *b_dca_t;//!
324  TBranch *b_ddca_t;//!
325  TBranch *b_muqual;//!
326  TBranch *b_imu;//!
327  TBranch *b_imufe;//!
328  TBranch *b_njets;//!
329  TBranch *b_E_j;//!
330  TBranch *b_pt_j;//!
331  TBranch *b_theta_j;//!
332  TBranch *b_eta_j;//!
333  TBranch *b_phi_j;//!
334  TBranch *b_m_j;//!
335  TBranch *b_thrust;//!
336  TBranch *b_pthrust;//!
337  TBranch *b_thrust2;//!
338  TBranch *b_pthrust2;//!
339  TBranch *b_spher;//!
340  TBranch *b_aplan;//!
341  TBranch *b_plan;//!
342  TBranch *b_nnout;//!
343 
344  h1analysis(TTree *tree=0);
345  virtual ~h1analysis() { }
346  void Reset();
347 
348  int Version() const {return 1;}
349  void Begin(TTree *tree);
350  void SlaveBegin(TTree *tree);
351  void Init(TTree *tree);
352  Bool_t Notify();
353  Bool_t Process(Long64_t entry);
354  void SetOption(const char *option) { fOption = option; }
355  void SetObject(TObject *obj) { fObject = obj; }
356  void SetInputList(TList *input) {fInput = input;}
357  TList *GetOutputList() const { return fOutput; }
358  void SlaveTerminate();
359  void Terminate();
360 
361  ClassDef(h1analysis,2);
362 
363 };
364 
365 #endif
366 
367 
368 //_____________________________________________________________________
369 h1analysis::h1analysis(TTree * /*tree*/)
370 {
371  // Constructor
372 
373  Reset();
374 }
375 //_____________________________________________________________________
376 void h1analysis::Reset()
377 {
378  // Reset the data members to theit initial value
379 
380  hdmd = 0;
381  h2 = 0;
382  fChain = 0;
383  elist = 0;
384  fillList = kFALSE;
385  useList = kFALSE;
386  fProcessed = 0;
387 }
388 
389 //_____________________________________________________________________
390 void h1analysis::Init(TTree *tree)
391 {
392  // Set branch addresses
393 
394  Info("Init","tree: %p", tree);
395 
396  if (tree == 0) return;
397  fChain = tree;
398 
399  fChain->SetBranchAddress("nrun",&nrun,&(b_nrun) );
400  fChain->SetBranchAddress("nevent",&nevent,&(b_nevent) );
401  fChain->SetBranchAddress("nentry",&nentry,&(b_nentry) );
402  fChain->SetBranchAddress("trelem",trelem,&(b_trelem) );
403  fChain->SetBranchAddress("subtr",subtr,&(b_subtr) );
404  fChain->SetBranchAddress("rawtr",rawtr,&(b_rawtr) );
405  fChain->SetBranchAddress("L4subtr",L4subtr,&(b_L4subtr) );
406  fChain->SetBranchAddress("L5class",L5class,&(b_L5class) );
407  fChain->SetBranchAddress("E33",&E33,&(b_E33) );
408  fChain->SetBranchAddress("de33",&de33,&(b_de33) );
409  fChain->SetBranchAddress("x33",&x33,&(b_x33) );
410  fChain->SetBranchAddress("dx33",&dx33,&(b_dx33) );
411  fChain->SetBranchAddress("y33",&y33,&(b_y33) );
412  fChain->SetBranchAddress("dy33",&dy33,&(b_dy33) );
413  fChain->SetBranchAddress("E44",&E44,&(b_E44) );
414  fChain->SetBranchAddress("de44",&de44,&(b_de44) );
415  fChain->SetBranchAddress("x44",&x44,&(b_x44) );
416  fChain->SetBranchAddress("dx44",&dx44,&(b_dx44) );
417  fChain->SetBranchAddress("y44",&y44,&(b_y44) );
418  fChain->SetBranchAddress("dy44",&dy44,&(b_dy44) );
419  fChain->SetBranchAddress("Ept",&Ept,&(b_Ept) );
420  fChain->SetBranchAddress("dept",&dept,&(b_dept) );
421  fChain->SetBranchAddress("xpt",&xpt,&(b_xpt) );
422  fChain->SetBranchAddress("dxpt",&dxpt,&(b_dxpt) );
423  fChain->SetBranchAddress("ypt",&ypt,&(b_ypt) );
424  fChain->SetBranchAddress("dypt",&dypt,&(b_dypt) );
425  fChain->SetBranchAddress("pelec",pelec,&(b_pelec) );
426  fChain->SetBranchAddress("flagelec",&flagelec,&(b_flagelec) );
427  fChain->SetBranchAddress("xeelec",&xeelec,&(b_xeelec) );
428  fChain->SetBranchAddress("yeelec",&yeelec,&(b_yeelec) );
429  fChain->SetBranchAddress("Q2eelec",&Q2eelec,&(b_Q2eelec) );
430  fChain->SetBranchAddress("nelec",&nelec,&(b_nelec) );
431  fChain->SetBranchAddress("Eelec",Eelec,&(b_Eelec) );
432  fChain->SetBranchAddress("thetelec",thetelec,&(b_thetelec) );
433  fChain->SetBranchAddress("phielec",phielec,&(b_phielec) );
434  fChain->SetBranchAddress("xelec",xelec,&(b_xelec) );
435  fChain->SetBranchAddress("Q2elec",Q2elec,&(b_Q2elec) );
436  fChain->SetBranchAddress("xsigma",xsigma,&(b_xsigma) );
437  fChain->SetBranchAddress("Q2sigma",Q2sigma,&(b_Q2sigma) );
438  fChain->SetBranchAddress("sumc",sumc,&(b_sumc) );
439  fChain->SetBranchAddress("sumetc",&sumetc,&(b_sumetc) );
440  fChain->SetBranchAddress("yjbc",&yjbc,&(b_yjbc) );
441  fChain->SetBranchAddress("Q2jbc",&Q2jbc,&(b_Q2jbc) );
442  fChain->SetBranchAddress("sumct",sumct,&(b_sumct) );
443  fChain->SetBranchAddress("sumetct",&sumetct,&(b_sumetct) );
444  fChain->SetBranchAddress("yjbct",&yjbct,&(b_yjbct) );
445  fChain->SetBranchAddress("Q2jbct",&Q2jbct,&(b_Q2jbct) );
446  fChain->SetBranchAddress("Ebeamel",&Ebeamel,&(b_Ebeamel) );
447  fChain->SetBranchAddress("Ebeampr",&Ebeampr,&(b_Ebeampr) );
448  fChain->SetBranchAddress("pvtx_d",pvtx_d,&(b_pvtx_d) );
449  fChain->SetBranchAddress("cpvtx_d",cpvtx_d,&(b_cpvtx_d) );
450  fChain->SetBranchAddress("pvtx_t",pvtx_t,&(b_pvtx_t) );
451  fChain->SetBranchAddress("cpvtx_t",cpvtx_t,&(b_cpvtx_t) );
452  fChain->SetBranchAddress("ntrkxy_t",&ntrkxy_t,&(b_ntrkxy_t) );
453  fChain->SetBranchAddress("prbxy_t",&prbxy_t,&(b_prbxy_t) );
454  fChain->SetBranchAddress("ntrkz_t",&ntrkz_t,&(b_ntrkz_t) );
455  fChain->SetBranchAddress("prbz_t",&prbz_t,&(b_prbz_t) );
456  fChain->SetBranchAddress("nds",&nds,&(b_nds) );
457  fChain->SetBranchAddress("rankds",&rankds,&(b_rankds) );
458  fChain->SetBranchAddress("qds",&qds,&(b_qds) );
459  fChain->SetBranchAddress("pds_d",pds_d,&(b_pds_d) );
460  fChain->SetBranchAddress("ptds_d",&ptds_d,&(b_ptds_d) );
461  fChain->SetBranchAddress("etads_d",&etads_d,&(b_etads_d) );
462  fChain->SetBranchAddress("dm_d",&dm_d,&(b_dm_d) );
463  fChain->SetBranchAddress("ddm_d",&ddm_d,&(b_ddm_d) );
464  fChain->SetBranchAddress("pds_t",pds_t,&(b_pds_t) );
465  fChain->SetBranchAddress("dm_t",&dm_t,&(b_dm_t) );
466  fChain->SetBranchAddress("ddm_t",&ddm_t,&(b_ddm_t) );
467  fChain->SetBranchAddress("ik",&ik,&(b_ik) );
468  fChain->SetBranchAddress("ipi",&ipi,&(b_ipi) );
469  fChain->SetBranchAddress("ipis",&ipis,&(b_ipis) );
470  fChain->SetBranchAddress("pd0_d",pd0_d,&(b_pd0_d) );
471  fChain->SetBranchAddress("ptd0_d",&ptd0_d,&(b_ptd0_d) );
472  fChain->SetBranchAddress("etad0_d",&etad0_d,&(b_etad0_d) );
473  fChain->SetBranchAddress("md0_d",&md0_d,&(b_md0_d) );
474  fChain->SetBranchAddress("dmd0_d",&dmd0_d,&(b_dmd0_d) );
475  fChain->SetBranchAddress("pd0_t",pd0_t,&(b_pd0_t) );
476  fChain->SetBranchAddress("md0_t",&md0_t,&(b_md0_t) );
477  fChain->SetBranchAddress("dmd0_t",&dmd0_t,&(b_dmd0_t) );
478  fChain->SetBranchAddress("pk_r",pk_r,&(b_pk_r) );
479  fChain->SetBranchAddress("ppi_r",ppi_r,&(b_ppi_r) );
480  fChain->SetBranchAddress("pd0_r",pd0_r,&(b_pd0_r) );
481  fChain->SetBranchAddress("md0_r",&md0_r,&(b_md0_r) );
482  fChain->SetBranchAddress("Vtxd0_r",Vtxd0_r,&(b_Vtxd0_r) );
483  fChain->SetBranchAddress("cvtxd0_r",cvtxd0_r,&(b_cvtxd0_r) );
484  fChain->SetBranchAddress("dxy_r",&dxy_r,&(b_dxy_r) );
485  fChain->SetBranchAddress("dz_r",&dz_r,&(b_dz_r) );
486  fChain->SetBranchAddress("psi_r",&psi_r,&(b_psi_r) );
487  fChain->SetBranchAddress("rd0_d",&rd0_d,&(b_rd0_d) );
488  fChain->SetBranchAddress("drd0_d",&drd0_d,&(b_drd0_d) );
489  fChain->SetBranchAddress("rpd0_d",&rpd0_d,&(b_rpd0_d) );
490  fChain->SetBranchAddress("drpd0_d",&drpd0_d,&(b_drpd0_d) );
491  fChain->SetBranchAddress("rd0_t",&rd0_t,&(b_rd0_t) );
492  fChain->SetBranchAddress("drd0_t",&drd0_t,&(b_drd0_t) );
493  fChain->SetBranchAddress("rpd0_t",&rpd0_t,&(b_rpd0_t) );
494  fChain->SetBranchAddress("drpd0_t",&drpd0_t,&(b_drpd0_t) );
495  fChain->SetBranchAddress("rd0_dt",&rd0_dt,&(b_rd0_dt) );
496  fChain->SetBranchAddress("drd0_dt",&drd0_dt,&(b_drd0_dt) );
497  fChain->SetBranchAddress("prbr_dt",&prbr_dt,&(b_prbr_dt) );
498  fChain->SetBranchAddress("prbz_dt",&prbz_dt,&(b_prbz_dt) );
499  fChain->SetBranchAddress("rd0_tt",&rd0_tt,&(b_rd0_tt) );
500  fChain->SetBranchAddress("drd0_tt",&drd0_tt,&(b_drd0_tt) );
501  fChain->SetBranchAddress("prbr_tt",&prbr_tt,&(b_prbr_tt) );
502  fChain->SetBranchAddress("prbz_tt",&prbz_tt,&(b_prbz_tt) );
503  fChain->SetBranchAddress("ijetd0",&ijetd0,&(b_ijetd0) );
504  fChain->SetBranchAddress("ptr3d0_j",&ptr3d0_j,&(b_ptr3d0_j) );
505  fChain->SetBranchAddress("ptr2d0_j",&ptr2d0_j,&(b_ptr2d0_j) );
506  fChain->SetBranchAddress("ptr3d0_3",&ptr3d0_3,&(b_ptr3d0_3) );
507  fChain->SetBranchAddress("ptr2d0_3",&ptr2d0_3,&(b_ptr2d0_3) );
508  fChain->SetBranchAddress("ptr2d0_2",&ptr2d0_2,&(b_ptr2d0_2) );
509  fChain->SetBranchAddress("Mimpds_r",&Mimpds_r,&(b_Mimpds_r) );
510  fChain->SetBranchAddress("Mimpbk_r",&Mimpbk_r,&(b_Mimpbk_r) );
511  fChain->SetBranchAddress("ntracks",&ntracks,&(b_ntracks) );
512  fChain->SetBranchAddress("pt",pt,&(b_pt) );
513  fChain->SetBranchAddress("kappa",kappa,&(b_kappa) );
514  fChain->SetBranchAddress("phi",phi,&(b_phi) );
515  fChain->SetBranchAddress("theta",theta,&(b_theta) );
516  fChain->SetBranchAddress("dca",dca,&(b_dca) );
517  fChain->SetBranchAddress("z0",z0,&(b_z0) );
518  fChain->SetBranchAddress("covar",covar,&(b_covar) );
519  fChain->SetBranchAddress("nhitrp",nhitrp,&(b_nhitrp) );
520  fChain->SetBranchAddress("prbrp",prbrp,&(b_prbrp) );
521  fChain->SetBranchAddress("nhitz",nhitz,&(b_nhitz) );
522  fChain->SetBranchAddress("prbz",prbz,&(b_prbz) );
523  fChain->SetBranchAddress("rstart",rstart,&(b_rstart) );
524  fChain->SetBranchAddress("rend",rend,&(b_rend) );
525  fChain->SetBranchAddress("lhk",lhk,&(b_lhk) );
526  fChain->SetBranchAddress("lhpi",lhpi,&(b_lhpi) );
527  fChain->SetBranchAddress("nlhk",nlhk,&(b_nlhk) );
528  fChain->SetBranchAddress("nlhpi",nlhpi,&(b_nlhpi) );
529  fChain->SetBranchAddress("dca_d",dca_d,&(b_dca_d) );
530  fChain->SetBranchAddress("ddca_d",ddca_d,&(b_ddca_d) );
531  fChain->SetBranchAddress("dca_t",dca_t,&(b_dca_t) );
532  fChain->SetBranchAddress("ddca_t",ddca_t,&(b_ddca_t) );
533  fChain->SetBranchAddress("muqual",muqual,&(b_muqual) );
534  fChain->SetBranchAddress("imu",&imu,&(b_imu) );
535  fChain->SetBranchAddress("imufe",&imufe,&(b_imufe) );
536  fChain->SetBranchAddress("njets",&njets,&(b_njets) );
537  fChain->SetBranchAddress("E_j",E_j,&(b_E_j) );
538  fChain->SetBranchAddress("pt_j",pt_j,&(b_pt_j) );
539  fChain->SetBranchAddress("theta_j",theta_j,&(b_theta_j) );
540  fChain->SetBranchAddress("eta_j",eta_j,&(b_eta_j) );
541  fChain->SetBranchAddress("phi_j",phi_j,&(b_phi_j) );
542  fChain->SetBranchAddress("m_j",m_j,&(b_m_j) );
543  fChain->SetBranchAddress("thrust",&thrust,&(b_thrust) );
544  fChain->SetBranchAddress("pthrust",pthrust,&(b_pthrust) );
545  fChain->SetBranchAddress("thrust2",&thrust2,&(b_thrust2) );
546  fChain->SetBranchAddress("pthrust2",pthrust2,&(b_pthrust2) );
547  fChain->SetBranchAddress("spher",&spher,&(b_spher) );
548  fChain->SetBranchAddress("aplan",&aplan,&(b_aplan) );
549  fChain->SetBranchAddress("plan",&plan,&(b_plan) );
550  fChain->SetBranchAddress("nnout",&nnout,&(b_nnout) );
551 }
552 
553 //_____________________________________________________________________
554 Bool_t h1analysis::Notify()
555 {
556 // called when loading a new file
557 // get branch pointers
558 
559  Info("Notify","processing file: %s",fChain->GetCurrentFile()->GetName());
560 
561  if (elist && fChain) {
562  if (fillList) {
563  elist->SetTree(fChain);
564  } else if (useList) {
565  fChain->SetEntryList(elist);
566  }
567  }
568  return kTRUE;
569 }