LDMX Software
|
User action that allows a user to filter out events that are non-fiducial, i.e. More...
#include <NonFiducialFilter.h>
Public Member Functions | |
NonFiducialFilter (const std::string &name, framework::config::Parameters ¶meters) | |
Constructor. | |
virtual | ~NonFiducialFilter ()=default |
Destructor. | |
void | stepping (const G4Step *step) override |
Implement the stepping action which performs the target volume biasing. | |
void | EndOfEventAction (const G4Event *) override |
Method called at the end of every event. | |
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 | |
double | recoil_max_p_ {1500} |
Recoil electron threshold. | |
bool | abort_fiducial_ {true} |
If turned on, this aborts fiducial events. | |
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. | |
User action that allows a user to filter out events that are non-fiducial, i.e.
the electron is not contained in the ECAL and so can act like the signal
Definition at line 36 of file NonFiducialFilter.h.
NonFiducialFilter::NonFiducialFilter | ( | const std::string & | name, |
framework::config::Parameters & | parameters | ||
) |
Constructor.
Definition at line 22 of file NonFiducialFilter.cxx.
References abort_fiducial_, framework::config::Parameters::getParameter(), and recoil_max_p_.
|
overridevirtual |
Method called at the end of every event.
event | Geant4 event object. |
Reimplemented from simcore::UserAction.
Definition at line 101 of file NonFiducialFilter.cxx.
|
inlineoverridevirtual |
Retrieve the type of actions this class defines.
Implements simcore::UserAction.
Definition at line 58 of file NonFiducialFilter.h.
|
overridevirtual |
Implement the stepping action which performs the target volume biasing.
step | The Geant4 step. |
Reimplemented from simcore::UserAction.
Definition at line 29 of file NonFiducialFilter.cxx.
References abort_fiducial_, simcore::UserTrackInformation::get(), recoil_max_p_, and simcore::UserTrackInformation::tagRecoilElectron().
|
private |
If turned on, this aborts fiducial events.
Definition at line 67 of file NonFiducialFilter.h.
Referenced by NonFiducialFilter(), and stepping().
|
private |
Recoil electron threshold.
Definition at line 65 of file NonFiducialFilter.h.
Referenced by NonFiducialFilter(), and stepping().