#include <ExampleAction.h>
Public Member Functions | |
ExampleAction () | |
virtual | ~ExampleAction () |
void | Config (fhicl::ParameterSet const &pset) |
Override Config() to extract any necessary parameters. More... | |
void | PrintConfig (std::string const &opt) |
Override PrintConfig() to print out current configuration. More... | |
void | BeginOfEventAction (const G4Event *) |
void | EndOfEventAction (const G4Event *) |
void | PreTrackingAction (const G4Track *) |
G4UserTrackingAction interfaces. More... | |
void | PostTrackingAction (const G4Track *) |
void | SteppingAction (const G4Step *) |
G4UserSteppingAction interface. More... | |
bool | ProvidesStacking () |
G4ClassificationOfNewTrack | StackClassifyNewTrack (const G4Track *) |
G4UserStackingAction interfaces. More... | |
void | StackNewStage () |
void | StackPrepareNewEvent () |
Public Member Functions inherited from g4b::UserAction | |
UserAction () | |
UserAction (fhicl::ParameterSet const &pset) | |
virtual | ~UserAction () |
virtual void | BeginOfRunAction (const G4Run *) |
G4UserRunAction interfaces. More... | |
virtual void | EndOfRunAction (const G4Run *) |
std::string const & | GetName () const |
void | SetName (std::string const &name) |
Private Attributes | |
double | fSomeValue |
some user config value More... | |
int | fVerbose |
verbosity More... | |
int | fStepMsgMaxPerEvt |
shut up about steps More... | |
int | fTrack2ndMsgMaxPerEvt |
shut up about 2ndary tracks More... | |
int | fStepMsg |
steps have we printed this evt?More... | |
int | fTrack2ndMsg |
of 2ndary track printed this evt?More... | |
Definition at line 25 of file ExampleAction.h.
altns::ExampleAction::ExampleAction | ( | ) |
Create the object
Definition at line 44 of file ExampleAction.cxx.
|
virtual |
Delete anything that we created with "new'.
Definition at line 55 of file ExampleAction.cxx.
|
virtual |
UserActions method that we'll override, to obtain access to Geant4's particle tracks and trajectories.
This method is invoked before converting the primary particles to G4Track objects. A typical use of this method would be to initialize and/or book histograms for a particular event.
Reimplemented from g4b::UserAction.
Definition at line 85 of file ExampleAction.cxx.
|
virtual |
Override Config() to extract any necessary parameters.
Configure the object
Reimplemented from g4b::UserAction.
Definition at line 61 of file ExampleAction.cxx.
|
virtual |
This method is invoked at the very end of event processing. It is typically used for a simple analysis of the processed event.
Reimplemented from g4b::UserAction.
Definition at line 101 of file ExampleAction.cxx.
|
virtual |
This method is invoked after all stepping of this track has occurred
Reimplemented from g4b::UserAction.
Definition at line 127 of file ExampleAction.cxx.
|
virtual |
G4UserTrackingAction interfaces.
This method is invoked before any stepping of this track has occurred
Reimplemented from g4b::UserAction.
Definition at line 112 of file ExampleAction.cxx.
|
virtual |
Override PrintConfig() to print out current configuration.
Reimplemented from g4b::UserAction.
Definition at line 73 of file ExampleAction.cxx.
|
inlinevirtual |
Does this UserAction do stacking? Override to return "true" if the following interfaces are implemented
Reimplemented from g4b::UserAction.
Definition at line 45 of file ExampleAction.h.
|
virtual |
G4UserStackingAction interfaces.
This method is invoked by G4StackManager whenever a new G4Track object is "pushed" onto a stack by G4EventManager. ClassifyNewTrack() returns an enumerator, G4ClassificationOfNewTrack, whose value indicates to which stack, if any, the track will be sent. G4ClassificationOfNewTrack has four possible values: fUrgent - track is placed in the urgent stack fWaiting - track is placed in the waiting stack, and will not be simulated until the urgent stack is empty fPostpone - track is postponed to the next event fKill - the track is deleted immediately and not stored in any stack.
Reimplemented from g4b::UserAction.
Definition at line 171 of file ExampleAction.cxx.
|
virtual |
This method is invoked when the urgent stack is empty and the waiting stack contains at least one G4Track object. Here the user may kill or re-assign to different stacks all the tracks in the waiting stack by calling the stackManager->ReClassify() method which, in turn, calls the ClassifyNewTrack() method. If no user action is taken, all tracks in the waiting stack are transferred to the urgent stack. The user may also decide to abort the current event even though some tracks may remain in the waiting stack by calling stackManager->clear(). This method is valid and safe only if it is called from the G4UserStackingAction class.
Reimplemented from g4b::UserAction.
Definition at line 203 of file ExampleAction.cxx.
|
virtual |
This method is invoked at the beginning of each event. At this point no primary particles have been converted to tracks, so the urgent and waiting stacks are empty. However, there may be tracks in the postponed-to-next-event stack; for each of these the ClassifyNewTrack() method is called and the track is assigned to the appropriate stack.
Reimplemented from g4b::UserAction.
Definition at line 221 of file ExampleAction.cxx.
|
virtual |
G4UserSteppingAction interface.
This method is invoked at each end of stepping
Reimplemented from g4b::UserAction.
Definition at line 149 of file ExampleAction.cxx.
|
private |
some user config value
Definition at line 53 of file ExampleAction.h.
|
private |
Definition at line 58 of file ExampleAction.h.
|
private |
shut up about steps
Definition at line 55 of file ExampleAction.h.
|
private |
Definition at line 59 of file ExampleAction.h.
|
private |
shut up about 2ndary tracks
Definition at line 56 of file ExampleAction.h.
|
private |
verbosity
Definition at line 54 of file ExampleAction.h.