ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
}
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
CPMTower.h
LVL1::CPMTower::peak
int peak() const
return peak positions in ET and error vectors
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:80
LVL1::CPMTower::hadSliceError
int hadSliceError(int slice) const
Definition
CPMTower.cxx:81
LVL1::CPMTower::m_had_error
std::vector< int > m_had_error
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:95
LVL1::CPMTower::emSliceEnergy
int emSliceEnergy(int slice) const
return the ET values for a specified slice
Definition
CPMTower.cxx:67
LVL1::CPMTower::m_em_energy
std::vector< int > m_em_energy
Internal data.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:92
LVL1::CPMTower::m_had_energy
std::vector< int > m_had_energy
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:93
LVL1::CPMTower::hadSliceEnergy
int hadSliceEnergy(int slice) const
Definition
CPMTower.cxx:71
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:52
LVL1::CPMTower::m_em_error
std::vector< int > m_em_error
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:94
LVL1::CPMTower::coord
Coordinate coord() const
returns coordinate of TT
Definition
CPMTower.cxx:89
LVL1::CPMTower::m_phi
double m_phi
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:96
LVL1::CPMTower::emSliceError
int emSliceError(int slice) const
Methods to return error words for specified slice.
Definition
CPMTower.cxx:77
LVL1::CPMTower::m_peak
int m_peak
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:98
LVL1::Coordinate
Coordinate class declaration.
Definition
TrigT1/TrigT1Interfaces/TrigT1Interfaces/Coordinate.h:45
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
Generated on
for ATLAS Offline Software by
1.17.0