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 );
virtual void PreUserTrackingAction(const G4Track *)
Definition of the Em10TrackingAction class.
G4GLOB_DLL std::ostream G4cout