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