|
LDMX Software
|
User stepping action used to print the details of a step. More...
#include <StepPrinter.h>
Public Member Functions | |
| StepPrinter (const std::string &name, framework::config::Parameters ¶meters) | |
| Constructor. | |
| virtual | ~StepPrinter ()=default |
| Destructor. | |
| void | stepping (const G4Step *step) override |
| Stepping action called when a step is taken during tracking of a particle. | |
| std::vector< simcore::TYPE > | getTypes () override |
| Retrieve the type of actions this class defines. | |
Public Member Functions inherited from simcore::UserAction | |
| UserAction (const std::string &name, framework::config::Parameters ¶meters) | |
| Constructor. | |
| DECLARE_FACTORY (UserAction, std::shared_ptr< UserAction >, const std::string &, framework::config::Parameters &) | |
| factory for user actions | |
| virtual | ~UserAction ()=default |
| Destructor. | |
| virtual void | BeginOfEventAction (const G4Event *) |
| Method called at the beginning of every event. | |
| virtual void | EndOfEventAction (const G4Event *) |
| Method called at the end of every event. | |
| virtual void | BeginOfRunAction (const G4Run *) |
| Method called at the beginning of a run. | |
| virtual void | EndOfRunAction (const G4Run *) |
| Method called at the end of a run. | |
| virtual void | PreUserTrackingAction (const G4Track *) |
| Method called before the UserTrackingAction. | |
| virtual void | PostUserTrackingAction (const G4Track *) |
| Method called after the UserTrackingAction. | |
| virtual G4ClassificationOfNewTrack | ClassifyNewTrack (const G4Track *, const G4ClassificationOfNewTrack &cl) |
| Method called when a track is updated. | |
| virtual void | NewStage () |
| Method called at the beginning of a new stage. | |
| virtual void | PrepareNewEvent () |
| Method called at the beginning of a new event. | |
Private Attributes | |
| int | track_id_ {-9999} |
| The track ID to filter on. | |
| std::string | process_name_ {"UNDEFINED"} |
| int | depth_ {0} |
| std::unordered_map< int, int > | track_parents_ {} |
Additional Inherited Members | |
Protected Member Functions inherited from simcore::UserAction | |
| UserEventInformation * | getEventInfo () const |
| Get a handle to the event information. | |
| const std::map< int, ldmx::SimParticle > & | getCurrentParticleMap () const |
| Get the current particle map. | |
Protected Attributes inherited from simcore::UserAction | |
| std::string | name_ {""} |
| Name of the UserAction. | |
| framework::config::Parameters | parameters_ |
| The set of parameters used to configure this class. | |
| mutable::framework::logging::logger | the_log_ |
the logging channel user actions can use ldmx_log with | |
User stepping action used to print the details of a step.
Definition at line 16 of file StepPrinter.h.
| biasing::utility::StepPrinter::StepPrinter | ( | const std::string & | name, |
| framework::config::Parameters & | parameters ) |
Constructor.
| [in] | name | the name of the instance of this UserAction. |
| [in] | parameters | the parameters used to configure this UserAction. |
Definition at line 12 of file StepPrinter.cxx.
References framework::config::Parameters::get(), and track_id_.
|
inlineoverridevirtual |
Retrieve the type of actions this class defines.
Implements simcore::UserAction.
Definition at line 40 of file StepPrinter.h.
|
overridevirtual |
Stepping action called when a step is taken during tracking of a particle.
| [in] | step | Geant4 step |
Reimplemented from simcore::UserAction.
Definition at line 20 of file StepPrinter.cxx.
References simcore::g4user::TrackingAction::get(), simcore::g4user::TrackingAction::getTrackMap(), and track_id_.
|
private |
Definition at line 48 of file StepPrinter.h.
|
private |
Definition at line 47 of file StepPrinter.h.
|
private |
The track ID to filter on.
Definition at line 46 of file StepPrinter.h.
Referenced by stepping(), and StepPrinter().
|
private |
Definition at line 49 of file StepPrinter.h.