14 if(iparticle < fG4TruthIndex->
size())
20 std::cerr <<
"G4TruthIndex out of range (" 38 for(
size_t ireg=0; ireg<this->
NRegions(iparticle); ireg++) {
39 if(this->
Region(iparticle,ireg)==0 || this->
Region(iparticle,ireg)==1) {
49 for(
size_t ireg=0; ireg<this->
NRegions(iparticle); ireg++) {
50 if(this->
Region(iparticle,ireg)==3 || this->
Region(iparticle,ireg)==4) {
59 UInt_t ireg = this->
NRegions(iparticle)-1;
60 if(this->
Region(iparticle,ireg)==0 || this->
Region(iparticle,ireg)==1)
67 UInt_t ireg = this->
NRegions(iparticle)-1;
68 if(this->
Region(iparticle,ireg)==3 || this->
Region(iparticle,ireg)==4)
77 for(
size_t ireg=0; ireg<this->
NRegions(iparticle); ireg++) {
78 if(this->
Region(iparticle,ireg)!=0 && this->
Region(iparticle,ireg)!=1)
93 for(
size_t ireg=0; ireg<this->
NRegions(iparticle); ireg++) {
94 if(this->
Region(iparticle,ireg)!=3 && this->
Region(iparticle,ireg)!=4)
112 for(
size_t ireg=0; ireg<this->
NRegions(iparticle)-1; ireg++) {
114 if( (this->
Region(iparticle,ireg)==0 && this->
Region(iparticle,ireg+1)==1) ||
115 (this->
Region(iparticle,ireg)==1 && this->
Region(iparticle,ireg+1)==0) )
124 for(
size_t isim=0; isim<this->
NSim(); isim++){
135 for(
size_t isim=0; isim<this->
NSim(); isim++){
147 for(
size_t isim=0; isim<this->
NSim(); isim++){
158 for(
size_t isim=0; isim<this->
NSim(); isim++){
bool IsStoppedCalo(const UInt_t &iparticle) const
did the G4Particle stop/decay in any active ECal volume(s)?
virtual const UInt_t NSim() const =0
number of particles
virtual const UInt_t NRegions(const UInt_t &iparticle) const =0
number of regions traversed by particle
bool IsCathodeCrosser(const UInt_t &iparticle) const
did the G4Particle cross the TPC central cathode?
bool IsContainedCaloEvent() const
do all particles produced in any active ECal volume in this event remain there?
bool IsContainedTPCPrimaries() const
do all primaries produced in any TPC drift volume in this event remain in either volume?
const TLorentzVector * SimPosEnd(const UInt_t &iparticle) const
virtual const vector< const TLorentzVector * > * SimPosEnter(const UInt_t &iparticle) const =0
particle 4-position at entry point, all regions
virtual const vector< const TLorentzVector * > * SimMomEnter(const UInt_t &iparticle) const =0
particle 4-momentum at entry point, all regions
bool IsStoppedTPC(const UInt_t &iparticle) const
did the G4Particle stop/decay in any TPC drift volume(s)?
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
const TLorentzVector * SimMomBegin(const UInt_t &iparticle) const
virtual const vector< const TLorentzVector * > * SimPosExit(const UInt_t &iparticle) const =0
particle 4-position at exit point, all regions
bool HasPassedCalo(const UInt_t &iparticle) const
did the G4Particle pass through any active ECal volume(s)?
const TLorentzVector * SimPosBegin(const UInt_t &iparticle) const
vector< UInt_t > * fG4TruthIndex
virtual const bool IsPrimary(const UInt_t &iparticle) const =0
did particle come from generator?
bool IsContainedCaloPrimaries() const
do all primaries produced in any active ECal volume in this event remain there?
bool IsContainedCalo(const UInt_t &iparticle) const
if the G4Particle was produced in any active ECal volume, does it remain there?
bool HasPassedTPC(const UInt_t &iparticle) const
did the G4Particle pass through any TPC drift volume(s)?
bool IsContainedTPCEvent() const
do all particles produced in any TPC drift volume in this event remain in either volume?
const TLorentzVector * SimMomEnd(const UInt_t &iparticle) const
UInt_t const GetTruthIndex(UInt_t iparticle) const
index in gen tree subentry to truth match to this
virtual const vector< const TLorentzVector * > * SimMomExit(const UInt_t &iparticle) const =0
particle 4-momentum at exit point, all regions
bool IsContainedTPC(const UInt_t &iparticle) const
if the G4Particle was produced in any TPC drift volume, does it remain in either drift volume...
virtual const Int_t Region(const UInt_t &iparticle, const UInt_t &iregion) const =0
region number
const UInt_t NPrimary() const
QTextStream & endl(QTextStream &s)