GeometryConfigurationInfo.cxx
Go to the documentation of this file.
2 // C/C++ standard library
3 #include <ostream>
4 
5 // -----------------------------------------------------------------------------
7 {
8  if (!info.isDataValid())
9  return out << "Invalid geometry configuration information" << std::endl;
10 
11  out << "Geometry information version: " << info.dataVersion;
12 
14  out << "\nDetector name: '" << info.detectorName << "'";
15 
17  {
18  out << "\nFull configuration:"
19  << "\n" << std::string(80, '-')
20  << "\n" << info.geometryServiceConfiguration
21  << "\n" << std::string(80, '-');
22  }
23 
25  out << "\n[this version of code can't fully decode further information]";
26  }
27 
28  return out;
29 } // operator<< (GeometryConfigurationInfo const&)
30 
31 // -----------------------------------------------------------------------------
std::ostream & operator<<(std::ostream &, GeometryConfigurationInfo const &)
std::string string
Definition: nybbler.cc:12
DataVersion_t dataVersion
Version of the data in this object (0 is invalid version).
Description of the current configuration of detector geometry.
unsigned int DataVersion_t
Type used for the version of data.
bool isDataValid() const noexcept
Protocol: whether the data content is valid.
if(!yymsg) yymsg
QTextStream & endl(QTextStream &s)