LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
g4b::UserAction Class Reference

#include "UserAction.h"

Inheritance diagram for g4b::UserAction:
altns::ExampleAction larg4::G4BadIdeaAction larg4::IonizationAndScintillationAction larg4::ParticleListAction larg4::VisualizationAction

Public Member Functions

 UserAction ()
 
 UserAction (fhicl::ParameterSet const &pset)
 
virtual ~UserAction ()
 
virtual void Config (fhicl::ParameterSet const &)
 Override Config() to extract any necessary parameters. More...
 
virtual void PrintConfig (std::string const &)
 Override PrintConfig() to print out current configuration. More...
 
virtual void BeginOfRunAction (const G4Run *)
 G4UserRunAction interfaces. More...
 
virtual void EndOfRunAction (const G4Run *)
 
virtual void BeginOfEventAction (const G4Event *)
 G4UserEventAction interfaces. More...
 
virtual void EndOfEventAction (const G4Event *)
 
virtual void PreTrackingAction (const G4Track *)
 G4UserTrackingAction interfaces. More...
 
virtual void PostTrackingAction (const G4Track *)
 
virtual void SteppingAction (const G4Step *)
 G4UserSteppingAction interface. More...
 
virtual bool ProvidesStacking ()
 
virtual G4ClassificationOfNewTrack StackClassifyNewTrack (const G4Track *)
 G4UserStackingAction interfaces. More...
 
virtual void StackNewStage ()
 
virtual void StackPrepareNewEvent ()
 
std::string const & GetName () const
 
void SetName (std::string const &name)
 

Private Attributes

std::string myName
 self-knowledge More...
 

Detailed Description

Definition at line 56 of file UserAction.h.

Constructor & Destructor Documentation

g4b::UserAction::UserAction ( )
inline

Definition at line 60 of file UserAction.h.

60 {};
g4b::UserAction::UserAction ( fhicl::ParameterSet const &  pset)
inline

Definition at line 61 of file UserAction.h.

References Config().

61 { Config(pset); }
virtual void Config(fhicl::ParameterSet const &)
Override Config() to extract any necessary parameters.
Definition: UserAction.h:65
virtual g4b::UserAction::~UserAction ( )
inlinevirtual

Definition at line 62 of file UserAction.h.

62 {};

Member Function Documentation

virtual void g4b::UserAction::BeginOfEventAction ( const G4Event *  )
inlinevirtual

G4UserEventAction interfaces.

Reimplemented in larg4::ParticleListAction, larg4::VisualizationAction, and altns::ExampleAction.

Definition at line 78 of file UserAction.h.

78 {};
virtual void g4b::UserAction::BeginOfRunAction ( const G4Run *  )
inlinevirtual

G4UserRunAction interfaces.

The following a list of methods that correspond to the available user action classes in Geant 4.0.1 and higher.

Reimplemented in larg4::VisualizationAction.

Definition at line 74 of file UserAction.h.

74 {};
virtual void g4b::UserAction::Config ( fhicl::ParameterSet const &  )
inlinevirtual

Override Config() to extract any necessary parameters.

Reimplemented in altns::ExampleAction.

Definition at line 65 of file UserAction.h.

Referenced by UserAction().

65 {};
virtual void g4b::UserAction::EndOfEventAction ( const G4Event *  )
inlinevirtual

Reimplemented in larg4::ParticleListAction, larg4::VisualizationAction, and altns::ExampleAction.

Definition at line 79 of file UserAction.h.

79 {};
virtual void g4b::UserAction::EndOfRunAction ( const G4Run *  )
inlinevirtual

Reimplemented in larg4::VisualizationAction.

Definition at line 75 of file UserAction.h.

75 {};
std::string const& g4b::UserAction::GetName ( ) const
inline

Definition at line 98 of file UserAction.h.

References myName.

Referenced by g4b::UserActionManager::PrintActionList().

98 { return myName; }
std::string myName
self-knowledge
Definition: UserAction.h:101
virtual void g4b::UserAction::PostTrackingAction ( const G4Track *  )
inlinevirtual

Reimplemented in larg4::ParticleListAction, and altns::ExampleAction.

Definition at line 83 of file UserAction.h.

83 {};
virtual void g4b::UserAction::PreTrackingAction ( const G4Track *  )
inlinevirtual

G4UserTrackingAction interfaces.

Reimplemented in larg4::ParticleListAction, and altns::ExampleAction.

Definition at line 82 of file UserAction.h.

82 {};
virtual void g4b::UserAction::PrintConfig ( std::string const &  )
inlinevirtual

Override PrintConfig() to print out current configuration.

Reimplemented in altns::ExampleAction.

Definition at line 68 of file UserAction.h.

Referenced by g4b::UserActionManager::PrintActionList().

68 {};
virtual bool g4b::UserAction::ProvidesStacking ( )
inlinevirtual

Does this UserAction do stacking? Override to return "true" if the following interfaces are implemented

Reimplemented in altns::ExampleAction.

Definition at line 90 of file UserAction.h.

Referenced by g4b::UserActionManager::PrintActionList().

90 { return false; }
void g4b::UserAction::SetName ( std::string const &  name)
inline

Definition at line 99 of file UserAction.h.

References myName.

Referenced by g4b::UserActionFactory::GetUserAction().

99 { myName = name; }
std::string myName
self-knowledge
Definition: UserAction.h:101
virtual G4ClassificationOfNewTrack g4b::UserAction::StackClassifyNewTrack ( const G4Track *  )
inlinevirtual

G4UserStackingAction interfaces.

Reimplemented in altns::ExampleAction.

Definition at line 93 of file UserAction.h.

93 { return fUrgent; }
virtual void g4b::UserAction::StackNewStage ( )
inlinevirtual

Reimplemented in altns::ExampleAction.

Definition at line 94 of file UserAction.h.

94 {};
virtual void g4b::UserAction::StackPrepareNewEvent ( )
inlinevirtual

Reimplemented in altns::ExampleAction.

Definition at line 95 of file UserAction.h.

95 {};
virtual void g4b::UserAction::SteppingAction ( const G4Step *  )
inlinevirtual

G4UserSteppingAction interface.

Reimplemented in larg4::ParticleListAction, altns::ExampleAction, larg4::G4BadIdeaAction, and larg4::IonizationAndScintillationAction.

Definition at line 86 of file UserAction.h.

86 {};

Member Data Documentation

std::string g4b::UserAction::myName
private

self-knowledge

Definition at line 101 of file UserAction.h.

Referenced by GetName(), and SetName().


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