-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathactions.h
38 lines (31 loc) · 886 Bytes
/
actions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef ACTIONS_H
#define ACTIONS_H
#include <G4UserRunAction.hh>
#include <G4UserEventAction.hh>
#include <G4UserTrackingAction.hh>
#include <G4UserSteppingAction.hh>
class G4Run;
class G4Event;
class G4Track;
class G4Step;
class RunAction final : public G4UserRunAction {
public:
G4Run* GenerateRun() override;
void BeginOfRunAction(const G4Run*) override;
void EndOfRunAction(const G4Run*) override;
};
class EventAction final : public G4UserEventAction {
public:
void BeginOfEventAction(const G4Event*) override;
void EndOfEventAction(const G4Event*) override;
};
class SteppingAction final : public G4UserSteppingAction {
public:
void UserSteppingAction(const G4Step*) override;
};
class TrackingAction final : public G4UserTrackingAction {
public:
void PreUserTrackingAction(const G4Track*) override;
void PostUserTrackingAction(const G4Track*) override;
};
#endif