LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
geo_types.cxx
Go to the documentation of this file.
1 
11 // header library
13 
14 // C++ standard libraries
15 #include <stdexcept> // std::logic_error
16 
17 // -----------------------------------------------------------------------------
18 std::string geo::SignalTypeName(geo::SigType_t sigType)
19 {
20  switch (sigType) {
21  case geo::kInduction: return "induction";
22  case geo::kCollection: return "collection";
23  case geo::kMysteryType: return "unknown";
24  } // switch
25  throw std::logic_error("geo::SignalTypeName(): unexpected signal type #" +
26  std::to_string(static_cast<int>(sigType)));
27 } // geo::SignalTypeName()
28 
29 // -----------------------------------------------------------------------------
Who knows?
Definition: geo_types.h:153
Signal from induction planes.
Definition: geo_types.h:151
decltype(auto) constexpr to_string(T &&obj)
ADL-aware version of std::to_string.
enum geo::_plane_sigtype SigType_t
Enumerate the possible plane projections.
Definition of data types for geometry description.
std::string SignalTypeName(geo::SigType_t sigType)
Returns the name of the specified signal type.
Definition: geo_types.cxx:18
Signal from collection planes.
Definition: geo_types.h:152