SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
StepPrinter.hh
Go to the documentation of this file.
1 #ifndef PLUGINS_STEPPRINTER_H
2 #define PLUGINS_STEPPRINTER_H
3 
4 //~~~ SLIC ~~~//
5 #include "UserActionPlugin.hh"
6 
7 // Forward declarations
8 class G4Step;
9 
10 namespace slic {
11 
15 class StepPrinter : public UserActionPlugin {
16 
17 public:
19  StepPrinter() = default;
20 
22  ~StepPrinter() = default;
23 
25  std::string getName() { return "StepPrinter"; }
26 
28  bool hasSteppingAction() { return true; }
29 
36  void stepping(const G4Step *step) final override;
37 
38 private:
40  int trackID_{-9999};
41 
42 }; // StepPrinter
43 
44 } // namespace slic
45 
46 #endif // PLUGINS_STEPPRINTER_H
StepPrinter()=default
Default constructor.
~StepPrinter()=default
Destructor.
int trackID_
The track ID to filter on.
Definition: StepPrinter.hh:40
std::string getName()
Definition: StepPrinter.hh:25
bool hasSteppingAction()
Definition: StepPrinter.hh:28
void stepping(const G4Step *step) final override
Definition: StepPrinter.cc:6
User simulation plugin.