#include <Em10TrackingAction.hh>
Definition at line 38 of file Em10TrackingAction.hh.
◆ Em10TrackingAction()
Em10TrackingAction::Em10TrackingAction |
( |
| ) |
|
◆ ~Em10TrackingAction()
virtual Em10TrackingAction::~Em10TrackingAction |
( |
| ) |
|
|
inlinevirtual |
◆ PreUserTrackingAction()
void Em10TrackingAction::PreUserTrackingAction |
( |
const G4Track * |
aTrack | ) |
|
|
virtual |
Reimplemented from G4UserTrackingAction.
Definition at line 44 of file Em10TrackingAction.cc.
47 if( aTrack->GetParentID() == 1 && aTrack->GetKineticEnergy() > 100.*
GeV ){
49 G4cout <<
" Track ID: " << aTrack->GetTrackID() <<
G4endl;
50 G4cout <<
" particle: " << aTrack->GetDynamicParticle()->GetDefinition()->GetParticleName() <<
G4endl;
51 G4cout <<
" Parent ID: " << aTrack->GetParentID() <<
G4endl;
52 G4cout <<
" created by: " << aTrack->GetCreatorProcess()->GetProcessName() <<
G4endl;
53 G4cout <<
" kin. energy (TeV): " << aTrack->GetKineticEnergy() /
TeV <<
G4endl;
54 G4cout <<
" volume: " << aTrack->GetVolume()->GetName() <<
G4endl;
55 G4cout <<
" global time: " << aTrack->GetGlobalTime() <<
G4endl;
58 if( aTrack->GetTrackID() != 1 )
59 const_cast<G4Track*>(aTrack)->SetTrackStatus( fKillTrackAndSecondaries );
G4GLOB_DLL std::ostream G4cout
The documentation for this class was generated from the following files: