83 Comment(
"the space points to be filtered")
88 Comment(
"settings for the isolation algorithm")
125 produces<std::vector<recob::SpacePoint>>();
135 auto spacePointHandle
141 auto const* geom = lar::providerFrom<geo::Geometry>();
150 std::vector<size_t> socialPointIndices
156 auto socialSpacePoints = std::make_unique<std::vector<recob::SpacePoint>>();
158 socialSpacePoints->reserve(socialPointIndices.size());
159 for (
size_t index: socialPointIndices)
163 <<
"Found " << socialSpacePoints->size() <<
"/" <<
spacePoints.size()
166 event.put(std::move(socialSpacePoints));
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
fhicl::Table< SpacePointIsolationAlg::Config > isolation
void setup(geo::GeometryCore const &geometry)
Sets up the algorithm.
art::InputTag spacePointsLabel
label of the input data product
Module configuration data.
art module: removes isolated space points.
Algorithm(s) dealing with space point isolation in space.
Algorithm to detect isolated space points.
#define DEFINE_ART_MODULE(klass)
SpacePointIsolationAlg isolAlg
instance of the algorithm
RemoveIsolatedSpacePoints(Parameters const &config)
Constructor; see the class documentation for the configuration.
fhicl::Atom< art::InputTag > spacePoints
std::vector< size_t > removeIsolatedPoints(PointIter begin, PointIter end) const
Returns the set of reconstructed 3D points that are not isolated.
LArSoft-specific namespace.
virtual void produce(art::Event &event) override
art framework interface to geometry description
Event finding and building.