ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloUtils
TrigT1CaloUtils
CrateEnergy.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
/***************************************************************************
5
CrateEnergy.h - description
6
-------------------
7
begin : 05/09/2007
8
email : Alan.Watson@cern.ch
9
***************************************************************************/
10
11
12
13
14
#ifndef CRATEENERGY_H
15
#define CRATEENERGY_H
16
17
#include "
TrigT1CaloUtils/ModuleEnergy.h
"
18
#include "
TrigT1CaloEvent/EnergyCMXData.h
"
19
#include <cstdint>
20
21
25
namespace
LVL1
{
26
29
30
class
CrateEnergy
{
31
32
public
:
33
CrateEnergy
(
unsigned
int
crate
,
const
DataVector<ModuleEnergy>
* modules, uint32_t maskXE = 0xff, uint32_t maskTE = 0xff,
bool
restricted
=
false
);
34
CrateEnergy
(
unsigned
int
crate
,
const
DataVector<EnergyCMXData>
* modules, uint32_t maskXE = 0xff, uint32_t maskTE = 0xff,
bool
restricted
=
false
);
35
CrateEnergy
(
unsigned
int
crate
,
unsigned
int
et
,
unsigned
int
exTC
,
36
unsigned
int
eyTC
,
unsigned
int
overflowT,
unsigned
int
overflowX,
37
unsigned
int
overflowY,
bool
restricted
=
false
);
38
~CrateEnergy
();
39
40
public
:
41
unsigned
int
crate
()
const
;
43
int
et
()
const
;
44
int
ex
()
const
;
45
int
ey
()
const
;
47
unsigned
int
exTC
()
const
;
48
unsigned
int
eyTC
()
const
;
50
unsigned
int
exOverflow
()
const
;
51
unsigned
int
eyOverflow
()
const
;
52
unsigned
int
etOverflow
()
const
;
54
bool
restricted
()
const
;
55
private
:
56
unsigned
int
m_crate
;
57
unsigned
int
m_crateEt
;
58
int
m_crateEx
;
59
int
m_crateEy
;
60
unsigned
int
m_overflowT
;
61
unsigned
int
m_overflowX
;
62
unsigned
int
m_overflowY
;
63
bool
m_restricted
;
64
bool
m_debug
;
65
static
const
unsigned
int
m_sumBitsTC
=15;
66
static
const
unsigned
int
m_sumBits
=14;
67
static
const
unsigned
int
m_jemEtSaturation
= 0x3fff;
// was 4032
68
private
:
69
unsigned
int
encodeTC
(
int
input)
const
;
70
int
decodeTC
(
unsigned
int
input)
const
;
71
72
};
73
74
}
// end of namespace bracket
75
76
77
#endif
EnergyCMXData.h
ModuleEnergy.h
DataVector
Derived DataVector<T>.
Definition
DataVector.h:795
LVL1::CrateEnergy::crate
unsigned int crate() const
return crate number
Definition
CrateEnergy.cxx:213
LVL1::CrateEnergy::ex
int ex() const
return crate Ex
Definition
CrateEnergy.cxx:223
LVL1::CrateEnergy::m_overflowT
unsigned int m_overflowT
Definition
CrateEnergy.h:60
LVL1::CrateEnergy::ey
int ey() const
return crate Ey
Definition
CrateEnergy.cxx:228
LVL1::CrateEnergy::et
int et() const
return et, ex, ey sums
Definition
CrateEnergy.cxx:218
LVL1::CrateEnergy::m_sumBits
static const unsigned int m_sumBits
Definition
CrateEnergy.h:66
LVL1::CrateEnergy::m_restricted
bool m_restricted
Definition
CrateEnergy.h:63
LVL1::CrateEnergy::m_crateEx
int m_crateEx
Definition
CrateEnergy.h:58
LVL1::CrateEnergy::exOverflow
unsigned int exOverflow() const
Overflow bits.
Definition
CrateEnergy.cxx:238
LVL1::CrateEnergy::m_overflowY
unsigned int m_overflowY
Definition
CrateEnergy.h:62
LVL1::CrateEnergy::restricted
bool restricted() const
Full or restricted eta range?
Definition
CrateEnergy.cxx:248
LVL1::CrateEnergy::eyOverflow
unsigned int eyOverflow() const
return Ey overflow bit
Definition
CrateEnergy.cxx:243
LVL1::CrateEnergy::m_crate
unsigned int m_crate
Definition
CrateEnergy.h:56
LVL1::CrateEnergy::etOverflow
unsigned int etOverflow() const
return Et overflow bit
Definition
CrateEnergy.cxx:233
LVL1::CrateEnergy::CrateEnergy
CrateEnergy(unsigned int crate, const DataVector< ModuleEnergy > *modules, uint32_t maskXE=0xff, uint32_t maskTE=0xff, bool restricted=false)
Definition
CrateEnergy.cxx:18
LVL1::CrateEnergy::encodeTC
unsigned int encodeTC(int input) const
encode int as 15-bit twos-complement format (hardware Ex/Ey format)
Definition
CrateEnergy.cxx:263
LVL1::CrateEnergy::decodeTC
int decodeTC(unsigned int input) const
decode 15-bit twos-complement format (hardware Ex/Ey format) as int
Definition
CrateEnergy.cxx:278
LVL1::CrateEnergy::m_sumBitsTC
static const unsigned int m_sumBitsTC
Definition
CrateEnergy.h:65
LVL1::CrateEnergy::m_crateEy
int m_crateEy
Definition
CrateEnergy.h:59
LVL1::CrateEnergy::exTC
unsigned int exTC() const
15 bit twos-complement format
Definition
CrateEnergy.cxx:253
LVL1::CrateEnergy::m_crateEt
unsigned int m_crateEt
Definition
CrateEnergy.h:57
LVL1::CrateEnergy::~CrateEnergy
~CrateEnergy()
Definition
CrateEnergy.cxx:209
LVL1::CrateEnergy::eyTC
unsigned int eyTC() const
return crate Ey in 15-bit twos-complement format (hardware format)
Definition
CrateEnergy.cxx:258
LVL1::CrateEnergy::m_debug
bool m_debug
Definition
CrateEnergy.h:64
LVL1::CrateEnergy::m_overflowX
unsigned int m_overflowX
Definition
CrateEnergy.h:61
LVL1::CrateEnergy::m_jemEtSaturation
static const unsigned int m_jemEtSaturation
Definition
CrateEnergy.h:67
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