Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
ppfx
src
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
68
nu_g4numi::~nu_g4numi
(){
69
70
}
71
nu_g4numi::pprodpx
Double_t pprodpx[10]
Definition:
nu_g4numi.h:67
nu_g4numi.h
nu_g4numi::fvol
TString fvol[10]
Definition:
nu_g4numi.h:100
nu_g4numi::stopy
Double_t stopy[10]
Definition:
nu_g4numi.h:88
nu_g4numi::starty
Double_t starty[10]
Definition:
nu_g4numi.h:79
nu_g4numi::tpy
Double_t tpy
Definition:
nu_g4numi.h:108
nu_g4numi::Nimpwt
Double_t Nimpwt
Definition:
nu_g4numi.h:36
nu_g4numi::GetEntry
void GetEntry(Int_t ientry)
Definition:
nu_g4numi.cpp:62
nu_g4numi::startx
Double_t startx[10]
Definition:
nu_g4numi.h:76
nu_g4numi::stoppy
Double_t stoppy[10]
Definition:
nu_g4numi.h:61
nu_g4numi::tvx
Double_t tvx
Definition:
nu_g4numi.h:114
nu_g4numi::stopx
Double_t stopx[10]
Definition:
nu_g4numi.h:85
nu_g4numi::nentries
Int_t nentries
Definition:
nu_g4numi.h:130
nu_g4numi::ntrees
Int_t ntrees
Definition:
nu_g4numi.h:127
nu_g4numi::tvy
Double_t tvy
Definition:
nu_g4numi.h:117
nu_g4numi::tptype
Int_t tptype
Definition:
nu_g4numi.h:124
nu_g4numi::tvz
Double_t tvz
Definition:
nu_g4numi.h:120
nu_g4numi::NenergyF
Double_t NenergyF[2]
Definition:
nu_g4numi.h:30
nu_g4numi::startpy
Double_t startpy[10]
Definition:
nu_g4numi.h:52
nu_g4numi::nu_g4numi
nu_g4numi(TChain *chain)
Definition:
nu_g4numi.cpp:4
nu_g4numi::Ntype
Int_t Ntype
Definition:
nu_g4numi.h:21
nu_g4numi::ivol
TString ivol[10]
Definition:
nu_g4numi.h:97
nu_g4numi::stoppz
Double_t stoppz[10]
Definition:
nu_g4numi.h:64
nu_g4numi::NenergyN
Double_t NenergyN[11]
Definition:
nu_g4numi.h:24
nu_g4numi::proc
TString proc[10]
Definition:
nu_g4numi.h:94
nu_g4numi::pprodpy
Double_t pprodpy[10]
Definition:
nu_g4numi.h:70
nu_g4numi::NWtNear
Double_t NWtNear[11]
Definition:
nu_g4numi.h:27
nu_g4numi::fChain
TChain * fChain
Definition:
nu_g4numi.h:133
nu_g4numi::ntrajectory
Int_t ntrajectory
Definition:
nu_g4numi.h:40
nu_g4numi::stoppx
Double_t stoppx[10]
Definition:
nu_g4numi.h:58
nu_g4numi::tpz
Double_t tpz
Definition:
nu_g4numi.h:111
nu_g4numi::startpz
Double_t startpz[10]
Definition:
nu_g4numi.h:55
nu_g4numi::pdg
Int_t pdg[10]
Definition:
nu_g4numi.h:46
nu_g4numi::~nu_g4numi
virtual ~nu_g4numi()
Definition:
nu_g4numi.cpp:68
nu_g4numi::stopz
Double_t stopz[10]
Definition:
nu_g4numi.h:91
nu_g4numi::pprodpz
Double_t pprodpz[10]
Definition:
nu_g4numi.h:73
nu_g4numi::startz
Double_t startz[10]
Definition:
nu_g4numi.h:82
nu_g4numi::NWtFar
Double_t NWtFar[2]
Definition:
nu_g4numi.h:33
nu_g4numi::tpx
Double_t tpx
Definition:
nu_g4numi.h:105
nu_g4numi::overflow
Bool_t overflow
Definition:
nu_g4numi.h:43
nu_g4numi::startpx
Double_t startpx[10]
Definition:
nu_g4numi.h:49
Generated by
1.8.11