#include <StructuredGenTree.h>
Public Member Functions | |
StructuredGenTree () | |
StructuredGenTree (TTree *tree) | |
bool | SetBranchAddresses () override |
< inherited from TreeReader More... | |
const UInt_t | NGen () const override |
const UInt_t | NFSParticles (const UInt_t &igen) const override |
const Bool_t | IsGenie (const UInt_t &igen) const override |
const int | NuRegion (const UInt_t &igen) const override |
region code where the vertex is located More... | |
const Int_t | NuPDG (const UInt_t &igen) const override |
neutrino PDG code More... | |
const TLorentzVector * | NuP (const UInt_t &igen) override |
initial neutrino 4-momentum More... | |
const TLorentzVector * | NuVertex (const UInt_t &igen) override |
4-position of neutrino vertex More... | |
const Bool_t | IsCC (const UInt_t &igen) const override |
whether interaction is CC or not More... | |
const int | ScatterCode (const UInt_t &igen) const override |
GENIE neutrino scattering code. More... | |
const int | InteractCode (const UInt_t &igen) const override |
GENIE interaction code. More... | |
const Int_t | TgtPDG (const UInt_t &igen) const override |
PDG of Target Nucleus, nucleon only if free. More... | |
const TLorentzVector * | TgtP4 (const UInt_t &igen) const override |
target 4-momentum More... | |
const int | TgtZ (const UInt_t &igen) const override |
target Z More... | |
const int | TgtA (const UInt_t &igen) const override |
target A More... | |
const int | HitNucPDG (const UInt_t &igen) const override |
hit nucleon PDG code More... | |
const TLorentzVector * | HitNucP4 (const UInt_t &igen) const override |
hit nucleon (initial) 4-momentum More... | |
const double | Q2 (const UInt_t &igen) const override |
const double | q2 (const UInt_t &igen) const override |
const double | W (const UInt_t &igen) const override |
const double | T (const UInt_t &igen) const override |
const double | X (const UInt_t &igen) const override |
const double | Y (const UInt_t &igen) const override |
const TLorentzVector * | FSLeptonP4 (const UInt_t &igen) const override |
final state primary lepton 4-momentum (LAB frame) More... | |
const TLorentzVector * | FSHadSystP4 (const UInt_t &igen) const override |
final state hadronic system 4-momentum(LAB frame) More... | |
const int | NumNuProton (const UInt_t &igen) const override |
number of protons after reaction, before FSI More... | |
const int | NumNuNeutron (const UInt_t &igen) const override |
number of neutrons after reaction, before FSI More... | |
const int | NumNuPi0 (const UInt_t &igen) const override |
number of pi0 after reaction, before FSI More... | |
const int | NumNuPiPlus (const UInt_t &igen) const override |
number of pi pluses after reaction, before FSI More... | |
const int | NumNuPiMinus (const UInt_t &igen) const override |
number of pi minuses after reaction, before FSI More... | |
const Float_t | FSTotEnergy (const UInt_t &igen) const override |
const Float_t | FSEnergy (const UInt_t &igen, const UInt_t &ifsp) const override |
const Float_t | FSPDG (const UInt_t &igen, const UInt_t &ifsp) const override |
const Int_t | FSTrackId (const UInt_t &igen, const UInt_t &ifsp) const override |
const GTruth * | GetGTruth (const UInt_t &igen) const |
const vector< FSParticle > * | GetParticles (const UInt_t &igen) const |
Public Member Functions inherited from garana::GenTree | |
virtual | ~GenTree () |
const std::vector< Int_t > * | GetGIndex () const |
whether or not subentry is GENIE interaction, index of GENIE interaction More... | |
bool | NuInAV (const UInt_t &igen) const |
bool | NuInIV (const UInt_t &igen) const |
bool | NuInCalo (const UInt_t &igen) const |
Public Member Functions inherited from garana::TreeReader | |
virtual | ~TreeReader () |
void | SetupRead (TTree *tree) |
TTree * | GetInputTree () |
size_t | NEntries () const |
virtual void | GetEntry (const UInt_t &ientry) |
Int_t | Event () const |
const TObjArray * | GetBranchList () const |
void | Fill () |
void | Write () |
void | CheckOpt (char opt) |
bool | BlockWrite () const |
Private Member Functions | |
const Bool_t | CheckFSRange (const UInt_t &igen) const |
Private Attributes | |
vector< vector< FSParticle > > * | fFSParticles = nullptr |
vector< GTruth > * | fGTruth = nullptr |
TBranch * | b_GTruth = nullptr |
TBranch * | b_FSParticles = nullptr |
Additional Inherited Members | |
Protected Attributes inherited from garana::GenTree | |
const std::vector< Int_t > * | fGIndex = nullptr |
TBranch * | b_GIndex = nullptr |
Protected Attributes inherited from garana::TreeReader | |
const std::string | treename |
char | fOpt = 'r' |
TTree * | fTreeIn = nullptr |
pointer to the analyzed TTree or TChain More... | |
UInt_t | fCurrentEntry = UINT_MAX |
TBranch * | b_Event = nullptr |
Int_t | fEvent = -1 |
event number for tree entry More... | |
Definition at line 13 of file StructuredGenTree.h.
|
inline |
Definition at line 17 of file StructuredGenTree.h.
StructuredGenTree::StructuredGenTree | ( | TTree * | tree | ) |
Definition at line 7 of file StructuredGenTree.cxx.
|
private |
Definition at line 231 of file StructuredGenTree.cxx.
|
overridevirtual |
Implements garana::GenTree.
Definition at line 218 of file StructuredGenTree.cxx.
|
overridevirtual |
final state hadronic system 4-momentum(LAB frame)
particle multiplicities (before FSI)
Implements garana::GenTree.
Definition at line 184 of file StructuredGenTree.cxx.
|
overridevirtual |
final state primary lepton 4-momentum (LAB frame)
Implements garana::GenTree.
Definition at line 180 of file StructuredGenTree.cxx.
|
overridevirtual |
Implements garana::GenTree.
Definition at line 222 of file StructuredGenTree.cxx.
|
overridevirtual |
Implements garana::GenTree.
Definition at line 209 of file StructuredGenTree.cxx.
|
overridevirtual |
GENIE specific neutrino info
Implements garana::GenTree.
Definition at line 226 of file StructuredGenTree.cxx.
const GTruth * StructuredGenTree::GetGTruth | ( | const UInt_t & | igen | ) | const |
Definition at line 31 of file StructuredGenTree.cxx.
const std::vector< FSParticle > * StructuredGenTree::GetParticles | ( | const UInt_t & | igen | ) | const |
Definition at line 52 of file StructuredGenTree.cxx.
|
overridevirtual |
hit nucleon (initial) 4-momentum
kinematics
Implements garana::GenTree.
Definition at line 152 of file StructuredGenTree.cxx.
|
overridevirtual |
hit nucleon PDG code
Implements garana::GenTree.
Definition at line 148 of file StructuredGenTree.cxx.
|
overridevirtual |
GENIE interaction code.
target info
Implements garana::GenTree.
Definition at line 128 of file StructuredGenTree.cxx.
|
overridevirtual |
whether interaction is CC or not
Implements garana::GenTree.
Definition at line 75 of file StructuredGenTree.cxx.
|
overridevirtual |
Implements garana::GenTree.
Definition at line 60 of file StructuredGenTree.cxx.
|
overridevirtual |
Implements garana::GenTree.
Definition at line 44 of file StructuredGenTree.cxx.
|
overridevirtual |
Implements garana::GenTree.
Definition at line 26 of file StructuredGenTree.cxx.
|
overridevirtual |
number of neutrons after reaction, before FSI
Implements garana::GenTree.
Definition at line 192 of file StructuredGenTree.cxx.
|
overridevirtual |
number of pi0 after reaction, before FSI
Implements garana::GenTree.
Definition at line 196 of file StructuredGenTree.cxx.
|
overridevirtual |
number of pi minuses after reaction, before FSI
Implements garana::GenTree.
Definition at line 204 of file StructuredGenTree.cxx.
|
overridevirtual |
number of pi pluses after reaction, before FSI
Implements garana::GenTree.
Definition at line 200 of file StructuredGenTree.cxx.
|
overridevirtual |
number of protons after reaction, before FSI
Implements garana::GenTree.
Definition at line 188 of file StructuredGenTree.cxx.
|
overridevirtual |
initial neutrino 4-momentum
Implements garana::GenTree.
Definition at line 105 of file StructuredGenTree.cxx.
|
overridevirtual |
neutrino PDG code
Implements garana::GenTree.
Definition at line 95 of file StructuredGenTree.cxx.
|
overridevirtual |
region code where the vertex is located
Implements garana::GenTree.
Definition at line 85 of file StructuredGenTree.cxx.
|
overridevirtual |
4-position of neutrino vertex
Implements garana::GenTree.
Definition at line 115 of file StructuredGenTree.cxx.
|
overridevirtual |
Implements garana::GenTree.
Definition at line 156 of file StructuredGenTree.cxx.
|
overridevirtual |
Implements garana::GenTree.
Definition at line 160 of file StructuredGenTree.cxx.
|
overridevirtual |
GENIE neutrino scattering code.
Implements garana::GenTree.
Definition at line 124 of file StructuredGenTree.cxx.
|
overridevirtual |
< inherited from TreeReader
accessors inherited from GenTree (see garana/Base/GenTree.h for method descriptions)
Implements garana::TreeReader.
Definition at line 13 of file StructuredGenTree.cxx.
|
overridevirtual |
Implements garana::GenTree.
Definition at line 168 of file StructuredGenTree.cxx.
|
overridevirtual |
target A
Implements garana::GenTree.
Definition at line 140 of file StructuredGenTree.cxx.
|
overridevirtual |
target 4-momentum
Implements garana::GenTree.
Definition at line 132 of file StructuredGenTree.cxx.
|
overridevirtual |
PDG of Target Nucleus, nucleon only if free.
Implements garana::GenTree.
Definition at line 144 of file StructuredGenTree.cxx.
|
overridevirtual |
target Z
Implements garana::GenTree.
Definition at line 136 of file StructuredGenTree.cxx.
|
overridevirtual |
Implements garana::GenTree.
Definition at line 164 of file StructuredGenTree.cxx.
|
overridevirtual |
Implements garana::GenTree.
Definition at line 172 of file StructuredGenTree.cxx.
|
overridevirtual |
Implements garana::GenTree.
Definition at line 176 of file StructuredGenTree.cxx.
|
private |
Definition at line 77 of file StructuredGenTree.h.
|
private |
Definition at line 76 of file StructuredGenTree.h.
|
private |
Definition at line 72 of file StructuredGenTree.h.
Definition at line 73 of file StructuredGenTree.h.