ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
L1Topo
L1TopoEvent
Root
L1Topo/L1TopoEvent/Root/eEmTOB.cxx
Go to the documentation of this file.
1
// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
#include "
L1TopoEvent/eEmTOB.h
"
4
#include <iostream>
5
6
thread_local
TCS::Heap<TCS::eEmTOB>
TCS::eEmTOB::fg_heap
(
"eEm"
);
7
8
const
unsigned
int
TCS::eEmTOB::g_nBitsEt
= 13;
9
const
unsigned
int
TCS::eEmTOB::g_nBitsEta
= 9;
10
const
unsigned
int
TCS::eEmTOB::g_nBitsPhi
= 7;
11
12
// default constructor
13
TCS::eEmTOB::eEmTOB
(uint32_t
roiWord
, std::string_view
tobName
) :
14
BaseTOB
(
roiWord
,
tobName
)
15
{}
16
17
// constructor with initial values
18
TCS::eEmTOB::eEmTOB
(
unsigned
int
et
,
int
eta
,
unsigned
int
phi
,
inputTOBType_t
tobType
, uint32_t
roiWord
, std::string_view
tobName
) :
19
BaseTOB
(
roiWord
,
tobName
)
20
,
m_Et
(
sizeCheck
(
et
,
nBitsEt
()) )
21
,
m_eta
(
sizeCheck
(
eta
,
nBitsEta
()) )
22
,
m_phi
(
sizeCheck
(
phi
,
nBitsPhi
()) )
23
,
m_tobType
(
tobType
)
24
{}
25
26
// copy constructor
27
TCS::eEmTOB::eEmTOB
(
const
TCS::eEmTOB
& eem) =
default
;
28
29
// destructor
30
TCS::eEmTOB::~eEmTOB
() =
default
;
31
32
33
TCS::eEmTOB
*
34
TCS::eEmTOB::createOnHeap
(
const
eEmTOB
& eem) {
35
return
fg_heap
.create(eem);
36
}
37
38
void
39
TCS::eEmTOB::clearHeap
() {
40
return
fg_heap
.clear();
41
}
42
43
void
TCS::eEmTOB::print
(std::ostream &o)
const
{
44
o <<
"eEm energy: "
<<
Et
() <<
", eta: "
<<
eta
() <<
", phi: "
<<
phi
();
45
}
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
eEmTOB.h
TCS::BaseTOB::tobName
const std::string & tobName() const
Definition
BaseTOB.h:24
TCS::BaseTOB::sizeCheck
int sizeCheck(int value, unsigned int size) const
Definition
BaseTOB.cxx:32
TCS::BaseTOB::roiWord
uint32_t roiWord() const
Definition
BaseTOB.h:22
TCS::BaseTOB::BaseTOB
BaseTOB(uint32_t roiWord, const std::string_view tobType)
Definition
BaseTOB.cxx:11
TCS::Heap
Definition
Heap.h:13
TCS::eEmTOB
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:13
TCS::eEmTOB::g_nBitsEta
static const unsigned int g_nBitsEta
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:71
TCS::eEmTOB::g_nBitsEt
static const unsigned int g_nBitsEt
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:70
TCS::eEmTOB::m_tobType
inputTOBType_t m_tobType
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:86
TCS::eEmTOB::eta
int eta() const
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:34
TCS::eEmTOB::eEmTOB
eEmTOB(uint32_t roiWord=0, std::string_view tobName="eEmTOB")
Definition
L1Topo/L1TopoEvent/Root/eEmTOB.cxx:13
TCS::eEmTOB::fg_heap
static Heap< TCS::eEmTOB > fg_heap
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:88
TCS::eEmTOB::~eEmTOB
virtual ~eEmTOB()
TCS::eEmTOB::clearHeap
static void clearHeap()
Definition
L1Topo/L1TopoEvent/Root/eEmTOB.cxx:39
TCS::eEmTOB::createOnHeap
static eEmTOB * createOnHeap(const eEmTOB &eem)
Definition
L1Topo/L1TopoEvent/Root/eEmTOB.cxx:34
TCS::eEmTOB::nBitsEta
static unsigned int nBitsEta()
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:17
TCS::eEmTOB::phi
unsigned int phi() const
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:35
TCS::eEmTOB::tobType
inputTOBType_t tobType() const
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:67
TCS::eEmTOB::g_nBitsPhi
static const unsigned int g_nBitsPhi
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:72
TCS::eEmTOB::nBitsEt
static unsigned int nBitsEt()
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:16
TCS::eEmTOB::Et
unsigned int Et() const
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:33
TCS::eEmTOB::m_eta
int m_eta
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:75
TCS::eEmTOB::nBitsPhi
static unsigned int nBitsPhi()
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:18
TCS::eEmTOB::m_Et
unsigned int m_Et
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:74
TCS::eEmTOB::m_phi
unsigned int m_phi
Definition
L1Topo/L1TopoEvent/L1TopoEvent/eEmTOB.h:76
TCS::eEmTOB::print
virtual void print(std::ostream &o) const
Definition
L1Topo/L1TopoEvent/Root/eEmTOB.cxx:43
TCS::inputTOBType_t
inputTOBType_t
Definition
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:10
et
Extra patterns decribing particle interation process.
Generated on
for ATLAS Offline Software by
1.17.0