#include <CexmcSteppingAction.hh>
Definition at line 54 of file CexmcSteppingAction.hh.
Definition at line 59 of file CexmcSteppingAction.cc.
61 physicsManager( physicsManager ), targetVolume( NULL )
64 const CexmcSetup * setup( static_cast< const CexmcSetup * >(
65 runManager->GetUserDetectorConstruction() ) );
static G4RunManager * GetRunManager()
void CexmcSteppingAction::UserSteppingAction |
( |
const G4Step * |
step | ) |
|
|
virtual |
Reimplemented from G4UserSteppingAction.
Definition at line 70 of file CexmcSteppingAction.cc.
74 track->GetUserInformation() ) );
81 static_cast< CexmcIncidentParticleTrackInfo * >( trackInfo ) );
84 G4StepStatus stepStatus( postStepPoint->GetStepStatus() );
85 const G4VTouchable * touchable( postStepPoint->GetTouchable() );
88 if ( volume && volume->GetLogicalVolume() == targetVolume )
90 if ( ! theTrackInfo->IsStudiedProcessActivated() )
93 theTrackInfo->ActivateStudiedProcess();
98 if ( theTrackInfo->NeedsTrackLengthResampling() )
100 track, postStepPoint );
102 theTrackInfo->AddTrackLengthInTarget( step->
GetStepLength() );
110 if ( volume && volume->GetLogicalVolume() == targetVolume )
113 theTrackInfo->ActivateStudiedProcess(
false );
G4double GetStepLength() const
const G4VTouchable * GetTouchable() const
G4StepPoint * GetPreStepPoint() const
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
G4StepPoint * GetPostStepPoint() const
virtual void ResampleTrackLengthInTarget(const G4Track *track, const G4StepPoint *stepPoint=NULL)=0
G4Track * GetTrack() const
The documentation for this class was generated from the following files: