ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
L1Topo
L1TopoEvent
Root
MuonNextBCTOB.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/MuonNextBCTOB.h
"
4
5
thread_local
TCS::Heap<TCS::MuonNextBCTOB>
TCS::MuonNextBCTOB::fg_heap
(
"MuonNextBC"
);
6
7
const
unsigned
int
TCS::MuonNextBCTOB::g_nBitsEt
= 8;
8
const
unsigned
int
TCS::MuonNextBCTOB::g_nBitsIsolation
= 5;
9
const
unsigned
int
TCS::MuonNextBCTOB::g_nBitsEta
= 6;
10
const
unsigned
int
TCS::MuonNextBCTOB::g_nBitsPhi
= 6;
11
12
// default constructor
13
TCS::MuonNextBCTOB::MuonNextBCTOB
(uint32_t
roiWord
,
const
std::string&
tobName
) :
14
BaseTOB
(
roiWord
,
tobName
)
15
{}
16
17
// constructor with initial values
18
TCS::MuonNextBCTOB::MuonNextBCTOB
(
unsigned
int
et
,
unsigned
int
isolation
,
int
eta
,
int
phi
, 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
{}
25
26
// copy constructor
27
TCS::MuonNextBCTOB::MuonNextBCTOB
(
const
TCS::MuonNextBCTOB
& muon) =
default
;
28
29
// destructor
30
TCS::MuonNextBCTOB::~MuonNextBCTOB
() =
default
;
31
32
TCS::MuonNextBCTOB
*
33
TCS::MuonNextBCTOB::createOnHeap
(
const
MuonNextBCTOB
& cl) {
34
return
fg_heap
.create(cl);
35
}
36
37
void
38
TCS::MuonNextBCTOB::clearHeap
() {
39
return
fg_heap
.clear();
40
}
41
42
void
TCS::MuonNextBCTOB::print
(std::ostream &o)
const
{
43
o <<
"cluster energy: "
<<
Et
() <<
", eta: "
<<
eta
() <<
", phi: "
<<
phi
();
44
}
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
MuonNextBCTOB.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::MuonNextBCTOB
Definition
MuonNextBCTOB.h:13
TCS::MuonNextBCTOB::m_eta
int m_eta
Definition
MuonNextBCTOB.h:71
TCS::MuonNextBCTOB::eta
int eta() const
Definition
MuonNextBCTOB.h:37
TCS::MuonNextBCTOB::clearHeap
static void clearHeap()
Definition
MuonNextBCTOB.cxx:38
TCS::MuonNextBCTOB::nBitsPhi
static unsigned int nBitsPhi()
Definition
MuonNextBCTOB.h:19
TCS::MuonNextBCTOB::nBitsIsolation
static unsigned int nBitsIsolation()
Definition
MuonNextBCTOB.h:17
TCS::MuonNextBCTOB::m_Et
unsigned int m_Et
Definition
MuonNextBCTOB.h:69
TCS::MuonNextBCTOB::m_isolation
unsigned int m_isolation
Definition
MuonNextBCTOB.h:70
TCS::MuonNextBCTOB::g_nBitsEt
static const unsigned int g_nBitsEt
Definition
MuonNextBCTOB.h:64
TCS::MuonNextBCTOB::MuonNextBCTOB
MuonNextBCTOB(uint32_t roiWord=0, const std::string &tobName="MuonNextBCTOB")
Definition
MuonNextBCTOB.cxx:13
TCS::MuonNextBCTOB::fg_heap
static Heap< TCS::MuonNextBCTOB > fg_heap
Definition
MuonNextBCTOB.h:78
TCS::MuonNextBCTOB::g_nBitsEta
static const unsigned int g_nBitsEta
Definition
MuonNextBCTOB.h:66
TCS::MuonNextBCTOB::nBitsEta
static unsigned int nBitsEta()
Definition
MuonNextBCTOB.h:18
TCS::MuonNextBCTOB::Et
unsigned int Et() const
Definition
MuonNextBCTOB.h:35
TCS::MuonNextBCTOB::~MuonNextBCTOB
virtual ~MuonNextBCTOB()
TCS::MuonNextBCTOB::nBitsEt
static unsigned int nBitsEt()
Definition
MuonNextBCTOB.h:16
TCS::MuonNextBCTOB::m_phi
int m_phi
Definition
MuonNextBCTOB.h:72
TCS::MuonNextBCTOB::g_nBitsPhi
static const unsigned int g_nBitsPhi
Definition
MuonNextBCTOB.h:67
TCS::MuonNextBCTOB::phi
int phi() const
Definition
MuonNextBCTOB.h:38
TCS::MuonNextBCTOB::print
virtual void print(std::ostream &o) const
Definition
MuonNextBCTOB.cxx:42
TCS::MuonNextBCTOB::g_nBitsIsolation
static const unsigned int g_nBitsIsolation
Definition
MuonNextBCTOB.h:65
TCS::MuonNextBCTOB::isolation
unsigned int isolation() const
Definition
MuonNextBCTOB.h:36
TCS::MuonNextBCTOB::createOnHeap
static MuonNextBCTOB * createOnHeap(const MuonNextBCTOB &cl)
Definition
MuonNextBCTOB.cxx:33
et
Extra patterns decribing particle interation process.
Generated on
for ATLAS Offline Software by
1.17.0