ATLAS Offline Software
Trigger
TrigT1
TrigT1CaloEvent
src
CPMTower.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 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
}
28
LVL1::CPMTower::CPMTower::CPMTower
(
double
phi
,
double
eta
):
29
m_em_energy(1),
30
m_had_energy(1),
31
m_em_error(1),
32
m_had_error(1),
33
m_phi(
phi
),
34
m_eta(
eta
),
35
m_peak(0)
36
{
37
}
39
LVL1::CPMTower::CPMTower::CPMTower
(
double
phi
,
double
eta
,
40
const
std::vector<int>& em_et,
41
const
std::vector<int>& em_error,
42
const
std::vector<int>& had_et,
43
const
std::vector<int>& had_error,
44
int
peak):
45
m_em_energy(em_et),
46
m_had_energy(had_et),
47
m_em_error(em_error),
48
m_had_error(had_error),
49
m_phi(
phi
),
50
m_eta(
eta
),
51
m_peak(peak)
52
{
53
}
54
55
CPMTower::~CPMTower(){
56
}
57
59
void
LVL1::CPMTower::fill
(
const
std::vector<int>& em_et,
60
const
std::vector<int>& em_error,
61
const
std::vector<int>& had_et,
62
const
std::vector<int>& had_error,
63
int
peak)
64
{
65
m_em_energy
= em_et;
66
m_em_error
= em_error;
67
m_had_energy
= had_et;
68
m_had_error
= had_error;
69
m_peak
=
peak
;
70
return
;
71
}
72
74
int
LVL1::CPMTower::emSliceEnergy
(
int
slice
)
const
{
75
if
(
slice
>= 0 &&
slice
< (
int
)m_em_energy.size())
return
m_em_energy[
slice
];
76
else
return
0;
77
}
78
int
LVL1::CPMTower::hadSliceEnergy
(
int
slice
)
const
{
79
if
(
slice
>= 0 &&
slice
< (
int
)m_had_energy.size())
return
m_had_energy[
slice
];
80
else
return
0;
81
}
82
84
int
LVL1::CPMTower::emSliceError
(
int
slice
)
const
{
85
if
(
slice
>= 0 &&
slice
< (
int
)m_em_error.size())
return
m_em_error[
slice
];
86
else
return
0;
87
}
88
int
LVL1::CPMTower::hadSliceError
(
int
slice
)
const
{
89
if
(
slice
>= 0 &&
slice
< (
int
)m_had_error.size())
return
m_had_error[
slice
];
90
else
return
0;
91
}
92
93
}
94
96
LVL1::Coordinate
LVL1::CPMTower::coord
()
const
{
97
return
Coordinate
(
m_phi
,
m_eta
);
98
}
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:98
LVL1::CPMTower::m_had_error
std::vector< int > m_had_error
Definition:
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:99
LVL1::CPMTower::emSliceError
int emSliceError(int slice) const
Methods to return error words for specified slice.
Definition:
CPMTower.cxx:89
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:84
LVL1::CPMTower::coord
Coordinate coord() const
returns coordinate of TT
Definition:
CPMTower.cxx:96
LVL1::CPMTower::m_had_energy
std::vector< int > m_had_energy
Definition:
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:97
LVL1::CPMTower::emSliceEnergy
int emSliceEnergy(int slice) const
return the ET values for a specified slice
Definition:
CPMTower.cxx:79
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:83
LVL1::CPMTower::hadSliceError
int hadSliceError(int slice) const
Definition:
CPMTower.cxx:93
LVL1::CPMTower::m_eta
double m_eta
Definition:
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:101
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:64
LVL1::CPMTower::m_phi
double m_phi
Definition:
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:100
LVL1::CPMTower::m_peak
int m_peak
Definition:
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:102
Generated on Sun Dec 22 2024 21:08:45 for ATLAS Offline Software by
1.8.18