#include <StructuredG4Tree.h>
Public Member Functions | |
StructuredG4Tree (TTree *tree=0) | |
const UInt_t | NSim () const override |
number of particles More... | |
const UInt_t | NPoints (const UInt_t &iparticle) const override |
number of G4 steps (i.e. trajectory points) More... | |
const UInt_t | NRegions (const UInt_t &iparticle) const override |
number of regions traversed by particle More... | |
const Int_t | Region (const UInt_t &iparticle, const UInt_t &iregion) const override |
region number More... | |
const vector< const TLorentzVector * > * | SimMomEnter (const UInt_t &iparticle) const override |
particle 4-momentum at entry point, all regions More... | |
const vector< const TLorentzVector * > * | SimMomExit (const UInt_t &iparticle) const override |
particle 4-momentum at exit point, all regions More... | |
const vector< const TLorentzVector * > * | SimPosEnter (const UInt_t &iparticle) const override |
particle 4-position at entry point, all regions More... | |
const vector< const TLorentzVector * > * | SimPosExit (const UInt_t &iparticle) const override |
particle 4-position at exit point, all regions More... | |
const TLorentzVector * | SimMomEnter (const UInt_t &iparticle, const UInt_t &iregion) const override |
particle 4-momentum at entry point in region More... | |
const TLorentzVector * | SimMomExit (const UInt_t &iparticle, const UInt_t &iregion) const override |
particle 4-momentum at exit point in region More... | |
const TLorentzVector * | SimPosEnter (const UInt_t &iparticle, const UInt_t &iregion) const override |
particle 4-position at entry point in region More... | |
const TLorentzVector * | SimPosExit (const UInt_t &iparticle, const UInt_t &iregion) const override |
particle 4-position at exit point in region More... | |
const bool | IsPrimary (const UInt_t &iparticle) const override |
did particle come from generator? More... | |
const Int_t | PDG (const UInt_t &iparticle) const override |
particle PDG code More... | |
const int | ParentPDG (const UInt_t &iparticle) const override |
parent particle's PDG code More... | |
const int | ProgenitorPDG (const UInt_t &iparticle) const override |
PDG of primary that led this one. More... | |
const int | TrackID (const UInt_t &iparticle) const override |
G4 track ID (can be <0 if it fell below trking threshold) More... | |
const int | ParentTrackID (const UInt_t &iparticle) const override |
G4 track ID of parent particle. More... | |
const int | ProgenitorTrackID (const UInt_t &iparticle) const override |
G4 track ID of primary that led this one. More... | |
const Int_t | ProcessI (const UInt_t &iparticle) const override |
code for process that created this one More... | |
const Int_t | ProcessF (const UInt_t &iparticle) const override |
code for process that killed this one More... | |
const G4Particle * | GetParticle (const UInt_t &iparticle) const |
Public Member Functions inherited from garana::G4Tree | |
virtual | ~G4Tree () |
UInt_t const | GetTruthIndex (UInt_t iparticle) const |
index in gen tree subentry to truth match to this More... | |
const UInt_t | NPrimary () const |
bool | HasPassedTPC (const UInt_t &iparticle) const |
did the G4Particle pass through any TPC drift volume(s)? More... | |
bool | HasPassedCalo (const UInt_t &iparticle) const |
did the G4Particle pass through any active ECal volume(s)? More... | |
bool | IsStoppedTPC (const UInt_t &iparticle) const |
did the G4Particle stop/decay in any TPC drift volume(s)? More... | |
bool | IsStoppedCalo (const UInt_t &iparticle) const |
did the G4Particle stop/decay in any active ECal volume(s)? More... | |
bool | IsContainedTPC (const UInt_t &iparticle) const |
if the G4Particle was produced in any TPC drift volume, does it remain in either drift volume? More... | |
bool | IsContainedCalo (const UInt_t &iparticle) const |
if the G4Particle was produced in any active ECal volume, does it remain there? More... | |
bool | IsCathodeCrosser (const UInt_t &iparticle) const |
did the G4Particle cross the TPC central cathode? More... | |
bool | IsContainedTPCEvent () const |
do all particles produced in any TPC drift volume in this event remain in either volume? More... | |
bool | IsContainedTPCPrimaries () const |
do all primaries produced in any TPC drift volume in this event remain in either volume? More... | |
bool | IsContainedCaloEvent () const |
do all particles produced in any active ECal volume in this event remain there? More... | |
bool | IsContainedCaloPrimaries () const |
do all primaries produced in any active ECal volume in this event remain there? More... | |
const TLorentzVector * | SimMomBegin (const UInt_t &iparticle) const |
const TLorentzVector * | SimMomEnd (const UInt_t &iparticle) const |
const TLorentzVector * | SimPosBegin (const UInt_t &iparticle) const |
const TLorentzVector * | SimPosEnd (const UInt_t &iparticle) 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 | |
bool | SetBranchAddresses () override |
Private Attributes | |
vector< G4Particle > * | fG4Particles = nullptr |
'condensed' nusimdata::MCParticles from G4 More... | |
TBranch * | b_G4Particles = nullptr |
Additional Inherited Members | |
Protected Attributes inherited from garana::G4Tree | |
vector< UInt_t > * | fG4TruthIndex = nullptr |
vector< UInt_t > * | fG4FSIndex = nullptr |
TBranch * | b_G4TruthIndex = nullptr |
TBranch * | b_G4FSIndex = 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 18 of file StructuredG4Tree.h.
StructuredG4Tree::StructuredG4Tree | ( | TTree * | tree = 0 | ) |
Definition at line 13 of file StructuredG4Tree.cxx.
const G4Particle * StructuredG4Tree::GetParticle | ( | const UInt_t & | iparticle | ) | const |
Definition at line 37 of file StructuredG4Tree.cxx.
|
overridevirtual |
did particle come from generator?
Implements garana::G4Tree.
Definition at line 28 of file StructuredG4Tree.cxx.
|
overridevirtual |
number of G4 steps (i.e. trajectory points)
Implements garana::G4Tree.
Definition at line 67 of file StructuredG4Tree.cxx.
|
overridevirtual |
number of regions traversed by particle
Implements garana::G4Tree.
Definition at line 71 of file StructuredG4Tree.cxx.
|
overridevirtual |
number of particles
Implements garana::G4Tree.
Definition at line 63 of file StructuredG4Tree.cxx.
|
overridevirtual |
parent particle's PDG code
Implements garana::G4Tree.
Definition at line 125 of file StructuredG4Tree.cxx.
|
overridevirtual |
G4 track ID of parent particle.
Implements garana::G4Tree.
Definition at line 137 of file StructuredG4Tree.cxx.
|
overridevirtual |
particle PDG code
Implements garana::G4Tree.
Definition at line 33 of file StructuredG4Tree.cxx.
|
overridevirtual |
code for process that killed this one
Implements garana::G4Tree.
Definition at line 149 of file StructuredG4Tree.cxx.
|
overridevirtual |
code for process that created this one
Implements garana::G4Tree.
Definition at line 145 of file StructuredG4Tree.cxx.
|
overridevirtual |
PDG of primary that led this one.
Implements garana::G4Tree.
Definition at line 129 of file StructuredG4Tree.cxx.
|
overridevirtual |
G4 track ID of primary that led this one.
Implements garana::G4Tree.
Definition at line 141 of file StructuredG4Tree.cxx.
|
overridevirtual |
region number
Implements garana::G4Tree.
Definition at line 74 of file StructuredG4Tree.cxx.
|
overrideprivatevirtual |
Implements garana::TreeReader.
Definition at line 18 of file StructuredG4Tree.cxx.
|
overridevirtual |
particle 4-momentum at entry point, all regions
Implements garana::G4Tree.
Definition at line 77 of file StructuredG4Tree.cxx.
|
overridevirtual |
particle 4-momentum at entry point in region
Implements garana::G4Tree.
Definition at line 110 of file StructuredG4Tree.cxx.
|
overridevirtual |
particle 4-momentum at exit point, all regions
Implements garana::G4Tree.
Definition at line 85 of file StructuredG4Tree.cxx.
|
overridevirtual |
particle 4-momentum at exit point in region
Implements garana::G4Tree.
Definition at line 114 of file StructuredG4Tree.cxx.
|
overridevirtual |
particle 4-position at entry point, all regions
Implements garana::G4Tree.
Definition at line 93 of file StructuredG4Tree.cxx.
|
overridevirtual |
particle 4-position at entry point in region
Implements garana::G4Tree.
Definition at line 118 of file StructuredG4Tree.cxx.
|
overridevirtual |
particle 4-position at exit point, all regions
Implements garana::G4Tree.
Definition at line 101 of file StructuredG4Tree.cxx.
|
overridevirtual |
particle 4-position at exit point in region
Implements garana::G4Tree.
Definition at line 121 of file StructuredG4Tree.cxx.
|
overridevirtual |
G4 track ID (can be <0 if it fell below trking threshold)
Implements garana::G4Tree.
Definition at line 133 of file StructuredG4Tree.cxx.
|
private |
Definition at line 59 of file StructuredG4Tree.h.
|
private |
'condensed' nusimdata::MCParticles from G4
Definition at line 58 of file StructuredG4Tree.h.