nu_g4numi.cpp
Go to the documentation of this file.
1 
2 #include "nu_g4numi.h"
3 
4 nu_g4numi::nu_g4numi(TChain* chain){
5 
6  nu_g4numi::fChain = chain;
7 
8  fChain->SetBranchAddress("Ntype", &Ntype);
9  fChain->SetBranchAddress("NenergyN[11]",NenergyN);
10  fChain->SetBranchAddress("NWtNear[11]", NWtNear);
11  fChain->SetBranchAddress("NenergyF[2]", NenergyF);
12  fChain->SetBranchAddress("NWtFar[2]", NWtFar);
13  fChain->SetBranchAddress("Nimpwt", &Nimpwt);
14 
15  fChain->SetBranchAddress("ntrajectory", &ntrajectory);
16  fChain->SetBranchAddress("overflow", &overflow);
17  fChain->SetBranchAddress("pdg[10]", pdg);
18 
19  fChain->SetBranchAddress("pprodpx[10]", pprodpx);
20  fChain->SetBranchAddress("pprodpy[10]", pprodpy);
21  fChain->SetBranchAddress("pprodpz[10]", pprodpz);
22 
23 
24  fChain->SetBranchAddress("startpx[10]", startpx);
25  fChain->SetBranchAddress("startpy[10]", startpy);
26  fChain->SetBranchAddress("startpz[10]", startpz);
27  fChain->SetBranchAddress("stoppx[10]", stoppx);
28  fChain->SetBranchAddress("stoppy[10]", stoppy);
29  fChain->SetBranchAddress("stoppz[10]", stoppz);
30 
31  fChain->SetBranchAddress("startx[10]", startx);
32  fChain->SetBranchAddress("starty[10]", starty);
33  fChain->SetBranchAddress("startz[10]", startz);
34  fChain->SetBranchAddress("stopx[10]", stopx);
35  fChain->SetBranchAddress("stopy[10]", stopy);
36  fChain->SetBranchAddress("stopz[10]", stopz);
37 
38  fChain->SetBranchAddress("proc[10]", proc);
39  fChain->SetBranchAddress("ivol[10]", ivol);
40  fChain->SetBranchAddress("fvol[10]", fvol);
41 
42  fChain->SetBranchAddress("tpx", &tpx);
43  fChain->SetBranchAddress("tpy", &tpy);
44  fChain->SetBranchAddress("tpz", &tpz);
45 
46  fChain->SetBranchAddress("tvx", &tvx);
47  fChain->SetBranchAddress("tvy", &tvy);
48  fChain->SetBranchAddress("tvz", &tvz);
49 
50 
51  fChain->SetBranchAddress("tptype",&tptype);
52 
53 
54 
55  fChain->SetMakeClass(1);
56 
57  nu_g4numi::ntrees = fChain->GetNtrees();
58  nu_g4numi::nentries = fChain->GetEntries();
59 
60 }
61 
62 void nu_g4numi::GetEntry(Int_t ientry){
63 
64  fChain->GetEntry(ientry);
65 
66 }
67 
69 
70 }
71 
Double_t pprodpx[10]
Definition: nu_g4numi.h:67
TString fvol[10]
Definition: nu_g4numi.h:100
Double_t stopy[10]
Definition: nu_g4numi.h:88
Double_t starty[10]
Definition: nu_g4numi.h:79
Double_t tpy
Definition: nu_g4numi.h:108
Double_t Nimpwt
Definition: nu_g4numi.h:36
void GetEntry(Int_t ientry)
Definition: nu_g4numi.cpp:62
Double_t startx[10]
Definition: nu_g4numi.h:76
Double_t stoppy[10]
Definition: nu_g4numi.h:61
Double_t tvx
Definition: nu_g4numi.h:114
Double_t stopx[10]
Definition: nu_g4numi.h:85
Int_t nentries
Definition: nu_g4numi.h:130
Int_t ntrees
Definition: nu_g4numi.h:127
Double_t tvy
Definition: nu_g4numi.h:117
Int_t tptype
Definition: nu_g4numi.h:124
Double_t tvz
Definition: nu_g4numi.h:120
Double_t NenergyF[2]
Definition: nu_g4numi.h:30
Double_t startpy[10]
Definition: nu_g4numi.h:52
nu_g4numi(TChain *chain)
Definition: nu_g4numi.cpp:4
Int_t Ntype
Definition: nu_g4numi.h:21
TString ivol[10]
Definition: nu_g4numi.h:97
Double_t stoppz[10]
Definition: nu_g4numi.h:64
Double_t NenergyN[11]
Definition: nu_g4numi.h:24
TString proc[10]
Definition: nu_g4numi.h:94
Double_t pprodpy[10]
Definition: nu_g4numi.h:70
Double_t NWtNear[11]
Definition: nu_g4numi.h:27
TChain * fChain
Definition: nu_g4numi.h:133
Int_t ntrajectory
Definition: nu_g4numi.h:40
Double_t stoppx[10]
Definition: nu_g4numi.h:58
Double_t tpz
Definition: nu_g4numi.h:111
Double_t startpz[10]
Definition: nu_g4numi.h:55
Int_t pdg[10]
Definition: nu_g4numi.h:46
virtual ~nu_g4numi()
Definition: nu_g4numi.cpp:68
Double_t stopz[10]
Definition: nu_g4numi.h:91
Double_t pprodpz[10]
Definition: nu_g4numi.h:73
Double_t startz[10]
Definition: nu_g4numi.h:82
Double_t NWtFar[2]
Definition: nu_g4numi.h:33
Double_t tpx
Definition: nu_g4numi.h:105
Bool_t overflow
Definition: nu_g4numi.h:43
Double_t startpx[10]
Definition: nu_g4numi.h:49