22 #include "GENIE/Framework/GHEP/GHepStatus.h" 73 unsigned int ntruths = truthcol->size();
75 for(
unsigned int itruth = 0; itruth < ntruths; ++itruth){
77 unsigned int nparts = truthcol->at(itruth).NParticles();
87 if( (particle.
PdgCode() == 2000000200 ||
88 particle.
PdgCode() == 2000000201 ||
89 particle.
PdgCode() == 2000000202) &&
97 bool foundDaughter =
false;
99 for(
unsigned int jpart = 0; jpart <
nparts; ++jpart){
102 foundDaughter =
true;
bool filter(art::Event &e) override
void reconfigure(const fhicl::ParameterSet &pset)
static constexpr bool Pass
GENIEFilter & operator=(GENIEFilter const &)=delete
DEFINE_ART_MODULE(TestTMapFile)
GENIEFilter(fhicl::ParameterSet const &p)
static constexpr bool Fail
This class describes a particle created in the detector Monte Carlo simulation.
bool getByToken(ProductToken< PROD > const &token, Handle< PROD > &result) const
Module to generate only pions from cosmic rays.
ProductToken< T > consumes(InputTag const &)
const art::ProductToken< std::vector< simb::MCTruth > > fGENIEToken