10 #include "G4RunManager.hh"
11 #include "G4LogicalVolume.hh"
16 : G4UserSteppingAction(),
17 fEventAction(eventAction),
43 ( G4RunManager::GetRunManager()->GetUserDetectorConstruction() );
54 G4LogicalVolume* volume
55 = step-> GetPreStepPoint()
56 -> GetTouchableHandle()
58 -> GetLogicalVolume();
61 if (volume != fScoringVolume)
return;
64 G4double edepStep = step->GetTotalEnergyDeposit();
66 fEventAction->
AddEdep(edepStep);
Definition of the B1DetectorConstruction class.
Detector construction class to define materials and geometry.
Definition of the B1SteppingAction class.
G4LogicalVolume * GetScoringVolume() const
B1SteppingAction(B1EventAction *eventAction)
virtual void UserSteppingAction(const G4Step *)
Definition of the B1EventAction class.
void AddEdep(G4double edep)
for user stepping action object to update the B1EventAction::fEdep.
virtual ~B1SteppingAction()