1#include "Biasing/Utility/DecayChildrenKeeper.h"
7#include "G4VProcess.hh"
12#include "SimCore/UserTrackInformation.h"
19 : simcore::UserAction(name, parameters) {
27 if (particle_map.find(track->GetParentID()) != particle_map.end()) {
28 const int& parent_pdg{particle_map.at(track->GetParentID()).getPdgID()};
30 if (parent_pdg == parent) {
41DECLARE_ACTION(biasing::utility, DecayChildrenKeeper)
std::vector< int > parents_
The PDG IDs for which to keep decay children.
void PostUserTrackingAction(const G4Track *track) override
Method called when a track is done being processed.
DecayChildrenKeeper(const std::string &name, framework::config::Parameters ¶meters)
Constructor.
~DecayChildrenKeeper()
Destructor.
Class encapsulating parameters for configuring a processor.
T getParameter(const std::string &name) const
Retrieve the parameter of the given name.
const std::map< int, ldmx::SimParticle > & getCurrentParticleMap() const
Get the current particle map.