LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
geo::details Namespace Reference

Classes

struct  ActiveAreaCalculator
 Class computing the active area of the plane. More...
 
struct  Comparer
 Class managing comparisons between T objects via a Key key. More...
 
class  cryostat_id_iterator_base
 Base forward iterator browsing all cryostat IDs in the detector. More...
 
class  geometry_element_iterator
 Forward iterator browsing all geometry elements in the detector. More...
 
class  geometry_iterator_base
 Base class for geometry iterators (note: this is not an iterator) More...
 
class  geometry_iterator_types
 Base class for geometry iterators, containing some type definitions. More...
 
class  plane_id_iterator_base
 Base forward iterator browsing all plane IDs in the detector. More...
 
class  ROP_id_iterator_base
 Base forward iterator browsing all readout plane IDs in the detector. More...
 
class  TPC_id_iterator_base
 Base forward iterator browsing all TPC IDs in the detector. More...
 
class  TPCset_id_iterator_base
 Base forward iterator browsing all TPC set IDs in the detector. More...
 
class  wire_id_iterator_base
 Base forward iterator browsing all wire IDs in the detector. More...
 

Functions

template<typename T >
auto static_less (T a, T b)
 Function translation of std::less. More...
 
template<typename GEOIDITER >
bool operator== (geometry_element_iterator< GEOIDITER > const &iter, GEOIDITER const &id_iter)
 Comparison operator: geometry ID and element point to the same ID. More...
 
template<typename GEOIDITER >
bool operator== (GEOIDITER const &id_iter, geometry_element_iterator< GEOIDITER > const &iter)
 Comparison operator: geometry ID and element point to the same ID. More...
 
template<typename GEOIDITER >
bool operator!= (geometry_element_iterator< GEOIDITER > const &iter, GEOIDITER const &id_iter)
 Comparison operator: geometry ID and element point to different IDs. More...
 
template<typename GEOIDITER >
bool operator!= (GEOIDITER const &id_iter, geometry_element_iterator< GEOIDITER > const &iter)
 Comparison operator: geometry ID and element point to different IDs. More...
 
template<typename T >
std::string writeToString (T const &value)
 Write the argument into a string. More...
 

Function Documentation

template<typename GEOIDITER >
bool geo::details::operator!= ( geometry_element_iterator< GEOIDITER > const &  iter,
GEOIDITER const &  id_iter 
)

Comparison operator: geometry ID and element point to different IDs.

Definition at line 5831 of file GeometryCore.h.

References geo::details::geometry_element_iterator< GEOIDITER >::id_iterator().

Referenced by recob::TrajectoryPointFlags::fromHit(), lar::ProviderPack< Providers >::has(), lar::example::CoordRange< Coord_t >::offset(), and operator==().

5832 {
5833  return iter.id_iterator() != id_iter;
5834 } // operator!=(iterator_t, id_iterator_t)
template<typename GEOIDITER >
bool geo::details::operator!= ( GEOIDITER const &  id_iter,
geometry_element_iterator< GEOIDITER > const &  iter 
)
inline

Comparison operator: geometry ID and element point to different IDs.

Definition at line 712 of file GeometryCore.h.

716  { return iter != id_iter; }
template<typename GEOIDITER >
bool geo::details::operator== ( geometry_element_iterator< GEOIDITER > const &  iter,
GEOIDITER const &  id_iter 
)

Comparison operator: geometry ID and element point to the same ID.

Definition at line 5824 of file GeometryCore.h.

References geo::details::geometry_element_iterator< GEOIDITER >::id_iterator().

Referenced by recob::TrajectoryPointFlags::fromHit(), lar::ProviderPack< Providers >::has(), lar::example::CoordRange< Coord_t >::offset(), lar::sparse_vector< T >::const_iterator::operator++(), lar::value_const_iterator< T >::operator-(), and art::InputTag::process().

5825 {
5826  return iter.id_iterator() == id_iter;
5827 } // operator==(iterator_t, id_iterator_t)
template<typename GEOIDITER >
bool geo::details::operator== ( GEOIDITER const &  id_iter,
geometry_element_iterator< GEOIDITER > const &  iter 
)
inline

Comparison operator: geometry ID and element point to the same ID.

Definition at line 698 of file GeometryCore.h.

References operator!=().

702  { return iter == id_iter; }
template<typename T >
auto geo::details::static_less ( a,
b 
)

Function translation of std::less.

Definition at line 54 of file DriftPartitions.h.

55  { return std::less<T>()(a, b); }
template<typename T >
std::string geo::details::writeToString ( T const &  value)
inline

Write the argument into a string.

Definition at line 514 of file geo_types.h.

References fhicl::detail::atom::value().

Referenced by geo::CryostatID::operator std::string(), geo::TPCID::operator std::string(), geo::PlaneID::operator std::string(), geo::WireID::operator std::string(), and readout::details::writeToString().

514  {
515  std::ostringstream sstr;
516  sstr << value;
517  return sstr.str();
518  } // writeToString()
std::string value(boost::any const &)