SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
Public Member Functions | Private Attributes | List of all members
StepPrinter Class Reference

#include <StepPrinter.hh>

Inheritance diagram for StepPrinter:
UserActionPlugin

Public Member Functions

 StepPrinter ()=default
 Default constructor. More...
 
 ~StepPrinter ()=default
 Destructor. More...
 
std::string getName ()
 
bool hasSteppingAction ()
 
void stepping (const G4Step *step) final override
 
- Public Member Functions inherited from UserActionPlugin
virtual ~UserActionPlugin ()
 
virtual void beginEvent (const G4Event *)
 
virtual void beginRun (const G4Run *)
 
virtual void endEvent (const G4Event *)
 
virtual void endRun (const G4Run *)
 
virtual void generatePrimary (G4Event *)
 
int getVerboseLevel ()
 
virtual bool hasEventAction ()
 
virtual bool hasPrimaryGeneratorAction ()
 
virtual bool hasRunAction ()
 
virtual bool hasStackingAction ()
 
virtual bool hasTrackingAction ()
 
virtual void postTracking (const G4Track *)
 
virtual void preTracking (const G4Track *)
 
void setVerboseLevel (int verbose)
 
virtual G4ClassificationOfNewTrack stackingClassifyNewTrack (const G4Track *, const G4ClassificationOfNewTrack &currentTrackClass)
 
virtual void stackingNewStage ()
 
virtual void stackingPrepareNewEvent ()
 

Private Attributes

int trackID_ {-9999}
 The track ID to filter on. More...
 

Additional Inherited Members

- Protected Attributes inherited from UserActionPlugin
int verbose_ { 1 }
 

Detailed Description

User stepping action used to print the details of a step.

Definition at line 15 of file StepPrinter.hh.

Constructor & Destructor Documentation

◆ StepPrinter()

StepPrinter ( )
default

Default constructor.

◆ ~StepPrinter()

~StepPrinter ( )
default

Destructor.

Member Function Documentation

◆ getName()

std::string getName ( )
inlinevirtual
Returns
The name of this plugin

Implements UserActionPlugin.

Definition at line 25 of file StepPrinter.hh.

◆ hasSteppingAction()

bool hasSteppingAction ( )
inlinevirtual
Returns
True if this plugin has a stepping action

Reimplemented from UserActionPlugin.

Definition at line 28 of file StepPrinter.hh.

◆ stepping()

void stepping ( const G4Step *  step)
finaloverridevirtual

Stepping action called when a step is taken during tracking of a particle.

Parameters
[in]stepGeant4 step

Reimplemented from UserActionPlugin.

Definition at line 6 of file StepPrinter.cc.

References LOG::endl, and StepPrinter::trackID_.

Member Data Documentation

◆ trackID_

int trackID_ {-9999}
private

The track ID to filter on.

Definition at line 40 of file StepPrinter.hh.

Referenced by StepPrinter::stepping().


The documentation for this class was generated from the following files: