19 #include "nug4/ParticleNavigation/ParticleList.h" 58 const sim::ParticleList& Particles = pi_serv->
ParticleList();
59 std::vector<const simb::MCParticle*> pvec;
60 pvec.reserve(Particles.size());
61 for (
const auto& PartPair: Particles) {
62 pvec.push_back(PartPair.second);
66 bool pdgDesired(
false);
67 for(
unsigned int i = 0; i < pvec.size(); ++i)
75 for(
unsigned int s = 0;
s < pvec[i]->Process().length(); ++
s)
76 *(tProcess+
s) = pvec[i]->Process()[
s];
78 if (!sProcess.compare(sprim))
80 mf::LogInfo(
"FilterPrimaryPDG") <<
" Found a primary " <<
pdg <<
" in event.";
bool filter(art::Event &) override
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
art framework interface to geometry description
FilterPrimaryPDG(fhicl::ParameterSet const &pset)
int PdgCode(Resonance_t res, int Q)
(resonance id, charge) -> PDG code
#define DEFINE_ART_MODULE(klass)
std::vector< int > fPrimaryVec
const sim::ParticleList & ParticleList() const
std::string fG4ModuleLabel
EDFilter(fhicl::ParameterSet const &pset)
Tools and modules for checking out the basics of the Monte Carlo.