SLIC
6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
plugins
include
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
UserActionPlugin.hh
slic::StepPrinter
Definition:
StepPrinter.hh:15
slic::StepPrinter::StepPrinter
StepPrinter()=default
Default constructor.
slic::StepPrinter::~StepPrinter
~StepPrinter()=default
Destructor.
slic::StepPrinter::trackID_
int trackID_
The track ID to filter on.
Definition:
StepPrinter.hh:40
slic::StepPrinter::getName
std::string getName()
Definition:
StepPrinter.hh:25
slic::StepPrinter::hasSteppingAction
bool hasSteppingAction()
Definition:
StepPrinter.hh:28
slic::StepPrinter::stepping
void stepping(const G4Step *step) final override
Definition:
StepPrinter.cc:6
slic::UserActionPlugin
User simulation plugin.
Definition:
UserActionPlugin.hh:44
slic
Definition:
CommandLineOption.hh:9
Generated by
1.9.1