Public Member Functions | Public Attributes | Private Attributes | List of all members
nu_g4numi Class Reference

#include <nu_g4numi.h>

Public Member Functions

 nu_g4numi (TChain *chain)
 
virtual ~nu_g4numi ()
 
void GetEntry (Int_t ientry)
 

Public Attributes

Int_t Ntype
 
Double_t NenergyN [11]
 
Double_t NWtNear [11]
 
Double_t NenergyF [2]
 
Double_t NWtFar [2]
 
Double_t Nimpwt
 
Int_t ntrajectory
 
Bool_t overflow
 
Int_t pdg [10]
 
Double_t startpx [10]
 
Double_t startpy [10]
 
Double_t startpz [10]
 
Double_t stoppx [10]
 
Double_t stoppy [10]
 
Double_t stoppz [10]
 
Double_t pprodpx [10]
 
Double_t pprodpy [10]
 
Double_t pprodpz [10]
 
Double_t startx [10]
 
Double_t starty [10]
 
Double_t startz [10]
 
Double_t stopx [10]
 
Double_t stopy [10]
 
Double_t stopz [10]
 
TString proc [10]
 
TString ivol [10]
 
TString fvol [10]
 
Double_t tpx
 
Double_t tpy
 
Double_t tpz
 
Double_t tvx
 
Double_t tvy
 
Double_t tvz
 
Int_t tptype
 
Int_t ntrees
 
Int_t nentries
 

Private Attributes

TChain * fChain
 

Detailed Description

Class to load the nudata tree

Definition at line 9 of file nu_g4numi.h.

Constructor & Destructor Documentation

nu_g4numi::nu_g4numi ( TChain *  chain)

the constructor needs a TChain

Definition at line 4 of file nu_g4numi.cpp.

4  {
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 }
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
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
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
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
nu_g4numi::~nu_g4numi ( )
virtual

Definition at line 68 of file nu_g4numi.cpp.

68  {
69 
70 }

Member Function Documentation

void nu_g4numi::GetEntry ( Int_t  ientry)

Get ntuple entry

Definition at line 62 of file nu_g4numi.cpp.

62  {
63 
64  fChain->GetEntry(ientry);
65 
66 }
TChain * fChain
Definition: nu_g4numi.h:133

Member Data Documentation

TChain* nu_g4numi::fChain
private

Definition at line 133 of file nu_g4numi.h.

TString nu_g4numi::fvol[10]

final volume of the track

Definition at line 100 of file nu_g4numi.h.

TString nu_g4numi::ivol[10]

initial volume of the track

Definition at line 97 of file nu_g4numi.h.

Double_t nu_g4numi::NenergyF[2]

Neutrino energy in far Minos

Definition at line 30 of file nu_g4numi.h.

Double_t nu_g4numi::NenergyN[11]

Neutrino energy Position 0 is in the front of Minos

Definition at line 24 of file nu_g4numi.h.

Int_t nu_g4numi::nentries

number of trajectory

Definition at line 130 of file nu_g4numi.h.

Double_t nu_g4numi::Nimpwt

Recover the right stats

Definition at line 36 of file nu_g4numi.h.

Int_t nu_g4numi::ntrajectory

number of trajectory

Definition at line 40 of file nu_g4numi.h.

Int_t nu_g4numi::ntrees

number of trajectory

Definition at line 127 of file nu_g4numi.h.

Int_t nu_g4numi::Ntype

Neutrino type $ 52: \bar{\nu}_{e}, 53: \nu_{e}, 55: \bar{\nu}_{\mu}, 56: \nu_{\mu} $

Definition at line 21 of file nu_g4numi.h.

Double_t nu_g4numi::NWtFar[2]

Geometrical weight to get the neutrino in the far Minos

Definition at line 33 of file nu_g4numi.h.

Double_t nu_g4numi::NWtNear[11]

Geometrical weight to get the neutrino in front of Minos

Definition at line 27 of file nu_g4numi.h.

Bool_t nu_g4numi::overflow

overflow flag

Definition at line 43 of file nu_g4numi.h.

Int_t nu_g4numi::pdg[10]

pdg code

Definition at line 46 of file nu_g4numi.h.

Double_t nu_g4numi::pprodpx[10]

parent px at production point

Definition at line 67 of file nu_g4numi.h.

Double_t nu_g4numi::pprodpy[10]

parent py at production point

Definition at line 70 of file nu_g4numi.h.

Double_t nu_g4numi::pprodpz[10]

parent pz at production point

Definition at line 73 of file nu_g4numi.h.

TString nu_g4numi::proc[10]

process name

Definition at line 94 of file nu_g4numi.h.

Double_t nu_g4numi::startpx[10]

start px

Definition at line 49 of file nu_g4numi.h.

Double_t nu_g4numi::startpy[10]

start py

Definition at line 52 of file nu_g4numi.h.

Double_t nu_g4numi::startpz[10]

start pz

Definition at line 55 of file nu_g4numi.h.

Double_t nu_g4numi::startx[10]

start x

Definition at line 76 of file nu_g4numi.h.

Double_t nu_g4numi::starty[10]

start y

Definition at line 79 of file nu_g4numi.h.

Double_t nu_g4numi::startz[10]

start z

Definition at line 82 of file nu_g4numi.h.

Double_t nu_g4numi::stoppx[10]

stop px

Definition at line 58 of file nu_g4numi.h.

Double_t nu_g4numi::stoppy[10]

stop py

Definition at line 61 of file nu_g4numi.h.

Double_t nu_g4numi::stoppz[10]

stop pz

Definition at line 64 of file nu_g4numi.h.

Double_t nu_g4numi::stopx[10]

stop x

Definition at line 85 of file nu_g4numi.h.

Double_t nu_g4numi::stopy[10]

stop y

Definition at line 88 of file nu_g4numi.h.

Double_t nu_g4numi::stopz[10]

stop z

Definition at line 91 of file nu_g4numi.h.

Int_t nu_g4numi::tptype

Neutrino parent type $ 8: \pi^{+}, 9: \pi^{-}, 11: K^{+}, 12: K^{-}$

Definition at line 124 of file nu_g4numi.h.

Double_t nu_g4numi::tpx

hadron off the target px

Definition at line 105 of file nu_g4numi.h.

Double_t nu_g4numi::tpy

hadron off the target py

Definition at line 108 of file nu_g4numi.h.

Double_t nu_g4numi::tpz

hadron off the target pz

Definition at line 111 of file nu_g4numi.h.

Double_t nu_g4numi::tvx

hadron off the target exit position x

Definition at line 114 of file nu_g4numi.h.

Double_t nu_g4numi::tvy

hadron off the target exit position y

Definition at line 117 of file nu_g4numi.h.

Double_t nu_g4numi::tvz

hadron off the target exit position z

Definition at line 120 of file nu_g4numi.h.


The documentation for this class was generated from the following files: