10 #ifndef LAREXAMPLES_ALGORITHMS_REMOVEISOLATEDSPACEPOINTS_SPACEPOINTISOLATIONALG_H 11 #define LAREXAMPLES_ALGORITHMS_REMOVEISOLATEDSPACEPOINTS_SPACEPOINTISOLATIONALG_H 20 #include "cetlib/pow.h" 29 #include <type_traits> 34 namespace geo {
class GeometryCore; }
119 Comment(
"the radius for the isolation [cm]")
165 { geom = &geometry; initialize(); }
181 template <
typename Po
intIter>
182 std::vector<size_t> removeIsolatedPoints
187 "iterator does not point to recob::SpacePoint" 189 return isolationAlg->removeIsolatedPoints(begin, end);
199 std::vector<size_t> removeIsolatedPoints
200 (std::vector<recob::SpacePoint>
const& points)
const 201 {
return removeIsolatedPoints(points.begin(), points.end()); }
221 void fillAlgConfigFromGeometry
259 #endif // LAREXAMPLES_ALGORITHMS_REMOVEISOLATEDSPACEPOINTS_SPACEPOINTISOLATIONALG_H Algorithm to detect isolated space points.
SpacePointIsolationAlg(fhicl::ParameterSet const &pset)
Constructor with configuration validation.
Coord_t radius2
square of isolation radius [cm^2]
Reconstruction base classes.
std::decay_t< decltype(recob::SpacePoint().XYZ()[0])> Coord_t
Type of coordinate in recob::SpacePoint (double in LArSoft 5)
void setup(geo::GeometryCore const &geometry)
Sets up the algorithm.
Algorithm to detect isolated space points.
std::unique_ptr< PointIsolationAlg_t > isolationAlg
the actual generic algorithm
Type containing all configuration parameters of the algorithm.
std::vector< evd::details::RawDigitInfo_t >::const_iterator begin(RawDigitCacheDataClass const &cache)
const Double32_t * XYZ() const
Description of geometry of one entire detector.
Algorithm(s) dealing with point isolation in space.
std::string value(boost::any const &)
LArSoft-specific namespace.
std::vector< evd::details::RawDigitInfo_t >::const_iterator end(RawDigitCacheDataClass const &cache)
Namespace collecting geometry-related classes utilities.
SpacePointIsolationAlg(Config const &config)
Constructor with configuration validation.