![]() |
LArSoft
v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
|
Typedefs | |
template<typename Owner , typename Element , typename IterationPolicy > | |
using | element_iterator_for = geometry_element_iterator< Owner, Element, id_iterator< typename Element::ID_t, IterationPolicy >> |
template<typename Element > | |
using | element_sentinel_for = id_sentinel< typename Element::ID_t > |
template<typename LocalID , typename SiblingPolicy > | |
using | id_iterator = id_iterator_base< LocalID, LocalID, SiblingPolicy > |
template<typename Begin , typename End > | |
using | RangeType = decltype(ranges::make_subrange(std::declval< Begin >(), std::declval< End >())) |
template<std::size_t Index, typename ID > | |
using | AbsIDtype = typename AbsIDtypeStruct< ID, Index >::type |
Functions | |
template<typename Owner , typename Element , typename GEOIDITER > | |
bool | operator== (geometry_element_iterator< Owner, Element, GEOIDITER > const &a, geometry_element_iterator< Owner, Element, GEOIDITER > const &b) |
template<typename Owner , typename Element , typename GEOIDITER > | |
bool | operator!= (geometry_element_iterator< Owner, Element, GEOIDITER > const &a, geometry_element_iterator< Owner, Element, GEOIDITER > const &b) |
template<typename Owner , typename Element , typename GEOIDITER > | |
bool | operator== (geometry_element_iterator< Owner, Element, GEOIDITER > const &a, id_sentinel< typename Element::ID_t > const &b) |
template<typename Owner , typename Element , typename GEOIDITER > | |
bool | operator!= (geometry_element_iterator< Owner, Element, GEOIDITER > const &a, id_sentinel< typename Element::ID_t > const &b) |
template<typename Owner , typename Element , typename GEOIDITER > | |
bool | operator== (id_sentinel< typename Element::ID_t > const &a, geometry_element_iterator< Owner, Element, GEOIDITER > const &b) |
template<typename Owner , typename Element , typename GEOIDITER > | |
bool | operator!= (id_sentinel< typename Element::ID_t > const &a, geometry_element_iterator< Owner, Element, GEOIDITER > const &b) |
template<std::size_t Levels = 4U> | |
static std::array< unsigned int, Levels > | extractMaxGeometryElements (std::vector< CryostatGeo > const &Cryostats, WireReadoutGeom const &wireReadoutGeom) |
Extracts the maximum number of elements per type. More... | |
CryostatGeo const * | getElementPtr (GeometryCore const *geom, CryostatID const &id) |
TPCGeo const * | getElementPtr (GeometryCore const *geom, TPCID const &id) |
bool | validElement (GeometryCore const *geom, CryostatID const &id) |
bool | validElement (GeometryCore const *geom, TPCID const &id) |
template<typename ID > | |
id_sentinel (ID) -> id_sentinel< ID > | |
template<typename ID > | |
std::ostream & | operator<< (std::ostream &out, id_sentinel< ID > const &sentinel) |
template<typename LocalID , typename SiblingPolicy > | |
auto | iterator_for (LocalID const &id, SiblingPolicy const &siblingPolicy) |
template<typename GEOIT > | |
std::enable_if_t< has_geometry_id_iterator_tag< GEOIT >::value, std::ostream & > | operator<< (std::ostream &out, GEOIT const &it) |
template<typename ID , typename IterationPolicy > | |
void | IncrementID (ID &id, IterationPolicy const &policy) |
template<typename GeoID , typename IterationPolicy > | |
GeoID | GetNextID (GeoID const &id, IterationPolicy const &policy) |
Returns the ID next to the specified one. More... | |
template<typename LocalID , typename GeoID , typename IterationPolicy > | |
bool | operator== (id_iterator_base< LocalID, GeoID, IterationPolicy > const &a, id_iterator_base< LocalID, GeoID, IterationPolicy > const &b) |
template<typename LocalID , typename GeoID , typename IterationPolicy > | |
bool | operator!= (id_iterator_base< LocalID, GeoID, IterationPolicy > const &a, id_iterator_base< LocalID, GeoID, IterationPolicy > const &b) |
template<typename LocalID , typename GeoID , typename IterationPolicy > | |
bool | operator== (id_iterator_base< LocalID, GeoID, IterationPolicy > const &a, id_sentinel< LocalID > const &b) |
template<typename LocalID , typename GeoID , typename IterationPolicy > | |
bool | operator!= (id_iterator_base< LocalID, GeoID, IterationPolicy > const &a, id_sentinel< LocalID > const &b) |
template<typename LocalID , typename GeoID , typename IterationPolicy > | |
bool | operator== (id_sentinel< LocalID > const &a, id_iterator_base< LocalID, GeoID, IterationPolicy > const &b) |
template<typename LocalID , typename GeoID , typename IterationPolicy > | |
bool | operator!= (id_sentinel< LocalID > const &a, id_iterator_base< LocalID, GeoID, IterationPolicy > const &b) |
template<typename LocalID > | |
bool | operator== (id_sentinel< LocalID > const &a, id_sentinel< LocalID > const &b) |
template<typename LocalID > | |
bool | operator!= (id_sentinel< LocalID > const &a, id_sentinel< LocalID > const &b) |
std::string | maybe_default_detector_name (fhicl::ParameterSet const &pset, std::string const &filename) |
PlaneGeo const * | getElementPtr (WireReadoutGeom const *wireReadoutGeom, PlaneID const &id) |
WireGeo const * | getElementPtr (WireReadoutGeom const *wireReadoutGeom, WireID const &id) |
bool | validElement (WireReadoutGeom const *wireReadoutGeom, PlaneID const &id) |
bool | validElement (WireReadoutGeom const *wireReadoutGeom, WireID const &id) |
template<> | |
readout::TPCsetID | ReadoutIterationPolicy::GetEndID< readout::TPCsetID > () const |
template<> | |
readout::TPCsetID | ReadoutIterationPolicy::GetEndID< readout::TPCsetID, CryostatID > (CryostatID const &id) const |
template<> | |
readout::ROPID | ReadoutIterationPolicy::GetEndID< readout::ROPID > () const |
template<> | |
readout::ROPID | ReadoutIterationPolicy::GetEndID< readout::ROPID, CryostatID > (CryostatID const &id) const |
template<> | |
readout::ROPID | ReadoutIterationPolicy::GetEndID< readout::ROPID, readout::TPCsetID > (readout::TPCsetID const &id) const |
template<std::size_t N, typename T > | |
auto | initializerListToArray (std::initializer_list< T > values) |
Returns a STL array of size N filled with values from the argument. More... | |
template<typename T > | |
std::string | writeToString (T const &value) |
Write the argument into a string. More... | |
template<typename T > | |
constexpr auto | index_impl (std::size_t &index) |
template<typename T > | |
constexpr auto const | index_for () |
template<std::size_t Index, typename ID > | |
constexpr auto | getAbsIDindex (ID const &id) |
template<std::size_t Index, typename ID > | |
auto & | getAbsIDindex (ID &id) |
Variables | |
constexpr CryostatID | cryostat_zero {0} |
constexpr TPCID | tpc_zero {cryostat_zero, 0} |
template<typename ID > | |
constexpr bool | isTopGeoElementID = !has_parent<ID>::value |
Whether ID represents an element on top of the hierarchy. More... | |
using geo::details::AbsIDtype = typedef typename AbsIDtypeStruct<ID, Index>::type |
Definition at line 59 of file geo_types.h.
using geo::details::element_iterator_for = typedef geometry_element_iterator<Owner, Element, id_iterator<typename Element::ID_t, IterationPolicy>> |
Definition at line 120 of file element_iterators.h.
using geo::details::element_sentinel_for = typedef id_sentinel<typename Element::ID_t> |
Definition at line 123 of file element_iterators.h.
using geo::details::id_iterator = typedef id_iterator_base<LocalID, LocalID, SiblingPolicy> |
Definition at line 233 of file id_iterators.h.
using geo::details::RangeType = typedef decltype(ranges::make_subrange(std::declval<Begin>(), std::declval<End>())) |
Definition at line 52 of file Iterable.h.
|
static |
Extracts the maximum number of elements per type.
Levels | the number of detector elements to discover |
Cryostats | the sorted list of cryostats in the detector |
The returned array includes:
[0]
: number of cryostats[1]
: maximum number of TPCs in any of the cryostats (enabled only if Levels
is 2
or higher)[2]
: maximum number of wire planes in any of the TPCs (enabled only if Levels
is 3
or higher)[3]
: maximum number of wires in any of the wire planes (enabled only if Levels
is 4
) constexpr auto geo::details::getAbsIDindex | ( | ID const & | id | ) |
Definition at line 62 of file geo_types.h.
auto& geo::details::getAbsIDindex | ( | ID & | id | ) |
Definition at line 72 of file geo_types.h.
CryostatGeo const * geo::details::getElementPtr | ( | GeometryCore const * | geom, |
CryostatID const & | id | ||
) |
Definition at line 38 of file GeometryIterationPolicy.cxx.
References geo::GeometryCore::GetElementPtr().
Referenced by geo::details::geometry_element_iterator< Owner, Element, GEOIDITER >::get(), geo::details::GeometryIterationPolicy::GetEndID(), ReadoutIterationPolicy::GetEndID< readout::ROPID, readout::TPCsetID >(), and validElement().
TPCGeo const * geo::details::getElementPtr | ( | GeometryCore const * | geom, |
TPCID const & | id | ||
) |
Definition at line 44 of file GeometryIterationPolicy.cxx.
References geo::GeometryCore::GetElementPtr().
PlaneGeo const * geo::details::getElementPtr | ( | WireReadoutGeom const * | wireReadoutGeom, |
PlaneID const & | id | ||
) |
Definition at line 101 of file ReadoutIterationPolicy.cxx.
References geo::WireReadoutGeom::PlanePtr().
WireGeo const * geo::details::getElementPtr | ( | WireReadoutGeom const * | wireReadoutGeom, |
WireID const & | id | ||
) |
Definition at line 107 of file ReadoutIterationPolicy.cxx.
References geo::WireReadoutGeom::WirePtr().
GeoID geo::details::GetNextID | ( | GeoID const & | id, |
IterationPolicy const & | policy | ||
) |
Returns the ID next to the specified one.
GeoID | type of the ID to be returned |
id | the element ID to be incremented |
id
Definition at line 285 of file id_iterators.h.
References IncrementID().
Referenced by geo::details::ReadoutIterationPolicy::EndPlaneID(), geo::details::ReadoutIterationPolicy::EndROPID(), geo::details::GeometryIterationPolicy::EndTPCID(), geo::details::ReadoutIterationPolicy::EndTPCsetID(), and geo::details::ReadoutIterationPolicy::EndWireID().
geo::details::id_sentinel | ( | ID | ) | -> id_sentinel< ID > |
void geo::details::IncrementID | ( | ID & | id, |
IterationPolicy const & | policy | ||
) |
Sets the ID to the ID after the specified one.
Definition at line 266 of file id_iterators.h.
Referenced by GetNextID().
constexpr auto const geo::details::index_for | ( | ) |
Definition at line 48 of file geo_types.h.
Referenced by art::TriggerNamesService::getTrigPath(), art::TriggerNamesService::getTrigPathModules(), art::Suffixes::mfPlugin(), art::Suffixes::mfStatsPlugin(), art::Suffixes::module(), art::Path::Path(), art::Suffixes::plugin(), art::Suffixes::service(), art::Suffixes::source(), and art::Suffixes::tool().
constexpr auto geo::details::index_impl | ( | std::size_t & | index | ) |
Definition at line 42 of file geo_types.h.
auto geo::details::initializerListToArray | ( | std::initializer_list< T > | values | ) |
Returns a STL array of size N
filled with values
from the argument.
Definition at line 391 of file GeometryIDmapper.h.
auto geo::details::iterator_for | ( | LocalID const & | id, |
SiblingPolicy const & | siblingPolicy | ||
) |
Definition at line 236 of file id_iterators.h.
References geo::details::id_sentinel< ID >::id.
Referenced by geo::Iterable< details::ReadoutIterationPolicy, details::ToReadoutGeometryElement >::begin().
std::string geo::details::maybe_default_detector_name | ( | fhicl::ParameterSet const & | pset, |
std::string const & | filename | ||
) |
Definition at line 8 of file maybe_default_detector_name.cxx.
References fhicl::ParameterSet::get_if_present().
Referenced by geo::AuxDetGeometryCore::AuxDetGeometryCore(), and geo::GeometryCore::GeometryCore().
bool geo::details::operator!= | ( | geometry_element_iterator< Owner, Element, GEOIDITER > const & | a, |
geometry_element_iterator< Owner, Element, GEOIDITER > const & | b | ||
) |
Definition at line 134 of file element_iterators.h.
bool geo::details::operator!= | ( | geometry_element_iterator< Owner, Element, GEOIDITER > const & | a, |
id_sentinel< typename Element::ID_t > const & | b | ||
) |
Definition at line 148 of file element_iterators.h.
bool geo::details::operator!= | ( | id_sentinel< typename Element::ID_t > const & | a, |
geometry_element_iterator< Owner, Element, GEOIDITER > const & | b | ||
) |
Definition at line 162 of file element_iterators.h.
bool geo::details::operator!= | ( | id_iterator_base< LocalID, GeoID, IterationPolicy > const & | a, |
id_iterator_base< LocalID, GeoID, IterationPolicy > const & | b | ||
) |
Definition at line 301 of file id_iterators.h.
bool geo::details::operator!= | ( | id_iterator_base< LocalID, GeoID, IterationPolicy > const & | a, |
id_sentinel< LocalID > const & | b | ||
) |
Definition at line 315 of file id_iterators.h.
bool geo::details::operator!= | ( | id_sentinel< LocalID > const & | a, |
id_iterator_base< LocalID, GeoID, IterationPolicy > const & | b | ||
) |
Definition at line 329 of file id_iterators.h.
bool geo::details::operator!= | ( | id_sentinel< LocalID > const & | a, |
id_sentinel< LocalID > const & | b | ||
) |
Definition at line 342 of file id_iterators.h.
std::ostream& geo::details::operator<< | ( | std::ostream & | out, |
id_sentinel< ID > const & | sentinel | ||
) |
Definition at line 25 of file id_iterators.h.
References geo::details::id_sentinel< ID >::id.
std::enable_if_t<has_geometry_id_iterator_tag<GEOIT>::value, std::ostream&> geo::details::operator<< | ( | std::ostream & | out, |
GEOIT const & | it | ||
) |
Definition at line 250 of file id_iterators.h.
bool geo::details::operator== | ( | geometry_element_iterator< Owner, Element, GEOIDITER > const & | a, |
geometry_element_iterator< Owner, Element, GEOIDITER > const & | b | ||
) |
Definition at line 127 of file element_iterators.h.
References geo::details::geometry_element_iterator< Owner, Element, GEOIDITER >::id_iterator().
bool geo::details::operator== | ( | geometry_element_iterator< Owner, Element, GEOIDITER > const & | a, |
id_sentinel< typename Element::ID_t > const & | b | ||
) |
Definition at line 141 of file element_iterators.h.
References geo::details::geometry_element_iterator< Owner, Element, GEOIDITER >::id_iterator().
bool geo::details::operator== | ( | id_sentinel< typename Element::ID_t > const & | a, |
geometry_element_iterator< Owner, Element, GEOIDITER > const & | b | ||
) |
Definition at line 155 of file element_iterators.h.
References geo::details::geometry_element_iterator< Owner, Element, GEOIDITER >::id_iterator().
bool geo::details::operator== | ( | id_iterator_base< LocalID, GeoID, IterationPolicy > const & | a, |
id_iterator_base< LocalID, GeoID, IterationPolicy > const & | b | ||
) |
Definition at line 294 of file id_iterators.h.
References geo::details::id_iterator_base< LocalID, GEOID, IterationPolicy >::localID().
bool geo::details::operator== | ( | id_iterator_base< LocalID, GeoID, IterationPolicy > const & | a, |
id_sentinel< LocalID > const & | b | ||
) |
Definition at line 308 of file id_iterators.h.
References geo::details::id_sentinel< ID >::id, and geo::details::id_iterator_base< LocalID, GEOID, IterationPolicy >::localID().
bool geo::details::operator== | ( | id_sentinel< LocalID > const & | a, |
id_iterator_base< LocalID, GeoID, IterationPolicy > const & | b | ||
) |
Definition at line 322 of file id_iterators.h.
References geo::details::id_sentinel< ID >::id, and geo::details::id_iterator_base< LocalID, GEOID, IterationPolicy >::localID().
bool geo::details::operator== | ( | id_sentinel< LocalID > const & | a, |
id_sentinel< LocalID > const & | b | ||
) |
Definition at line 336 of file id_iterators.h.
References geo::details::id_sentinel< ID >::id.
|
inline |
Definition at line 108 of file ReadoutIterationPolicy.h.
References geo::details::ReadoutIterationPolicy::EndROPID().
|
inline |
Definition at line 114 of file ReadoutIterationPolicy.h.
References geo::details::ReadoutIterationPolicy::EndROPID().
|
inline |
Definition at line 121 of file ReadoutIterationPolicy.h.
References geo::details::ReadoutIterationPolicy::EndROPID(), getElementPtr(), and validElement().
|
inline |
Definition at line 94 of file ReadoutIterationPolicy.h.
References geo::details::ReadoutIterationPolicy::EndTPCsetID().
|
inline |
Definition at line 100 of file ReadoutIterationPolicy.h.
References geo::details::ReadoutIterationPolicy::EndTPCsetID().
bool geo::details::validElement | ( | GeometryCore const * | geom, |
CryostatID const & | id | ||
) |
Definition at line 50 of file GeometryIterationPolicy.cxx.
References getElementPtr().
Referenced by geo::details::GeometryIterationPolicy::GetEndID(), geo::details::geometry_element_iterator< Owner, Element, GEOIDITER >::operator bool(), and ReadoutIterationPolicy::GetEndID< readout::ROPID, readout::TPCsetID >().
bool geo::details::validElement | ( | GeometryCore const * | geom, |
TPCID const & | id | ||
) |
Definition at line 55 of file GeometryIterationPolicy.cxx.
References getElementPtr().
bool geo::details::validElement | ( | WireReadoutGeom const * | wireReadoutGeom, |
PlaneID const & | id | ||
) |
Definition at line 113 of file ReadoutIterationPolicy.cxx.
References getElementPtr().
bool geo::details::validElement | ( | WireReadoutGeom const * | wireReadoutGeom, |
WireID const & | id | ||
) |
Definition at line 118 of file ReadoutIterationPolicy.cxx.
References getElementPtr().
|
inline |
Write the argument into a string.
Definition at line 627 of file geo_types.h.
References value.
Referenced by geo::OpDetID::first(), geo::TPCID::first(), geo::PlaneID::first(), geo::WireID::first(), geo::CryostatID::markInvalid(), and readout::details::writeToString().
|
inline |
Definition at line 7 of file ZeroIDs.h.
Referenced by geo::GeometryCore::GetElementPtr(), and geo::GeometryCore::HasElement().
constexpr bool geo::details::isTopGeoElementID = !has_parent<ID>::value |
Whether ID
represents an element on top of the hierarchy.
Definition at line 39 of file geo_types.h.
|
inline |
Definition at line 8 of file ZeroIDs.h.
Referenced by geo::WireReadoutGeom::HasElement().