10 #ifndef LAREXAMPLES_ALGORITHMS_REMOVEISOLATEDSPACEPOINTS_SPACEPOINTISOLATIONALG_H
11 #define LAREXAMPLES_ALGORITHMS_REMOVEISOLATEDSPACEPOINTS_SPACEPOINTISOLATIONALG_H
20 #include "cetlib/pow.h"
21 #include "fhiclcpp/types/Comment.h"
22 #include "fhiclcpp/types/Name.h"
23 #include "fhiclcpp/types/Atom.h"
24 #include "fhiclcpp/types/Table.h"
25 #include "fhiclcpp/ParameterSet.h"
29 #include <type_traits>
34 namespace geo {
class GeometryCore; }
119 Comment(
"the radius for the isolation [cm]")
135 :
radius2(cet::square(config.radius()))
181 template <
typename Po
intIter>
182 std::vector<size_t> removeIsolatedPoints
183 (PointIter
begin, PointIter
end)
const
187 "iterator does not point to recob::SpacePoint"
199 std::vector<size_t> removeIsolatedPoints
200 (std::vector<recob::SpacePoint>
const& points)
const
201 {
return removeIsolatedPoints(points.begin(), points.end()); }
207 using PointIsolationAlg_t = PointIsolationAlg<Coord_t>;
222 (PointIsolationAlg_t::Configuration_t& config);
259 #endif // LAREXAMPLES_ALGORITHMS_REMOVEISOLATEDSPACEPOINTS_SPACEPOINTISOLATIONALG_H
then source grid fermiapp products dune setup_dune_fermiapp sh exit else echo No setup file found exit fi setup
SpacePointIsolationAlg(fhicl::ParameterSet const &pset)
Constructor with configuration validation.
Coord_t radius2
square of isolation radius [cm^2]
const geo::GeometryCore * geometry
std::decay_t< decltype(recob::SpacePoint().XYZ()[0])> Coord_t
Type of coordinate in recob::SpacePoint (double in LArSoft 5)
fhicl::Atom< double > radius
void initialize()
Initialises the algorithm with the current configuration and setup.
Algorithm to detect isolated space points.
void fillAlgConfigFromGeometry(PointIsolationAlg_t::Configuration_t &config)
Detects the boundaries of the volume to be sorted from the geometry.
std::unique_ptr< PointIsolationAlg_t > isolationAlg
the actual generic algorithm
auto end(FixedBins< T, C > const &) noexcept
BEGIN_PROLOG vertical distance to the surface Name
const Double32_t * XYZ() const
Description of geometry of one entire detector.
auto begin(FixedBins< T, C > const &) noexcept
Algorithm(s) dealing with point isolation in space.
SpacePointIsolationAlg(Config const &config)
Constructor with configuration validation.
geo::GeometryCore const * geom
Pointer to the geometry to be used.