LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
GeometryConfigurationInfo.h
Go to the documentation of this file.
1 
10 #ifndef LARCOREOBJ_SUMMARYDATA_GEOMETRYCONFIGURATIONINFO_H
11 #define LARCOREOBJ_SUMMARYDATA_GEOMETRYCONFIGURATIONINFO_H
12 
13 // C/C++ standard library
14 #include <iosfwd>
15 #include <string>
16 
17 // -----------------------------------------------------------------------------
18 namespace sumdata {
20  std::ostream& operator<<(std::ostream&, GeometryConfigurationInfo const&);
21 } // namespace sumdata
22 
58 
59  using DataVersion_t = unsigned int;
60 
62  static constexpr DataVersion_t InvalidDataVersion = 0U;
63 
66 
69 
71  std::string detectorName;
72 
74  bool isDataValid() const noexcept { return dataVersion != InvalidDataVersion; }
75 
76 }; // sumdata::GeometryConfigurationInfo
77 
78 // -----------------------------------------------------------------------------
79 
80 #endif // LARCOREOBJ_SUMMARYDATA_GEOMETRYCONFIGURATIONINFO_H
DataVersion_t dataVersion
Version of the data in this object (0 is invalid version).
std::string geometryServiceConfiguration
geo::Geometry service configuration, as FHiCL table.
static constexpr DataVersion_t InvalidDataVersion
Value denoting an invalid data version.
std::ostream & operator<<(std::ostream &, GeometryConfigurationInfo const &)
bool isDataValid() const noexcept
Protocol: whether the data content is valid.
unsigned int DataVersion_t
Type used for the version of data.
Description of the current configuration of detector geometry.