#include <G4Tree.h>
Public Member Functions | |
virtual | ~G4Tree () |
virtual const UInt_t | NSim () const =0 |
number of particles More... | |
virtual const UInt_t | NPoints (const UInt_t &iparticle) const =0 |
number of G4 steps (i.e. trajectory points) More... | |
virtual const UInt_t | NRegions (const UInt_t &iparticle) const =0 |
number of regions traversed by particle More... | |
virtual const Int_t | Region (const UInt_t &iparticle, const UInt_t &iregion) const =0 |
region number More... | |
virtual const vector< const TLorentzVector * > * | SimMomEnter (const UInt_t &iparticle) const =0 |
particle 4-momentum at entry point, all regions More... | |
virtual const vector< const TLorentzVector * > * | SimMomExit (const UInt_t &iparticle) const =0 |
particle 4-momentum at exit point, all regions More... | |
virtual const vector< const TLorentzVector * > * | SimPosEnter (const UInt_t &iparticle) const =0 |
particle 4-position at entry point, all regions More... | |
virtual const vector< const TLorentzVector * > * | SimPosExit (const UInt_t &iparticle) const =0 |
particle 4-position at exit point, all regions More... | |
virtual const TLorentzVector * | SimMomEnter (const UInt_t &iparticle, const UInt_t &iregion) const =0 |
particle 4-momentum at entry point in region More... | |
virtual const TLorentzVector * | SimMomExit (const UInt_t &iparticle, const UInt_t &iregion) const =0 |
particle 4-momentum at exit point in region More... | |
virtual const TLorentzVector * | SimPosEnter (const UInt_t &iparticle, const UInt_t &iregion) const =0 |
particle 4-position at entry point in region More... | |
virtual const TLorentzVector * | SimPosExit (const UInt_t &iparticle, const UInt_t &iregion) const =0 |
particle 4-position at exit point in region More... | |
virtual const bool | IsPrimary (const UInt_t &iparticle) const =0 |
did particle come from generator? More... | |
virtual const Int_t | PDG (const UInt_t &iparticle) const =0 |
particle PDG code More... | |
virtual const int | ParentPDG (const UInt_t &iparticle) const =0 |
parent particle's PDG code More... | |
virtual const int | ProgenitorPDG (const UInt_t &iparticle) const =0 |
PDG of primary that led this one. More... | |
virtual const int | TrackID (const UInt_t &iparticle) const =0 |
G4 track ID (can be <0 if it fell below trking threshold) More... | |
virtual const int | ParentTrackID (const UInt_t &iparticle) const =0 |
G4 track ID of parent particle. More... | |
virtual const int | ProgenitorTrackID (const UInt_t &iparticle) const =0 |
G4 track ID of primary that led this one. More... | |
virtual const Int_t | ProcessI (const UInt_t &iparticle) const =0 |
code for process that created this one More... | |
virtual const Int_t | ProcessF (const UInt_t &iparticle) const =0 |
code for process that killed this one More... | |
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 |
virtual bool | SetBranchAddresses ()=0 |
Protected Attributes | |
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... | |
const UInt_t G4Tree::GetTruthIndex | ( | UInt_t | iparticle | ) | const |
index in gen tree subentry to truth match to this
Definition at line 12 of file G4Tree.cxx.
bool G4Tree::HasPassedCalo | ( | const UInt_t & | iparticle | ) | const |
did the G4Particle pass through any active ECal volume(s)?
Definition at line 47 of file G4Tree.cxx.
bool G4Tree::HasPassedTPC | ( | const UInt_t & | iparticle | ) | const |
did the G4Particle pass through any TPC drift volume(s)?
Definition at line 36 of file G4Tree.cxx.
bool G4Tree::IsCathodeCrosser | ( | const UInt_t & | iparticle | ) | const |
did the G4Particle cross the TPC central cathode?
Definition at line 107 of file G4Tree.cxx.
bool G4Tree::IsContainedCalo | ( | const UInt_t & | iparticle | ) | const |
if the G4Particle was produced in any active ECal volume, does it remain there?
Definition at line 90 of file G4Tree.cxx.
bool G4Tree::IsContainedCaloEvent | ( | ) | const |
do all particles produced in any active ECal volume in this event remain there?
Definition at line 145 of file G4Tree.cxx.
bool G4Tree::IsContainedCaloPrimaries | ( | ) | const |
do all primaries produced in any active ECal volume in this event remain there?
Definition at line 156 of file G4Tree.cxx.
bool G4Tree::IsContainedTPC | ( | const UInt_t & | iparticle | ) | const |
if the G4Particle was produced in any TPC drift volume, does it remain in either drift volume?
Definition at line 74 of file G4Tree.cxx.
bool G4Tree::IsContainedTPCEvent | ( | ) | const |
do all particles produced in any TPC drift volume in this event remain in either volume?
Definition at line 122 of file G4Tree.cxx.
bool G4Tree::IsContainedTPCPrimaries | ( | ) | const |
do all primaries produced in any TPC drift volume in this event remain in either volume?
Definition at line 133 of file G4Tree.cxx.
|
pure virtual |
did particle come from generator?
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
bool G4Tree::IsStoppedCalo | ( | const UInt_t & | iparticle | ) | const |
did the G4Particle stop/decay in any active ECal volume(s)?
Definition at line 66 of file G4Tree.cxx.
bool G4Tree::IsStoppedTPC | ( | const UInt_t & | iparticle | ) | const |
did the G4Particle stop/decay in any TPC drift volume(s)?
Definition at line 58 of file G4Tree.cxx.
|
pure virtual |
number of G4 steps (i.e. trajectory points)
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
const UInt_t G4Tree::NPrimary | ( | ) | const |
Definition at line 27 of file G4Tree.cxx.
|
pure virtual |
number of regions traversed by particle
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
pure virtual |
number of particles
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
pure virtual |
parent particle's PDG code
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
pure virtual |
G4 track ID of parent particle.
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
pure virtual |
particle PDG code
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
pure virtual |
code for process that killed this one
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
pure virtual |
code for process that created this one
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
pure virtual |
PDG of primary that led this one.
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
pure virtual |
G4 track ID of primary that led this one.
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
pure virtual |
region number
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
const TLorentzVector * G4Tree::SimMomBegin | ( | const UInt_t & | iparticle | ) | const |
Definition at line 169 of file G4Tree.cxx.
const TLorentzVector * G4Tree::SimMomEnd | ( | const UInt_t & | iparticle | ) | const |
Definition at line 173 of file G4Tree.cxx.
|
pure virtual |
particle 4-momentum at entry point, all regions
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
pure virtual |
particle 4-momentum at entry point in region
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
pure virtual |
particle 4-momentum at exit point, all regions
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
pure virtual |
particle 4-momentum at exit point in region
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
const TLorentzVector * G4Tree::SimPosBegin | ( | const UInt_t & | iparticle | ) | const |
Definition at line 177 of file G4Tree.cxx.
const TLorentzVector * G4Tree::SimPosEnd | ( | const UInt_t & | iparticle | ) | const |
Definition at line 181 of file G4Tree.cxx.
|
pure virtual |
particle 4-position at entry point, all regions
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
pure virtual |
particle 4-position at entry point in region
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
pure virtual |
particle 4-position at exit point, all regions
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
pure virtual |
particle 4-position at exit point in region
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
pure virtual |
G4 track ID (can be <0 if it fell below trking threshold)
Implemented in garana::FlatG4Tree, and garana::StructuredG4Tree.
|
protected |
|
protected |