ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
L1Topo
L1TopoEvent
Root
ClusterTOB.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/ClusterTOB.h
"
4
#include <iostream>
5
6
thread_local
TCS::Heap<TCS::ClusterTOB>
TCS::ClusterTOB::fg_heap
(
"Cluster"
);
7
8
const
unsigned
int
TCS::ClusterTOB::g_nBitsEt
= 10;
9
const
unsigned
int
TCS::ClusterTOB::g_nBitsIsolation
= 5;
10
const
unsigned
int
TCS::ClusterTOB::g_nBitsEta
= 6;
11
const
unsigned
int
TCS::ClusterTOB::g_nBitsPhi
= 7;
12
13
// default constructor
14
TCS::ClusterTOB::ClusterTOB
(uint32_t
roiWord
, std::string_view
tobName
) :
15
BaseTOB
(
roiWord
,
tobName
)
16
{}
17
18
// constructor with initial values
19
TCS::ClusterTOB::ClusterTOB
(
unsigned
int
et
,
unsigned
int
isolation
,
int
eta
,
int
phi
,
inputTOBType_t
tobType
, uint32_t
roiWord
, std::string_view
tobName
) :
20
BaseTOB
(
roiWord
,
tobName
)
21
,
m_Et
(
sizeCheck
(
et
,
nBitsEt
()) )
22
,
m_isolation
(
sizeCheck
(
isolation
,
nBitsIsolation
()) )
23
,
m_eta
(
sizeCheck
(
eta
,
nBitsEta
()) )
24
,
m_phi
(
sizeCheck
(
phi
,
nBitsPhi
()) )
25
,
m_tobType
(
tobType
)
26
{}
27
28
// copy constructor
29
TCS::ClusterTOB::ClusterTOB
(
const
TCS::ClusterTOB
& cluster) =
default
;
30
31
// destructor
32
TCS::ClusterTOB::~ClusterTOB
() =
default
;
33
34
35
TCS::ClusterTOB
*
36
TCS::ClusterTOB::createOnHeap
(
const
ClusterTOB
& cl) {
37
return
fg_heap
.create(cl);
38
}
39
40
void
41
TCS::ClusterTOB::clearHeap
() {
42
return
fg_heap
.clear();
43
}
44
45
void
TCS::ClusterTOB::print
(std::ostream &o)
const
{
46
o <<
"cluster energy: "
<<
Et
() <<
", eta: "
<<
eta
() <<
", phi: "
<<
phi
();
47
}
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
ClusterTOB.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::ClusterTOB
Definition
ClusterTOB.h:13
TCS::ClusterTOB::tobType
inputTOBType_t tobType() const
Definition
ClusterTOB.h:62
TCS::ClusterTOB::g_nBitsEt
static const unsigned int g_nBitsEt
Definition
ClusterTOB.h:65
TCS::ClusterTOB::eta
int eta() const
Definition
ClusterTOB.h:36
TCS::ClusterTOB::fg_heap
static Heap< TCS::ClusterTOB > fg_heap
Definition
ClusterTOB.h:81
TCS::ClusterTOB::createOnHeap
static ClusterTOB * createOnHeap(const ClusterTOB &cl)
Definition
ClusterTOB.cxx:36
TCS::ClusterTOB::phi
int phi() const
Definition
ClusterTOB.h:37
TCS::ClusterTOB::isolation
unsigned int isolation() const
Definition
ClusterTOB.h:35
TCS::ClusterTOB::nBitsEt
static unsigned int nBitsEt()
Definition
ClusterTOB.h:16
TCS::ClusterTOB::g_nBitsIsolation
static const unsigned int g_nBitsIsolation
Definition
ClusterTOB.h:66
TCS::ClusterTOB::nBitsEta
static unsigned int nBitsEta()
Definition
ClusterTOB.h:18
TCS::ClusterTOB::nBitsPhi
static unsigned int nBitsPhi()
Definition
ClusterTOB.h:19
TCS::ClusterTOB::Et
unsigned int Et() const
Definition
ClusterTOB.h:34
TCS::ClusterTOB::m_isolation
unsigned int m_isolation
Definition
ClusterTOB.h:71
TCS::ClusterTOB::m_eta
int m_eta
Definition
ClusterTOB.h:72
TCS::ClusterTOB::g_nBitsPhi
static const unsigned int g_nBitsPhi
Definition
ClusterTOB.h:68
TCS::ClusterTOB::print
virtual void print(std::ostream &o) const
Definition
ClusterTOB.cxx:45
TCS::ClusterTOB::ClusterTOB
ClusterTOB(uint32_t roiWord=0, std::string_view tobName="ClusterTOB")
Definition
ClusterTOB.cxx:14
TCS::ClusterTOB::m_Et
unsigned int m_Et
Definition
ClusterTOB.h:70
TCS::ClusterTOB::m_phi
int m_phi
Definition
ClusterTOB.h:73
TCS::ClusterTOB::clearHeap
static void clearHeap()
Definition
ClusterTOB.cxx:41
TCS::ClusterTOB::g_nBitsEta
static const unsigned int g_nBitsEta
Definition
ClusterTOB.h:67
TCS::ClusterTOB::m_tobType
inputTOBType_t m_tobType
Definition
ClusterTOB.h:79
TCS::ClusterTOB::~ClusterTOB
virtual ~ClusterTOB()
TCS::ClusterTOB::nBitsIsolation
static unsigned int nBitsIsolation()
Definition
ClusterTOB.h:17
TCS::Heap
Definition
Heap.h:13
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