![]() |
LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
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.
References geo::GeometryCore::begin_TPC(), geo::GeometryCore::end_TPC(), geo::BoxBoundedGeo::ExtendToInclude(), geom, geo::BoxBoundedGeo::MaxX(), geo::BoxBoundedGeo::MaxY(), geo::BoxBoundedGeo::MaxZ(), geo::BoxBoundedGeo::MinX(), geo::BoxBoundedGeo::MinY(), geo::BoxBoundedGeo::MinZ(), lar::example::PointIsolationAlg< Coord >::Configuration_t::rangeX, lar::example::PointIsolationAlg< Coord >::Configuration_t::rangeY, and lar::example::PointIsolationAlg< Coord >::Configuration_t::rangeZ.
Referenced by initialize().
|
private |
Initialises the algorithm with the current configuration and setup.
Definition at line 28 of file SpacePointIsolationAlg.cxx.
References e, fillAlgConfigFromGeometry(), isolationAlg, lar::example::PointIsolationAlg< Coord >::Configuration_t::radius2, radius2, and lar::example::PointIsolationAlg< Coord >::validateConfiguration().
|
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.
References fhicl::detail::atom::value().
Referenced by lar::example::RemoveIsolatedSpacePoints::produce().
|
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.
Referenced by lar::example::RemoveIsolatedSpacePoints::produce().
|
private |
Pointer to the geometry to be used.
Definition at line 210 of file SpacePointIsolationAlg.h.
Referenced by fillAlgConfigFromGeometry().
|
private |
the actual generic algorithm
Definition at line 215 of file SpacePointIsolationAlg.h.
Referenced by initialize().
|
private |
square of isolation radius [cm^2]
Definition at line 212 of file SpacePointIsolationAlg.h.
Referenced by initialize().