ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/simulation/g4simulation/g4main/PHG4TruthTrackingAction.h>
Classes | |
struct | G4ParticleInfo |
Public Member Functions | |
PHG4TruthTrackingAction (PHG4TruthEventAction *) | |
constructor | |
~PHG4TruthTrackingAction () override | |
destructor | |
void | PreUserTrackingAction (const G4Track *) override |
tracking action | |
void | PostUserTrackingAction (const G4Track *) override |
void | SetInterfacePointers (PHCompositeNode *) override |
Set pointers to the i/o nodes. | |
int | ResetEvent (PHCompositeNode *) override |
Public Member Functions inherited from PHG4TrackingAction | |
PHG4TrackingAction (void) | |
~PHG4TrackingAction () override | |
Public Member Functions inherited from G4UserTrackingAction | |
G4UserTrackingAction () | |
virtual | ~G4UserTrackingAction () |
virtual void | SetTrackingManagerPointer (G4TrackingManager *pValue) |
Private Member Functions | |
PHG4Particle * | AddParticle (PHG4TruthInfoContainer &, G4Track &) |
PHG4VtxPoint * | AddVertex (PHG4TruthInfoContainer &, const G4Track &) |
Private Attributes | |
std::map< G4ThreeVector, int > | m_VertexMap |
PHG4TruthEventAction * | m_EventAction |
pointer to the "owning" event action | |
PHG4TruthInfoContainer * | m_TruthInfoList |
pointer to truth information container | |
std::vector< G4ParticleInfo > | m_G4ParticleStack |
G4ParticleInfo | m_CurrG4Particle |
void | UpdateG4ParticleStack (const G4Track *) |
Additional Inherited Members | |
Protected Attributes inherited from G4UserTrackingAction | |
G4TrackingManager * | fpTrackingManager |
Definition at line 20 of file PHG4TruthTrackingAction.h.
View newest version in sPHENIX GitHub at line 20 of file PHG4TruthTrackingAction.h
PHG4TruthTrackingAction::PHG4TruthTrackingAction | ( | PHG4TruthEventAction * | eventAction | ) |
constructor
Definition at line 34 of file PHG4TruthTrackingAction.cc.
View newest version in sPHENIX GitHub at line 34 of file PHG4TruthTrackingAction.cc
|
inlineoverride |
destructor
Definition at line 27 of file PHG4TruthTrackingAction.h.
View newest version in sPHENIX GitHub at line 27 of file PHG4TruthTrackingAction.h
|
private |
Definition at line 225 of file PHG4TruthTrackingAction.cc.
View newest version in sPHENIX GitHub at line 225 of file PHG4TruthTrackingAction.cc
References PHG4TruthInfoContainer::AddParticle(), AddVertex(), PHG4VtxPoint::get_id(), G4ParticleDefinition::GetAtomicMass(), G4ParticleDefinition::GetAtomicNumber(), G4Track::GetDefinition(), G4Track::GetParentID(), G4ParticleDefinition::GetParticleName(), G4ParticleDefinition::GetPDGEncoding(), G4ParticleDefinition::GetPDGMass(), G4Track::GetTotalEnergy(), G4Track::GetVertexKineticEnergy(), G4Track::GetVertexMomentumDirection(), GeV, G4ParticleDefinition::IsGeneralIon(), m, PHG4TruthInfoContainer::maxtrkindex(), PHG4TruthInfoContainer::mintrkindex(), PHG4Particle::set_A(), PHG4Particle::set_e(), PHG4Particle::set_name(), PHG4Particle::set_parent_id(), PHG4Particle::set_pid(), PHG4Particle::set_primary_id(), PHG4Particle::set_px(), PHG4Particle::set_py(), PHG4Particle::set_pz(), PHG4Particle::set_track_id(), PHG4Particle::set_vtx_id(), and PHG4Particle::set_Z().
Referenced by PreUserTrackingAction().
|
private |
Definition at line 278 of file PHG4TruthTrackingAction.cc.
View newest version in sPHENIX GitHub at line 278 of file PHG4TruthTrackingAction.cc
References PHG4TruthInfoContainer::AddVertex(), cm, G4Track::GetGlobalTime(), G4Track::GetParentID(), G4Track::GetVertexPosition(), PHG4TruthInfoContainer::GetVtxMap(), m_VertexMap, PHG4TruthInfoContainer::maxvtxindex(), PHG4TruthInfoContainer::minvtxindex(), ns, and v.
Referenced by AddParticle().
Reimplemented from PHG4TrackingAction.
Definition at line 121 of file PHG4TruthTrackingAction.cc.
View newest version in sPHENIX GitHub at line 121 of file PHG4TruthTrackingAction.cc
References PHG4TruthEventAction::AddTrackidToWritelist(), G4UserTrackingAction::fpTrackingManager, G4Track::GetTrackID(), G4Track::GetUserInformation(), G4TrackingManager::GimmeSecondaries(), m_EventAction, PHG4TrackUserInfo::SetShower(), PHG4TrackUserInfo::SetUserParentId(), PHG4TrackUserInfo::SetUserPrimaryId(), and UpdateG4ParticleStack().
tracking action
Reimplemented from PHG4TrackingAction.
Definition at line 42 of file PHG4TruthTrackingAction.cc.
View newest version in sPHENIX GitHub at line 42 of file PHG4TruthTrackingAction.cc
References AddParticle(), PHG4TruthInfoContainer::AddShower(), PHG4Particle::get_track_id(), PHG4UserPrimaryParticleInformation::get_user_barcode(), PHG4Particle::get_vtx_id(), G4Track::GetDynamicParticle(), G4Track::GetParentID(), G4DynamicParticle::GetPrimaryParticle(), G4Track::GetTrackID(), G4PrimaryParticle::GetUserInformation(), G4Track::GetUserInformation(), m_CurrG4Particle, m_TruthInfoList, G4InuclParticleNames::pp, PHG4Particle::set_barcode(), PHG4Showerv1::set_id(), PHG4Particle::set_parent_id(), PHG4Showerv1::set_parent_particle_id(), PHG4Showerv1::set_parent_shower_id(), PHG4Particle::set_primary_id(), PHG4UserPrimaryParticleInformation::set_user_track_id(), PHG4UserPrimaryParticleInformation::set_user_vtx_id(), PHG4TrackUserInfo::SetShower(), PHG4TrackUserInfo::SetUserPrimaryId(), and PHG4TrackUserInfo::SetUserTrackId().
|
overridevirtual |
Reimplemented from PHG4TrackingAction.
Definition at line 209 of file PHG4TruthTrackingAction.cc.
View newest version in sPHENIX GitHub at line 209 of file PHG4TruthTrackingAction.cc
References PHG4TruthInfoContainer::delete_particle(), m_G4ParticleStack, m_TruthInfoList, and m_VertexMap.
Referenced by PHG4TruthSubsystem::ResetEvent().
|
overridevirtual |
Set pointers to the i/o nodes.
Reimplemented from PHG4TrackingAction.
Definition at line 197 of file PHG4TruthTrackingAction.cc.
View newest version in sPHENIX GitHub at line 197 of file PHG4TruthTrackingAction.cc
References m_TruthInfoList.
Referenced by PHG4TruthSubsystem::process_event().
Machinery to keep track of upstream particles while adding Geant4 tracks to the truth info container
Updates the stack of parent particles and removes unwanted ones from the truth info container.
Definition at line 164 of file PHG4TruthTrackingAction.cc.
View newest version in sPHENIX GitHub at line 164 of file PHG4TruthTrackingAction.cc
References kdfinder::abs(), PHG4TruthInfoContainer::delete_particle(), PHG4TrackUserInfoV1::GetKeep(), G4Track::GetParentID(), G4Track::GetUserInformation(), m_CurrG4Particle, m_G4ParticleStack, and m_TruthInfoList.
Referenced by PostUserTrackingAction().
|
private |
Definition at line 58 of file PHG4TruthTrackingAction.h.
View newest version in sPHENIX GitHub at line 58 of file PHG4TruthTrackingAction.h
Referenced by PreUserTrackingAction(), and UpdateG4ParticleStack().
|
private |
pointer to the "owning" event action
Definition at line 43 of file PHG4TruthTrackingAction.h.
View newest version in sPHENIX GitHub at line 43 of file PHG4TruthTrackingAction.h
Referenced by PostUserTrackingAction().
|
private |
Definition at line 57 of file PHG4TruthTrackingAction.h.
View newest version in sPHENIX GitHub at line 57 of file PHG4TruthTrackingAction.h
Referenced by ResetEvent(), and UpdateG4ParticleStack().
|
private |
pointer to truth information container
Definition at line 46 of file PHG4TruthTrackingAction.h.
View newest version in sPHENIX GitHub at line 46 of file PHG4TruthTrackingAction.h
Referenced by PreUserTrackingAction(), ResetEvent(), SetInterfacePointers(), and UpdateG4ParticleStack().
|
private |
Definition at line 40 of file PHG4TruthTrackingAction.h.
View newest version in sPHENIX GitHub at line 40 of file PHG4TruthTrackingAction.h
Referenced by AddVertex(), and ResetEvent().