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 // -----------------------------------------------------------------------------
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
std::string string
Definition: nybbler.cc:12
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(ModuleType const mt)
Definition: ModuleType.h:34
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