82 tend = geometry->
end_TPC(cryo.ID());
83 std::vector<geo::BoxBoundedGeo> this_tpc_volumes;
84 while (iTPC != tend) {
100 for (
const std::vector<geo::BoxBoundedGeo> &tpcs:
fTPCVolumes) {
101 double XMin = std::min_element(tpcs.begin(), tpcs.end(), [](
auto &lhs,
auto &rhs) {
return lhs.MinX() < rhs.MinX(); })->MinX();
102 double YMin = std::min_element(tpcs.begin(), tpcs.end(), [](
auto &lhs,
auto &rhs) {
return lhs.MinY() < rhs.MinY(); })->MinY();
103 double ZMin = std::min_element(tpcs.begin(), tpcs.end(), [](
auto &lhs,
auto &rhs) {
return lhs.MinZ() < rhs.MinZ(); })->MinZ();
105 double XMax = std::max_element(tpcs.begin(), tpcs.end(), [](
auto &lhs,
auto &rhs) {
return lhs.MaxX() < rhs.MaxX(); })->MaxX();
106 double YMax = std::max_element(tpcs.begin(), tpcs.end(), [](
auto &lhs,
auto &rhs) {
return lhs.MaxY() < rhs.MaxY(); })->MaxY();
107 double ZMax = std::max_element(tpcs.begin(), tpcs.end(), [](
auto &lhs,
auto &rhs) {
return lhs.MaxZ() < rhs.MaxZ(); })->MaxZ();
const geo::GeometryCore * geometry
std::vector< geo::BoxBoundedGeo > fFiducialVolumes
Geometry information for a single TPC.
geo::BoxBoundedGeo const & ActiveBoundingBox() const
Returns the box of the active volume of this TPC.
std::vector< geo::BoxBoundedGeo > fActiveVolumes
std::vector< std::vector< geo::BoxBoundedGeo > > fTPCVolumes
TPC_iterator begin_TPC() const
Returns an iterator pointing to the first TPC in the detector.
Description of geometry of one entire detector.
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 ...
Forward iterator browsing all geometry elements in the detector.
unsigned fNumberTimeSamples
TPC_iterator end_TPC() const
Returns an iterator pointing after the last TPC in the detector.