Algorithm to detect isolated space points. More...
#include <SpacePointIsolationAlg.h>
Classes | |
struct | Config |
Algorithm configuration. More... | |
Public Types | |
using | Coord_t = std::decay_t< decltype(recob::SpacePoint().XYZ()[0])> |
Type of coordinate in recob::SpacePoint (double in LArSoft 5) More... | |
Public Member Functions | |
template<typename PointIter > | |
std::vector< size_t > | removeIsolatedPoints (PointIter begin, PointIter end) const |
Returns the set of reconstructed 3D points that are not isolated. More... | |
std::vector< size_t > | removeIsolatedPoints (std::vector< recob::SpacePoint > const &points) const |
Returns the set of reconstructed 3D points that are not isolated. More... | |
Construction and configuration | |
SpacePointIsolationAlg (Config const &config) | |
Constructor with configuration validation. More... | |
SpacePointIsolationAlg (fhicl::ParameterSet const &pset) | |
Constructor with configuration validation. More... | |
Set up | |
void | setup (geo::GeometryCore const &geometry) |
Sets up the algorithm. More... | |
Private Types | |
using | PointIsolationAlg_t = PointIsolationAlg< Coord_t > |
Type of isolation algorithm. More... | |
Private Member Functions | |
void | initialize () |
Initialises the algorithm with the current configuration and setup. More... | |
void | fillAlgConfigFromGeometry (PointIsolationAlg_t::Configuration_t &config) |
Detects the boundaries of the volume to be sorted from the geometry. More... | |
Private Attributes | |
geo::GeometryCore const * | geom = nullptr |
Pointer to the geometry to be used. More... | |
Coord_t | radius2 |
square of isolation radius [cm^2] More... | |
std::unique_ptr< PointIsolationAlg_t > | isolationAlg |
the actual generic algorithm More... | |
Algorithm to detect isolated space points.
This algorithm applies the isolation algorithm implemented in PointIsolationAlg
to a collection of recob::SpacePoint
objects.
Definition at line 104 of file SpacePointIsolationAlg.h.
using lar::example::SpacePointIsolationAlg::Coord_t = std::decay_t<decltype(recob::SpacePoint().XYZ()[0])> |
Type of coordinate in recob::SpacePoint (double
in LArSoft 5)
Definition at line 108 of file SpacePointIsolationAlg.h.
|
private |
Type of isolation algorithm.
Definition at line 207 of file SpacePointIsolationAlg.h.
|
inline |
Constructor with configuration validation.
config | configuration parameter structure |
For the configuration, see SpacePointIsolationAlg
documentation.
Definition at line 134 of file SpacePointIsolationAlg.h.
|
inline |
Constructor with configuration validation.
pset | FHiCL configuration parameter set |
Translates the parameter set into a configuration object and uses the validating constructor to initialise the object.
For the configuration, see SpacePointIsolationAlg
documentation.
Definition at line 148 of file SpacePointIsolationAlg.h.
|
private |
Detects the boundaries of the volume to be sorted from the geometry.
Definition at line 51 of file SpacePointIsolationAlg.cxx.
|
private |
Initialises the algorithm with the current configuration and setup.
Definition at line 28 of file SpacePointIsolationAlg.cxx.
|
inline |
Returns the set of reconstructed 3D points that are not isolated.
PointIter | random access iterator to a space point |
begin | iterator to the first point to be considered |
end | iterator after the last point to be considered |
This method can use iterators from any collection of input space points.
Definition at line 183 of file SpacePointIsolationAlg.h.
|
inline |
Returns the set of reconstructed 3D points that are not isolated.
points | list of the reconstructed space points |
Definition at line 200 of file SpacePointIsolationAlg.h.
|
inline |
Sets up the algorithm.
geometry | the geometry service provider |
Acquires the geometry description. This method must be called every time the geometry is changed.
Definition at line 164 of file SpacePointIsolationAlg.h.
|
private |
Pointer to the geometry to be used.
Definition at line 210 of file SpacePointIsolationAlg.h.
|
private |
the actual generic algorithm
Definition at line 215 of file SpacePointIsolationAlg.h.
|
private |
square of isolation radius [cm^2]
Definition at line 212 of file SpacePointIsolationAlg.h.