ATLAS Offline Software
InnerDetector
InDetDetDescr
InDetReadoutGeometry
src
Version.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
InDetReadoutGeometry/Version.h
"
6
7
#include <sstream>
8
#include <string>
9
#include <iomanip>
10
11
namespace
InDetDD
{
12
13
Version::Version
(
const
std::string &
tag
,
14
const
std::string &
name
,
15
const
std::string & layout,
16
const
std::string &
description
,
17
int
major,
18
int
minor,
19
int
patch)
20
: m_tag(
tag
),
21
m_name(
name
),
22
m_layout(layout),
23
m_description(
description
),
24
m_major(major),
25
m_minor(minor),
26
m_patch(patch)
27
{}
28
29
30
31
Version::Version
()
32
: m_major(0),
33
m_minor(0),
34
m_patch(0)
35
{}
36
37
const
std::string &
38
Version::tag
()
const
39
{
40
return
m_tag
;
41
}
42
43
const
std::string &
44
Version::name
()
const
45
{
46
return
m_name
;
47
}
48
49
const
std::string &
50
Version::layout
()
const
51
{
52
return
m_layout
;
53
}
54
55
const
std::string &
56
Version::description
()
const
57
{
58
return
m_description
;
59
}
60
61
int
62
Version::majorNum
()
const
63
{
64
return
m_major
;
65
}
66
67
int
68
Version::minorNum
()
const
69
{
70
return
m_minor
;
71
}
72
73
int
74
Version::patchNum
()
const
75
{
76
return
m_patch
;
77
}
78
79
std::string
80
Version::versionNumber
()
const
81
{
82
std::ostringstream ostr;
83
ostr <<
m_major
84
<<
"."
<< std::setfill(
'0'
) << std::setw(2) <<
m_minor
85
<<
"."
<< std::setfill(
'0'
) << std::setw(2) <<
m_patch
;
86
return
ostr.str();
87
}
88
89
std::string
90
Version::fullDescription
()
const
91
{
92
93
// Output of the form
94
// Version: SCT-DC1-00, Name: DC1, Layout: Final, Code Version: 02.01.01, Description: DC1 Geometry
95
96
std::ostringstream ostr;
97
ostr <<
"Version: "
<<
m_tag
<<
", Name: "
<<
m_name
<<
", Layout: "
<<
m_layout
98
<<
", Code Version: "
<<
versionNumber
();
99
if
(!
m_description
.empty()) {
100
ostr <<
", Description: "
<<
m_description
;
101
}
102
return
ostr.str();
103
}
104
105
}
// namespace InDetDD
InDetDD::Version::Version
Version()
Empty Constructor
Definition:
Version.cxx:31
InDetDD::Version::patchNum
int patchNum() const
Patch version number
Definition:
Version.cxx:74
InDetDD::Version::layout
const std::string & layout() const
Layout (eg Initial, Final, TestBeam)
Definition:
Version.cxx:50
Version.h
InDetDD::Version::m_patch
int m_patch
Definition:
Version.h:78
InDetDD::Version::versionNumber
std::string versionNumber() const
Print out version number (eg.
Definition:
Version.cxx:80
InDetDD::Version::name
const std::string & name() const
Version label.
Definition:
Version.cxx:44
InDetDD::Version::m_tag
std::string m_tag
Definition:
Version.h:72
InDetDD::Version::m_minor
int m_minor
Definition:
Version.h:77
InDetDD::Version::majorNum
int majorNum() const
Major version number.
Definition:
Version.cxx:62
InDetDD::Version::m_description
std::string m_description
Definition:
Version.h:75
InDetDD::Version::description
const std::string & description() const
Description or comment.
Definition:
Version.cxx:56
InDetDD::Version::m_layout
std::string m_layout
Definition:
Version.h:74
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
InDetDD::Version::m_major
int m_major
Definition:
Version.h:76
InDetDD::Version::minorNum
int minorNum() const
Minor version number.
Definition:
Version.cxx:68
InDetDD::Version::fullDescription
std::string fullDescription() const
Full Description For example, Version: SCT-DC1-00, Name: DC1, Layout: Final, Code Version: 2....
Definition:
Version.cxx:90
InDetDD
Message Stream Member.
Definition:
FakeTrackBuilder.h:8
InDetDD::Version::tag
const std::string & tag() const
Version tag.
Definition:
Version.cxx:38
InDetDD::Version::m_name
std::string m_name
Definition:
Version.h:73
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition:
CaloCondBlobAlgs_fillNoiseFromASCII.py:24
description
std::string description
glabal timer - how long have I taken so far?
Definition:
hcg.cxx:88
Generated on Sun Dec 22 2024 21:22:20 for ATLAS Offline Software by
1.8.18