|
SLIC
6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
|
#include <PairConvFilter.hh>
Public Member Functions | |
| PairConvFilter ()=default | |
| Default constructor. More... | |
| ~PairConvFilter ()=default | |
| Destructor. More... | |
| void | endEvent (const G4Event *) final override |
| void | endRun (const G4Run *run) final override |
| std::string | getName () |
| bool | hasEventAction () final override |
| bool | hasRunAction () final override |
| bool | hasStackingAction () final override |
| bool | hasSteppingAction () final override |
| G4ClassificationOfNewTrack | stackingClassifyNewTrack (const G4Track *, const G4ClassificationOfNewTrack ¤tTrackClass) final override |
| void | stepping (const G4Step *step) final override |
Public Member Functions inherited from UserActionPlugin | |
| virtual | ~UserActionPlugin () |
| virtual void | beginEvent (const G4Event *) |
| virtual void | beginRun (const G4Run *) |
| virtual void | generatePrimary (G4Event *) |
| int | getVerboseLevel () |
| virtual bool | hasPrimaryGeneratorAction () |
| virtual bool | hasTrackingAction () |
| virtual void | postTracking (const G4Track *) |
| virtual void | preTracking (const G4Track *) |
| void | setVerboseLevel (int verbose) |
| virtual void | stackingNewStage () |
| virtual void | stackingPrepareNewEvent () |
Private Attributes | |
| G4Track * | currentTrack_ {nullptr} |
| Pointer to the current track being processed. More... | |
| bool | hasPairConv_ {false} |
| Flag that denotes whether a conversion has been found. More... | |
| short | pairConvCount_ {0} |
| Counter to keep track of the pair conversion count. More... | |
Additional Inherited Members | |
Protected Attributes inherited from UserActionPlugin | |
| int | verbose_ { 1 } |
Class defining a UserAction that filters out events where a pair conversion occurs.
Definition at line 16 of file PairConvFilter.hh.
|
default |
Default constructor.
|
default |
Destructor.
|
finaloverridevirtual |
Method called at the end of the event.
| event | Geant4 event object. |
Reimplemented from UserActionPlugin.
Definition at line 113 of file PairConvFilter.cc.
References PairConvFilter::hasPairConv_.
|
finaloverridevirtual |
Method called at the end of the run. This will be used to print out a summary of the total conversion statistics.
| run | Geant4 run object. |
Reimplemented from UserActionPlugin.
Definition at line 115 of file PairConvFilter.cc.
References LOG::endl, and PairConvFilter::pairConvCount_.
|
inlinevirtual |
Implements UserActionPlugin.
Definition at line 26 of file PairConvFilter.hh.
|
inlinefinaloverridevirtual |
Reimplemented from UserActionPlugin.
Definition at line 32 of file PairConvFilter.hh.
|
inlinefinaloverridevirtual |
Reimplemented from UserActionPlugin.
Definition at line 38 of file PairConvFilter.hh.
|
inlinefinaloverridevirtual |
Reimplemented from UserActionPlugin.
Definition at line 35 of file PairConvFilter.hh.
|
inlinefinaloverridevirtual |
Reimplemented from UserActionPlugin.
Definition at line 29 of file PairConvFilter.hh.
|
finaloverridevirtual |
Classify a track. In the case of this filter, the track is pushed to the waiting stack if a pair conversion hasn't been found and the particle is not a photon.
| currentTrackClass | The current track classification. |
Reimplemented from UserActionPlugin.
Definition at line 10 of file PairConvFilter.cc.
References PairConvFilter::currentTrack_.
|
finaloverridevirtual |
Implementmthe stepping action which performs the filtering.
| [in] | step | Geant4 step |
Reimplemented from UserActionPlugin.
Definition at line 25 of file PairConvFilter.cc.
References PairConvFilter::currentTrack_, LOG::endl, PairConvFilter::hasPairConv_, and PairConvFilter::pairConvCount_.
|
private |
Pointer to the current track being processed.
Definition at line 76 of file PairConvFilter.hh.
Referenced by PairConvFilter::stackingClassifyNewTrack(), and PairConvFilter::stepping().
|
private |
Flag that denotes whether a conversion has been found.
Definition at line 79 of file PairConvFilter.hh.
Referenced by PairConvFilter::endEvent(), and PairConvFilter::stepping().
|
private |
Counter to keep track of the pair conversion count.
Definition at line 82 of file PairConvFilter.hh.
Referenced by PairConvFilter::endRun(), and PairConvFilter::stepping().