31 lines
559 B
C++
31 lines
559 B
C++
#ifndef B1SteppingAction_h
|
|
#define B1SteppingAction_h 1
|
|
|
|
#include "G4UserSteppingAction.hh"
|
|
#include "globals.hh"
|
|
|
|
class G4LogicalVolume;
|
|
|
|
/// Stepping action class
|
|
|
|
namespace B1 {
|
|
|
|
class EventAction;
|
|
|
|
class SteppingAction : public G4UserSteppingAction {
|
|
public:
|
|
SteppingAction(EventAction* eventAction);
|
|
~SteppingAction() override;
|
|
|
|
// 每个 step 调用一次
|
|
void UserSteppingAction(const G4Step*) override;
|
|
|
|
private:
|
|
EventAction* fEventAction = nullptr;
|
|
G4LogicalVolume* fScoringVolume = nullptr;
|
|
};
|
|
|
|
} // namespace B1
|
|
|
|
#endif
|