9 #include "canvas/Persistency/Common/FindManyP.h" 13 fSpacePointLabel(pset.
get<
std::
string>(
"SpacePointLabel",
"reco3d")),
14 fNHitsThreshold(pset.
get<unsigned
int>(
"NHitsThreshold",10)),
26 std::vector<art::Ptr<recob::SpacePoint>> spacePoints;
27 if(spacePointHandle.isValid())
34 unsigned int nBeamRegionSpacePoints{0};
37 const double *xyz{sp->XYZ()};
39 if(xyz[0] < minValues.at(0) || xyz[0] > maxValues.at(0))
continue;
40 if(xyz[1] < minValues.at(1) || xyz[1] > maxValues.at(1))
continue;
41 if(xyz[2] < minValues.at(2) || xyz[2] > maxValues.at(2))
continue;
43 ++nBeamRegionSpacePoints;
unsigned int fNHitsThreshold
std::vector< float > fMaxCoordsSim
std::string fSpacePointLabel
std::vector< float > fMinCoordsData
bool IsEmptyEvent(const art::Event &evt) const
std::vector< float > fMaxCoordsData
std::vector< float > fMinCoordsSim
ValidHandle< PROD > getValidHandle(InputTag const &tag) const
auto const & get(AssnsNode< L, R, D > const &r)
void fill_ptr_vector(std::vector< Ptr< T >> &ptrs, H const &h)
ProtoDUNEEmptyEventFinder(const fhicl::ParameterSet &pset)