16 #include "cetlib_except/exception.h"
30 PointIsolationAlg_t::Configuration_t config;
37 PointIsolationAlg_t::validateConfiguration(config);
39 catch (std::runtime_error
const&
e) {
40 throw cet::exception(
"SpacePointIsolationAlg")
41 <<
"Error in PointIsolationAlg configuration: " << e.what() <<
"\n";
45 else isolationAlg = std::make_unique<PointIsolationAlg_t>(config);
51 (PointIsolationAlg_t::Configuration_t& config)
54 auto iTPC = geom->begin_TPC(), tpcend = geom->end_TPC();
62 config.rangeX = { box.
MinX(), box.
MaxX() };
63 config.rangeY = { box.
MinY(), box.
MaxY() };
64 config.rangeZ = { box.
MinZ(), box.
MaxZ() };
Coord_t radius2
square of isolation radius [cm^2]
double MinX() const
Returns the world x coordinate of the start of the box.
double MaxX() const
Returns the world x coordinate of the end of the box.
void initialize()
Initialises the algorithm with the current configuration and setup.
Access the description of detector geometry.
Algorithm(s) dealing with space point isolation in space.
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
double MinZ() const
Returns the world z coordinate of the start of the box.
double MaxY() const
Returns the world y coordinate of the end of the box.
A base class aware of world box coordinatesAn object describing a simple shape can inherit from this ...
double MaxZ() const
Returns the world z coordinate of the end of the box.
void ExtendToInclude(Coord_t x, Coord_t y, Coord_t z)
Extends the current box to also include the specified point.
double MinY() const
Returns the world y coordinate of the start of the box.