30 double Min_X = std::min_element(tstart, tend, [](
auto &lhs,
auto &rhs) {
return lhs.MinX() < rhs.MinX(); })->MinX();
31 double Min_Y = std::min_element(tstart, tend, [](
auto &lhs,
auto &rhs) {
return lhs.MinY() < rhs.MinY(); })->MinY();
32 double Min_Z = std::min_element(tstart, tend, [](
auto &lhs,
auto &rhs) {
return lhs.MinZ() < rhs.MinZ(); })->MinZ();
34 double Max_X = std::max_element(tstart, tend, [](
auto &lhs,
auto &rhs) {
return lhs.MaxX() < rhs.MaxX(); })->MaxX();
35 double Max_Y = std::max_element(tstart, tend, [](
auto &lhs,
auto &rhs) {
return lhs.MaxY() < rhs.MaxY(); })->MaxY();
36 double Max_Z = std::max_element(tstart, tend, [](
auto &lhs,
auto &rhs) {
return lhs.MaxZ() < rhs.MaxZ(); })->MaxZ();
47 if (vol.ContainsPosition(point))
return true;
59 if(!startInFiducial && !endInFiducial)
return true;
FiducialVolumeCosmicIdAlg(const core::ProviderManager &manager, const Config &config)
bool FiducialVolumeCosmicId(recob::Track track)
void reconfigure(const core::ProviderManager &manager, const Config &config)
fhicl::Table< Fiducial > FiducialCuts
process_name use argoneut_mc_hitfinder track
process_name opflashCryoW ana
bool InFiducial(geo::Point_t point)
const geo::GeometryCore * GetGeometryProvider() const
TPC_iterator begin_TPC() const
Returns an iterator pointing to the first TPC in the detector.
Interface to LArSoft services.
~FiducialVolumeCosmicIdAlg()
Point_t const & Vertex() const
IteratorBox< cryostat_iterator,&GeometryCore::begin_cryostat,&GeometryCore::end_cryostat > IterateCryostats() const
Enables ranged-for loops on all cryostats of the detector.
A base class aware of world box coordinatesAn object describing a simple shape can inherit from this ...
Point_t const & End() const
std::vector< geo::BoxBoundedGeo > fFiducialVolumes
Forward iterator browsing all geometry elements in the detector.
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
Track from a non-cascading particle.A recob::Track consists of a recob::TrackTrajectory, plus additional members relevant for a "fitted" track:
TPC_iterator end_TPC() const
Returns an iterator pointing after the last TPC in the detector.