ATLAS Offline Software
Trigger
TrigT1
L1Topo
L1TopoEvent
Root
ClusterTOB.cxx
Go to the documentation of this file.
1
// Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2
3
#include "
L1TopoEvent/ClusterTOB.h
"
4
5
thread_local
TCS::Heap<TCS::ClusterTOB>
TCS::ClusterTOB::fg_heap
(
"Cluster"
);
6
7
const
unsigned
int
TCS::ClusterTOB::g_nBitsEt
= 10;
8
const
unsigned
int
TCS::ClusterTOB::g_nBitsIsolation
= 5;
9
const
unsigned
int
TCS::ClusterTOB::g_nBitsEta
= 6;
10
const
unsigned
int
TCS::ClusterTOB::g_nBitsPhi
= 7;
11
12
// default constructor
13
TCS::ClusterTOB::ClusterTOB
(
uint32_t
roiWord
,
const
std::string& tobName) :
14
BaseTOB
(
roiWord
,tobName )
15
{}
16
17
// constructor with initial values
18
TCS::ClusterTOB::ClusterTOB
(
unsigned
int
et
,
unsigned
int
isolation,
int
eta,
int
phi,
inputTOBType_t
tobType,
uint32_t
roiWord
,
const
std::string& tobName) :
19
BaseTOB
(
roiWord
,tobName )
20
, m_Et( sizeCheck(
et
, nBitsEt()) )
21
, m_isolation( sizeCheck( isolation, nBitsIsolation()) )
22
, m_eta( sizeCheck(eta, nBitsEta()) )
23
, m_phi( sizeCheck(phi, nBitsPhi()) )
24
, m_tobType( tobType )
25
{}
26
27
// copy constructor
28
TCS::ClusterTOB::ClusterTOB
(
const
TCS::ClusterTOB
& cluster) =
default
;
29
30
// destructor
31
TCS::ClusterTOB::~ClusterTOB
() =
default
;
32
33
34
TCS::ClusterTOB
*
35
TCS::ClusterTOB::createOnHeap
(
const
ClusterTOB
&
cl
) {
36
return
fg_heap.create(
cl
);
37
}
38
39
void
40
TCS::ClusterTOB::clearHeap
() {
41
return
fg_heap.clear();
42
}
43
44
void
TCS::ClusterTOB::print
(std::ostream &o)
const
{
45
o <<
"cluster energy: "
<< Et() <<
", eta: "
<< eta() <<
", phi: "
<< phi();
46
}
TCS::ClusterTOB::print
virtual void print(std::ostream &o) const
Definition:
ClusterTOB.cxx:44
TCS::ClusterTOB::clearHeap
static void clearHeap()
Definition:
ClusterTOB.cxx:40
et
Extra patterns decribing particle interation process.
TCS::ClusterTOB::~ClusterTOB
virtual ~ClusterTOB()
xAOD::uint32_t
setEventNumber uint32_t
Definition:
EventInfo_v1.cxx:127
TCS::ClusterTOB::g_nBitsPhi
static const unsigned int g_nBitsPhi
Definition:
ClusterTOB.h:68
TCS::Heap< TCS::ClusterTOB >
TCS::ClusterTOB::g_nBitsEta
static const unsigned int g_nBitsEta
Definition:
ClusterTOB.h:67
TCS::ClusterTOB::fg_heap
static thread_local Heap< TCS::ClusterTOB > fg_heap
Definition:
ClusterTOB.h:81
xAOD::roiWord
roiWord
Definition:
TrigMissingET_v1.cxx:36
TCS::BaseTOB
Definition:
BaseTOB.h:12
TCS::ClusterTOB::g_nBitsEt
static const unsigned int g_nBitsEt
Definition:
ClusterTOB.h:65
ClusterTOB.h
TCS::inputTOBType_t
inputTOBType_t
Definition:
Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:10
TCS::ClusterTOB::g_nBitsIsolation
static const unsigned int g_nBitsIsolation
Definition:
ClusterTOB.h:66
TCS::ClusterTOB::createOnHeap
static ClusterTOB * createOnHeap(const ClusterTOB &cl)
Definition:
ClusterTOB.cxx:35
TCS::ClusterTOB
Definition:
ClusterTOB.h:13
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition:
dq_make_web_display.py:26
TCS::ClusterTOB::ClusterTOB
ClusterTOB(uint32_t roiWord=0, const std::string &tobName="ClusterTOB")
Definition:
ClusterTOB.cxx:13
Generated on Sun Dec 22 2024 21:08:16 for ATLAS Offline Software by
1.8.18