ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloEvent
TrigT1CaloEvent
EnergyTopoData.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
/***************************************************************************
5
EnergyTopoData.h - description
6
-------------------
7
begin : Tuesday September 02 2014
8
email : Alan.Watson@CERN.CH
9
***************************************************************************/
10
11
12
#ifndef EnergyTopoData_H
13
#define EnergyTopoData_H
14
15
// STL includes
16
#include <vector>
17
18
// Gaudi kernel stuff.
19
#include "GaudiKernel/DataObject.h"
20
21
namespace
LVL1
{
22
26
class
EnergyTopoData
:
public
DataObject {
27
public
:
28
29
enum
SumTypes
{
Normal
= 0,
Restricted
= 1 };
30
32
EnergyTopoData
(
unsigned
int
word0
,
unsigned
int
word1
,
unsigned
int
word2
);
33
34
EnergyTopoData
() =
default
;
35
36
37
39
void
addEx
(
unsigned
int
Ex
,
unsigned
int
overflow,
int
type
);
40
void
addEy
(
unsigned
int
Ey
,
unsigned
int
overflow,
int
type
);
41
void
addEt
(
unsigned
int
Et
,
unsigned
int
overflow,
int
type
);
42
44
void
addRoI
(uint32_t roiWord);
45
void
addRoIs
(
const
std::vector<uint32_t>& roiWords);
46
48
unsigned
int
word0
()
const
{
return
m_word0
;}
50
unsigned
int
word1
()
const
{
return
m_word1
;}
52
unsigned
int
word2
()
const
{
return
m_word2
;}
53
55
int
Ex
(
SumTypes
type
=
LVL1::EnergyTopoData::Normal
)
const
;
56
int
Ey
(
SumTypes
type
=
LVL1::EnergyTopoData::Normal
)
const
;
57
int
Et
(
SumTypes
type
=
LVL1::EnergyTopoData::Normal
)
const
;
59
int
ExTC
(
SumTypes
type
=
LVL1::EnergyTopoData::Normal
)
const
;
60
int
EyTC
(
SumTypes
type
=
LVL1::EnergyTopoData::Normal
)
const
;
62
unsigned
int
ExOverflow
(
SumTypes
type
=
LVL1::EnergyTopoData::Normal
)
const
;
63
unsigned
int
EyOverflow
(
SumTypes
type
=
LVL1::EnergyTopoData::Normal
)
const
;
64
unsigned
int
EtOverflow
(
SumTypes
type
=
LVL1::EnergyTopoData::Normal
)
const
;
65
66
private
:
67
unsigned
int
m_word0
{};
68
unsigned
int
m_word1
{};
69
unsigned
int
m_word2
{};
70
71
int
decodeTC
(
unsigned
int
word)
const
;
72
73
};
74
75
}
//end of LVL1 namespace defn
76
77
#include "
TrigT1CaloEvent/EnergyTopoData_ClassDEF.h
"
78
79
#endif
EnergyTopoData_ClassDEF.h
LVL1::EnergyTopoData::Ex
int Ex(SumTypes type=LVL1::EnergyTopoData::Normal) const
return Ex, Ey, ET values
Definition
EnergyTopoData.cxx:74
LVL1::EnergyTopoData::m_word2
unsigned int m_word2
Definition
EnergyTopoData.h:69
LVL1::EnergyTopoData::SumTypes
SumTypes
Definition
EnergyTopoData.h:29
LVL1::EnergyTopoData::Restricted
@ Restricted
Definition
EnergyTopoData.h:29
LVL1::EnergyTopoData::Normal
@ Normal
Definition
EnergyTopoData.h:29
LVL1::EnergyTopoData::Ey
int Ey(SumTypes type=LVL1::EnergyTopoData::Normal) const
Ey (signed).
Definition
EnergyTopoData.cxx:84
LVL1::EnergyTopoData::EyTC
int EyTC(SumTypes type=LVL1::EnergyTopoData::Normal) const
Ey (twos complement).
Definition
EnergyTopoData.cxx:114
LVL1::EnergyTopoData::addEt
void addEt(unsigned int Et, unsigned int overflow, int type)
Definition
EnergyTopoData.cxx:37
LVL1::EnergyTopoData::addRoIs
void addRoIs(const std::vector< uint32_t > &roiWords)
Definition
EnergyTopoData.cxx:65
LVL1::EnergyTopoData::EtOverflow
unsigned int EtOverflow(SumTypes type=LVL1::EnergyTopoData::Normal) const
Definition
EnergyTopoData.cxx:139
LVL1::EnergyTopoData::ExTC
int ExTC(SumTypes type=LVL1::EnergyTopoData::Normal) const
return twos-complement Ex, Ey values
Definition
EnergyTopoData.cxx:104
LVL1::EnergyTopoData::decodeTC
int decodeTC(unsigned int word) const
Decode 15-bit twos-complement values.
Definition
EnergyTopoData.cxx:147
LVL1::EnergyTopoData::m_word0
unsigned int m_word0
Definition
EnergyTopoData.h:67
LVL1::EnergyTopoData::addRoI
void addRoI(uint32_t roiWord)
add data using RoI word
Definition
EnergyTopoData.cxx:46
LVL1::EnergyTopoData::word2
unsigned int word2() const
return word 2
Definition
EnergyTopoData.h:52
LVL1::EnergyTopoData::EnergyTopoData
EnergyTopoData()=default
LVL1::EnergyTopoData::word1
unsigned int word1() const
return word 1
Definition
EnergyTopoData.h:50
LVL1::EnergyTopoData::Et
int Et(SumTypes type=LVL1::EnergyTopoData::Normal) const
ET Sum.
Definition
EnergyTopoData.cxx:94
LVL1::EnergyTopoData::EnergyTopoData
EnergyTopoData(unsigned int word0, unsigned int word1, unsigned int word2)
constructor
Definition
EnergyTopoData.cxx:10
LVL1::EnergyTopoData::ExOverflow
unsigned int ExOverflow(SumTypes type=LVL1::EnergyTopoData::Normal) const
return overflow flags
Definition
EnergyTopoData.cxx:125
LVL1::EnergyTopoData::EyOverflow
unsigned int EyOverflow(SumTypes type=LVL1::EnergyTopoData::Normal) const
Definition
EnergyTopoData.cxx:132
LVL1::EnergyTopoData::word0
unsigned int word0() const
return word 0
Definition
EnergyTopoData.h:48
LVL1::EnergyTopoData::m_word1
unsigned int m_word1
Definition
EnergyTopoData.h:68
LVL1::EnergyTopoData::addEy
void addEy(unsigned int Ey, unsigned int overflow, int type)
Definition
EnergyTopoData.cxx:28
LVL1::EnergyTopoData::addEx
void addEx(unsigned int Ex, unsigned int overflow, int type)
add data.
Definition
EnergyTopoData.cxx:19
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
type
Generated on
for ATLAS Offline Software by
1.17.0