Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
garsoft
SummaryDataProducts
GeometryConfigurationInfo.cxx
Go to the documentation of this file.
1
#include "
SummaryDataProducts/GeometryConfigurationInfo.h
"
2
// C/C++ standard library
3
#include <ostream>
4
5
// -----------------------------------------------------------------------------
6
std::ostream&
gar::sumdata::operator<<
(std::ostream& out,
gar::sumdata::GeometryConfigurationInfo
const
&
info
)
7
{
8
if
(!info.
isDataValid
())
9
return
out <<
"Invalid geometry configuration information"
<<
std::endl
;
10
11
out <<
"Geometry information version: "
<< info.
dataVersion
;
12
13
if
(info.
dataVersion
>=
gar::sumdata::GeometryConfigurationInfo::DataVersion_t
{1})
14
out <<
"\nDetector name: '"
<<
info
.detectorName <<
"'"
;
15
16
if
(
info
.dataVersion >=
gar::sumdata::GeometryConfigurationInfo::DataVersion_t
{2})
17
{
18
out <<
"\nFull configuration:"
19
<<
"\n"
<<
std::string
(80,
'-'
)
20
<<
"\n"
<<
info
.geometryServiceConfiguration
21
<<
"\n"
<<
std::string
(80,
'-'
);
22
}
23
24
if
(
info
.dataVersion >
gar::sumdata::GeometryConfigurationInfo::DataVersion_t
{2}) {
25
out <<
"\n[this version of code can't fully decode further information]"
;
26
}
27
28
return
out;
29
}
// operator<< (GeometryConfigurationInfo const&)
30
31
// -----------------------------------------------------------------------------
gar::sumdata::operator<<
std::ostream & operator<<(std::ostream &, GeometryConfigurationInfo const &)
Definition:
GeometryConfigurationInfo.cxx:6
string
std::string string
Definition:
nybbler.cc:12
gar::sumdata::GeometryConfigurationInfo::dataVersion
DataVersion_t dataVersion
Version of the data in this object (0 is invalid version).
Definition:
GeometryConfigurationInfo.h:59
GeometryConfigurationInfo.h
gar::sumdata::GeometryConfigurationInfo
Description of the current configuration of detector geometry.
Definition:
GeometryConfigurationInfo.h:51
gar::sumdata::GeometryConfigurationInfo::DataVersion_t
unsigned int DataVersion_t
Type used for the version of data.
Definition:
GeometryConfigurationInfo.h:53
generate_datataset.info
info
Definition:
generate_datataset.py:142
gar::sumdata::GeometryConfigurationInfo::isDataValid
bool isDataValid() const noexcept
Protocol: whether the data content is valid.
Definition:
GeometryConfigurationInfo.h:68
if
if(!yymsg) yymsg
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
Generated by
1.8.11