All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
geo_types.cxx
Go to the documentation of this file.
1 /**
2  * @file larcoreobj/SimpleTypesAndConstants/geo_types.cxx
3  * @brief Definition of data types for geometry description (implementation).
4  * @see larcoreobj/SimpleTypesAndConstants/geo_types.h
5  * @ingroup Geometry
6  *
7  * This library is currently header-only and depends only on standard C++.
8  *
9  */
10 
11 // header library
13 
14 // C++ standard libraries
15 #include <stdexcept> // std::logic_error
16 
17 
18 // -----------------------------------------------------------------------------
19 std::string geo::SignalTypeName(geo::SigType_t sigType) {
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(
26  "geo::SignalTypeName(): unexpected signal type #"
27  + std::to_string(static_cast<int>(sigType))
28  );
29 } // geo::SignalTypeName()
30 
31 
32 // -----------------------------------------------------------------------------
33 
Who knows?
Definition: geo_types.h:147
Signal from induction planes.
Definition: geo_types.h:145
enum geo::_plane_sigtype SigType_t
Definition of data types for geometry description.
std::string to_string(WindowPattern const &pattern)
std::string SignalTypeName(geo::SigType_t sigType)
Returns the name of the specified signal type.
Definition: geo_types.cxx:19
Signal from collection planes.
Definition: geo_types.h:146