Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
ForwardDetectors
ZDC
ZdcCnv
ZdcByteStream
src
ZdcToString.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
ZdcByteStream/ZdcToString.h
"
6
#include <sstream>
7
8
9
//namespace {
10
11
template
<
typename
T>
12
std::string
ZdcToString
(
const
std::vector<T>&
vv
){
13
std::stringstream o;
14
std::string delim =
""
;
15
for
(
auto
val
:
vv
){
16
o << delim <<
int
(
val
) <<
/*"(0x" << std::hex << int(val) << ")" << */
std::dec;
17
delim =
"|"
;
18
}
19
return
o.str();
20
}
21
//}
22
23
std::string
ZdcToString
(
const
xAOD::TriggerTower
&
tt
){
24
std::stringstream o;
25
if
(
tt
.coolId() == 0) {
26
o <<
"xAOD::TriggerTower, coolId=0"
;
27
}
else
{
28
o <<
"xAOD::TriggerTower, coolId="
<< std::hex <<
tt
.coolId() << std::dec
29
<<
", layer="
<<
int
(
tt
.layer())
30
<<
", sampling="
<<
int
(
tt
.sampling())
31
<<
", eta="
<<
tt
.eta()
32
<<
", phi="
<<
tt
.phi()
33
34
/*
35
<< ", lut_cp=" << ::ZdcToString(tt.lut_cp())
36
<< ", lut_jep=" << ::ZdcToString(tt.lut_jep())
37
<< ", correction=" << ::ZdcToString(tt.correction())
38
<< ", correctionEnabled=" << ::ZdcToString(tt.correctionEnabled())
39
<< ", bcidVec=" << ::ZdcToString(tt.bcidVec())
40
<< ", adc=" << ::ZdcToString(tt.adc())
41
<< ", bcidExt=" << ::ZdcToString(tt.bcidExt())
42
*/
43
44
<<
", lut_cp="
<<
ZdcToString
(
tt
.lut_cp())
45
<<
", lut_jep="
<<
ZdcToString
(
tt
.lut_jep())
46
<<
", correction="
<<
ZdcToString
(
tt
.correction())
47
<<
", correctionEnabled="
<<
ZdcToString
(
tt
.correctionEnabled())
48
<<
", bcidVec="
<<
ZdcToString
(
tt
.bcidVec())
49
<<
", adc="
<<
ZdcToString
(
tt
.adc())
50
<<
", bcidExt="
<<
ZdcToString
(
tt
.bcidExt())
51
52
<<
", errorWord="
<<
tt
.errorWord()
53
<<
", peak="
<<
int
(
tt
.peak())
54
<<
", adcPeak="
<<
int
(
tt
.adcPeak());
55
if
(!
tt
.lut_cp().empty()) {
56
o <<
", cpET="
<<
int
(
tt
.cpET());
57
}
58
if
(!
tt
.lut_jep().empty()) {
59
o <<
", jepET="
<<
int
(
tt
.jepET());
60
}
61
62
}
63
64
return
o.str();
65
}
66
67
std::string
ZdcToString
(
const
xAOD::TriggerTowerContainer
&
tt
){
68
std::stringstream o;
69
for
(
xAOD::TriggerTowerContainer::const_iterator
iter
=
tt
.begin();
70
iter
!=
tt
.end(); ++
iter
){
71
o <<
ZdcToString
(**
iter
) << std::endl;
72
}
73
return
o.str();
74
}
75
76
std::string
ZdcToString
(
const
xAOD::CPMTower
& cpm){
77
std::stringstream o;
78
79
o <<
"xAOD::CPMTower"
80
<<
", eta="
<< cpm.
eta
()
81
<<
", phi="
<< cpm.
phi
()
82
<<
", em peak energy="
<< cpm.
emEnergy
()
83
<<
", had peak energy="
<< cpm.
hadEnergy
()
84
;
85
86
return
o.str();
87
}
88
89
std::string
ZdcToString
(
const
xAOD::CPMTowerContainer
&
tt
){
90
std::stringstream o;
91
for
(
auto
iter
=
tt
.begin();
92
iter
!=
tt
.end(); ++
iter
){
93
o <<
ZdcToString
(**
iter
) << std::endl;
94
}
95
return
o.str();
96
}
97
createLinkingScheme.iter
iter
Definition:
createLinkingScheme.py:56
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition:
DVLIterator.h:82
xAOD::CPMTower_v2::phi
float phi() const
get phi (note that for L1Calo phi runs from 0 to 2pi)
xAOD::CPMTower_v2::eta
float eta() const
get eta
xAOD::TriggerTower_v2
Description of TriggerTower_v2.
Definition:
TriggerTower_v2.h:49
ZdcToString
std::string ZdcToString(const std::vector< T > &vv)
Definition:
ZdcToString.cxx:12
DataVector
Derived DataVector<T>.
Definition:
DataVector.h:794
ZdcToString.h
python.CaloAddPedShiftConfig.int
int
Definition:
CaloAddPedShiftConfig.py:45
Pythia8_RapidityOrderMPI.val
val
Definition:
Pythia8_RapidityOrderMPI.py:14
PlotCalibFromCool.vv
vv
Definition:
PlotCalibFromCool.py:716
TileDCSDataPlotter.tt
tt
Definition:
TileDCSDataPlotter.py:874
xAOD::CPMTower_v2::hadEnergy
uint8_t hadEnergy() const
get hadEnergy for hadEnergyVec[peak] - time slice that (hopefully) contains the collision
Definition:
CPMTower_v2.cxx:61
xAOD::CPMTower_v2::emEnergy
uint8_t emEnergy() const
get emEnergy for emEnergyVec[peak] - time slice that (hopefully) contains the collision
Definition:
CPMTower_v2.cxx:56
xAOD::CPMTower_v2
Description of CPMTower_v2.
Definition:
CPMTower_v2.h:26
Generated on Wed May 7 2025 21:23:00 for ATLAS Offline Software by
1.8.18