LDMX Software
|
Public Member Functions | |
TargetENProcessFilter (const std::string &name, framework::config::Parameters ¶meters) | |
Class constructor. | |
~TargetENProcessFilter () | |
Destructor. | |
void | stepping (const G4Step *step) override |
Implementmthe stepping action which performs the target volume biasing. | |
void | EndOfEventAction (const G4Event *) override |
End of event action. | |
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. | |
virtual | ~UserAction ()=default |
Destructor. | |
virtual void | BeginOfEventAction (const G4Event *) |
Method called at the beginning 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 | |
std::string | volumeName_ {"target_PV"} |
The volume name of the LDMX target. | |
bool | reactionOccurred_ {false} |
Flag indicating if the reaction of intereset occurred. | |
double | recoilEnergyThreshold_ {1500} |
Energy that the recoil electron must not surpass. | |
std::string | process_ {"electronNuclear"} |
Process to filter on. | |
Additional Inherited Members | |
Public Types inherited from simcore::UserAction | |
using | Factory = ::simcore::Factory< UserAction, std::shared_ptr< UserAction >, const std::string &, framework::config::Parameters & > |
factory for user actions | |
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. | |
Definition at line 22 of file TargetENProcessFilter.h.
biasing::TargetENProcessFilter::TargetENProcessFilter | ( | const std::string & | name, |
framework::config::Parameters & | parameters | ||
) |
Class constructor.
Definition at line 17 of file TargetENProcessFilter.cxx.
References framework::config::Parameters::getParameter(), and recoilEnergyThreshold_.
biasing::TargetENProcessFilter::~TargetENProcessFilter | ( | ) |
|
overridevirtual |
End of event action.
Reimplemented from simcore::UserAction.
Definition at line 100 of file TargetENProcessFilter.cxx.
References reactionOccurred_.
|
inlineoverridevirtual |
Retrieve the type of actions this class defines.
Implements simcore::UserAction.
Definition at line 45 of file TargetENProcessFilter.h.
|
overridevirtual |
Implementmthe stepping action which performs the target volume biasing.
step | The Geant4 step. |
Reimplemented from simcore::UserAction.
Definition at line 25 of file TargetENProcessFilter.cxx.
References process_, reactionOccurred_, recoilEnergyThreshold_, and volumeName_.
|
private |
Process to filter on.
Definition at line 68 of file TargetENProcessFilter.h.
Referenced by stepping().
|
private |
Flag indicating if the reaction of intereset occurred.
Definition at line 62 of file TargetENProcessFilter.h.
Referenced by EndOfEventAction(), and stepping().
|
private |
Energy that the recoil electron must not surpass.
Definition at line 65 of file TargetENProcessFilter.h.
Referenced by stepping(), and TargetENProcessFilter().
|
private |
The volume name of the LDMX target.
The 'target_PV' volume name is automatically constructed by Geant4's GDML parser and was found by inspecting the geometry using a visualization. This Physical Volume (PV) is associated with the target parent volume and so it will break if the target parent volume changes its name.
Definition at line 59 of file TargetENProcessFilter.h.
Referenced by stepping().