51 auto const& geom = *(lar::providerFrom<geo::Geometry>());
55 auto allmclists = evt.
getMany<std::vector<simb::MCTruth>>();
57 bool inCryostatNu =
false;
58 for (
auto const& mclistHandle : allmclists) {
62 for (
int ipart = 0; ipart < mct.NParticles(); ipart++) {
63 auto const& part = mct.GetParticle(ipart);
64 auto const absPDGID =
std::abs(part.PdgCode());
65 if (absPDGID == 12 || absPDGID == 14 || absPDGID == 16) {
66 const TLorentzVector& end4 = part.EndPosition();
67 if (geom.PositionToCryostatPtr({end4.X(), end4.Y(), end4.Z()}) !=
art framework interface to geometry description
#define DEFINE_ART_MODULE(klass)
std::vector< Handle< PROD > > getMany(SelectorBase const &selector=MatchAllSelector{}) const
FilterCryostatNus(fhicl::ParameterSet const &pset)
bool filter(art::Event &) override
EDFilter(fhicl::ParameterSet const &pset)
Access the description of detector geometry.
Event generator information.