#include <SteppingAction.hh>


Public Member Functions | |
| SteppingAction (DetectorConstruction *) | |
| ~SteppingAction () | |
| void | UserSteppingAction (const G4Step *) |
Private Attributes | |
| DetectorConstruction * | m_detector |
Definition at line 15 of file SteppingAction.hh.
| SteppingAction::SteppingAction | ( | DetectorConstruction * | det | ) |
| SteppingAction::~SteppingAction | ( | ) |
| void SteppingAction::UserSteppingAction | ( | const G4Step * | step | ) |
Definition at line 24 of file SteppingAction.cc.
00025 { 00026 // in which volume is the step ? 00027 G4VPhysicalVolume* volume 00028 = step->GetPreStepPoint()->GetTouchableHandle()->GetVolume(); 00029 00030 // energy deposit in this step 00031 G4double edep = step->GetTotalEnergyDeposit(); 00032 00033 // is astronaute ? 00034 if (volume == m_detector->GetAstronaut()) { 00035 G4cout << "--> edep in astronaut : " << edep/keV << " keV" << G4endl; 00036 } 00037 }
DetectorConstruction* SteppingAction::m_detector [private] |
1.5.7.1