1#include "Biasing/Utility/TrackProcessFilter.h"
7#include "G4VProcess.hh"
12#include "SimCore/UserTrackInformation.h"
19 : simcore::UserAction(name, parameters) {
26 if (
const G4VProcess * process{track->GetCreatorProcess()}; process) {
27 auto name{process->GetProcessName()};
36DECLARE_ACTION(biasing::utility, TrackProcessFilter)
void PostUserTrackingAction(const G4Track *track) override
Method called when a track is done being processed.
TrackProcessFilter(const std::string &name, framework::config::Parameters ¶meters)
Constructor.
std::string process_
The process to filter on.
~TrackProcessFilter()
Destructor.
Class encapsulating parameters for configuring a processor.
T getParameter(const std::string &name) const
Retrieve the parameter of the given name.