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
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
Trigger
TrigT1
TrigT1CaloEvent
src
CPMTower.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
/***************************************************************************
5
CPMTower.cpp - description
6
-------------------
7
begin : Thurs Dec 14 2006
8
email : Alan.Watson@cern.ch
9
***************************************************************************/
10
11
12
#include "
TrigT1CaloEvent/CPMTower.h
"
13
14
namespace
LVL1
{
15
16
// default constructor for persistency
17
LVL1::CPMTower::CPMTower::CPMTower
():
18
m_em_energy(1),
19
m_had_energy(1),
20
m_em_error(1),
21
m_had_error(1),
22
m_phi(0.0),
23
m_eta(0.0),
24
m_peak(0)
25
{
26
}
27
29
LVL1::CPMTower::CPMTower::CPMTower
(
double
phi
,
double
eta
):
30
m_phi(
phi
),
31
m_eta(
eta
){
32
}
34
LVL1::CPMTower::CPMTower::CPMTower
(
double
phi
,
double
eta
,
35
const
std::vector<int>& em_et,
36
const
std::vector<int>& em_error,
37
const
std::vector<int>& had_et,
38
const
std::vector<int>& had_error,
39
int
peak):
40
m_em_energy(em_et),
41
m_had_energy(had_et),
42
m_em_error(em_error),
43
m_had_error(had_error),
44
m_phi(
phi
),
45
m_eta(
eta
),
46
m_peak(peak)
47
{
48
}
49
50
52
void
LVL1::CPMTower::fill
(
const
std::vector<int>& em_et,
53
const
std::vector<int>& em_error,
54
const
std::vector<int>& had_et,
55
const
std::vector<int>& had_error,
56
int
peak)
57
{
58
m_em_energy
= em_et;
59
m_em_error
= em_error;
60
m_had_energy
= had_et;
61
m_had_error
= had_error;
62
m_peak
=
peak
;
63
return
;
64
}
65
67
int
LVL1::CPMTower::emSliceEnergy
(
int
slice
)
const
{
68
if
(
slice
>= 0 &&
slice
< (
int
)m_em_energy.size())
return
m_em_energy[
slice
];
69
else
return
0;
70
}
71
int
LVL1::CPMTower::hadSliceEnergy
(
int
slice
)
const
{
72
if
(
slice
>= 0 &&
slice
< (
int
)m_had_energy.size())
return
m_had_energy[
slice
];
73
else
return
0;
74
}
75
77
int
LVL1::CPMTower::emSliceError
(
int
slice
)
const
{
78
if
(
slice
>= 0 &&
slice
< (
int
)m_em_error.size())
return
m_em_error[
slice
];
79
else
return
0;
80
}
81
int
LVL1::CPMTower::hadSliceError
(
int
slice
)
const
{
82
if
(
slice
>= 0 &&
slice
< (
int
)m_had_error.size())
return
m_had_error[
slice
];
83
else
return
0;
84
}
85
86
}
87
89
LVL1::Coordinate
LVL1::CPMTower::coord
()
const
{
90
return
Coordinate
(
m_phi
,
m_eta
);
91
}
phi
Scalar phi() const
phi method
Definition:
AmgMatrixBasePlugin.h:67
LVL1::CPMTower::m_em_energy
std::vector< int > m_em_energy
Internal data.
Definition:
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:92
eta
Scalar eta() const
pseudorapidity method
Definition:
AmgMatrixBasePlugin.h:83
LVL1::CPMTower::m_em_error
std::vector< int > m_em_error
Definition:
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:94
LVL1::CPMTower::m_had_error
std::vector< int > m_had_error
Definition:
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:95
LVL1::CPMTower::emSliceError
int emSliceError(int slice) const
Methods to return error words for specified slice.
Definition:
CPMTower.cxx:82
xAOD::CPMTower
CPMTower_v2 CPMTower
Define the latest version of the CPMTower class.
Definition:
Event/xAOD/xAODTrigL1Calo/xAODTrigL1Calo/CPMTower.h:16
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition:
ICMMCPHitsCnvTool.h:18
LVL1::CPMTower::peak
int peak() const
return peak positions in ET and error vectors
Definition:
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:80
LVL1::CPMTower::coord
Coordinate coord() const
returns coordinate of TT
Definition:
CPMTower.cxx:89
LVL1::CPMTower::m_had_energy
std::vector< int > m_had_energy
Definition:
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:93
LVL1::CPMTower::emSliceEnergy
int emSliceEnergy(int slice) const
return the ET values for a specified slice
Definition:
CPMTower.cxx:72
LVL1::Coordinate
Coordinate class declaration.
Definition:
TrigT1/TrigT1Interfaces/TrigT1Interfaces/Coordinate.h:50
perfmonmt-refit.slice
slice
Definition:
perfmonmt-refit.py:52
CPMTower.h
LVL1::CPMTower::hadSliceEnergy
int hadSliceEnergy(int slice) const
Definition:
CPMTower.cxx:76
LVL1::CPMTower::hadSliceError
int hadSliceError(int slice) const
Definition:
CPMTower.cxx:86
LVL1::CPMTower::m_eta
double m_eta
Definition:
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:97
LVL1::CPMTower::fill
void fill(const std::vector< int > &em_et, const std::vector< int > &em_error, const std::vector< int > &had_et, const std::vector< int > &had_error, int peak)
Methods to fill towers with digits, calibrated ET vectors and status flags.
Definition:
CPMTower.cxx:57
LVL1::CPMTower::m_phi
double m_phi
Definition:
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:96
LVL1::CPMTower::m_peak
int m_peak
Definition:
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:98
Generated on Sun Mar 30 2025 21:08:58 for ATLAS Offline Software by
1.8.18