#include <CexmcTrackingAction.hh>
Definition at line 56 of file CexmcTrackingAction.hh.
Definition at line 58 of file CexmcTrackingAction.cc.
60 physicsManager( physicsManager ), targetVolume( NULL ),
62 outputParticleDecayProductCopyNumber( 0 ), incidentParticle( NULL ),
63 outputParticle( NULL ), nucleusOutputParticle( NULL )
67 if ( ! productionModel )
70 incidentParticle = productionModel->GetIncidentParticle();
71 outputParticle = productionModel->GetOutputParticle();
72 nucleusOutputParticle = productionModel->GetNucleusOutputParticle();
74 if ( ! incidentParticle || ! outputParticle || ! nucleusOutputParticle )
78 const CexmcSetup * setup( static_cast< const CexmcSetup * >(
79 runManager->GetUserDetectorConstruction() ) );
const G4int CexmcInvalidTrackId(-1)
static G4RunManager * GetRunManager()
virtual CexmcProductionModel * GetProductionModel(void)=0
void CexmcTrackingAction::BeginOfEventAction |
( |
void |
| ) |
|
|
inline |
Definition at line 104 of file CexmcTrackingAction.hh.
106 ResetOutputParticleTrackId();
107 ResetOutputParticleDecayProductCopyNumber();
void CexmcTrackingAction::PreUserTrackingAction |
( |
const G4Track * |
track | ) |
|
|
virtual |
Reimplemented from G4UserTrackingAction.
Definition at line 84 of file CexmcTrackingAction.cc.
92 G4Track * theTrack( const_cast< G4Track * >( track ) );
102 theTrack->SetUserInformation( trackInfo );
103 SetupIncidentParticleTrackInfo( track );
132 if ( track->
GetParentID() == outputParticleTrackId )
136 outputParticleDecayProductCopyNumber++ );
145 theTrack->SetUserInformation( trackInfo );
146 SetupIncidentParticleTrackInfo( track );
155 theTrack->SetUserInformation( trackInfo );
G4bool OnlyBeamParticleCanTriggerStudiedProcess(void) const
G4ParticleDefinition * GetDefinition() const
G4int GetParentID() const
G4VUserTrackInformation * GetUserInformation() const
const G4VProcess * GetCreatorProcess() const
const G4String & GetProcessName() const
const G4String CexmcStudiedProcessFullName(CexmcStudiedProcessFirstName+CexmcStudiedProcessLastName)
The documentation for this class was generated from the following files: