ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
L1Topo
L1TopoEvent
Root
LateMuonTOB.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/LateMuonTOB.h
"
4
5
thread_local
TCS::Heap<TCS::LateMuonTOB>
TCS::LateMuonTOB::fg_heap
(
"LateMuon"
);
6
7
const
unsigned
int
TCS::LateMuonTOB::g_nBitsEt
= 13;
8
const
unsigned
int
TCS::LateMuonTOB::g_nBitsIsolation
= 5;
9
const
unsigned
int
TCS::LateMuonTOB::g_nBitsEta
= 9;
10
const
unsigned
int
TCS::LateMuonTOB::g_nBitsPhi
= 7;
11
12
// default constructor
13
TCS::LateMuonTOB::LateMuonTOB
(uint32_t
roiWord
,
const
std::string&
tobName
) :
14
BaseTOB
(
roiWord
,
tobName
)
15
{}
16
17
// constructor with initial values
18
TCS::LateMuonTOB::LateMuonTOB
(
unsigned
int
et
,
unsigned
int
isolation
,
int
eta
,
unsigned
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::LateMuonTOB::LateMuonTOB
(
const
TCS::LateMuonTOB
& muon) =
default
;
28
29
TCS::LateMuonTOB::~LateMuonTOB
() =
default
;
30
31
TCS::LateMuonTOB
*
32
TCS::LateMuonTOB::createOnHeap
(
const
LateMuonTOB
& cl)
33
{
34
return
fg_heap
.create(cl);
35
}
36
37
void
38
TCS::LateMuonTOB::clearHeap
() {
39
return
fg_heap
.clear();
40
}
41
42
void
TCS::LateMuonTOB::print
(std::ostream &o)
const
{
43
o <<
"late muon energy: "
<<
Et
() <<
", eta: "
<<
eta
() <<
", phi: "
<<
phi
() <<
", bw2or3: "
<<
bw2or3
() <<
", innerCoin: "
<<
innerCoin
() <<
", goodMF: "
<<
goodMF
() <<
", charge: "
<<
charge
() <<
", is2cand: "
<<
is2cand
() <<
", isTGC: "
<<
isTGC
();
44
}
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
charge
double charge(const T &p)
Definition
AtlasPID.h:1003
LateMuonTOB.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::LateMuonTOB
Definition
LateMuonTOB.h:13
TCS::LateMuonTOB::innerCoin
int innerCoin() const
Definition
LateMuonTOB.h:41
TCS::LateMuonTOB::g_nBitsIsolation
static const unsigned int g_nBitsIsolation
Definition
LateMuonTOB.h:80
TCS::LateMuonTOB::m_eta
int m_eta
Definition
LateMuonTOB.h:86
TCS::LateMuonTOB::LateMuonTOB
LateMuonTOB(uint32_t roiWord=0, const std::string &tobName="LateMuonTOB")
Definition
LateMuonTOB.cxx:13
TCS::LateMuonTOB::g_nBitsEt
static const unsigned int g_nBitsEt
Definition
LateMuonTOB.h:79
TCS::LateMuonTOB::~LateMuonTOB
virtual ~LateMuonTOB()
TCS::LateMuonTOB::createOnHeap
static LateMuonTOB * createOnHeap(const LateMuonTOB &cl)
Definition
LateMuonTOB.cxx:32
TCS::LateMuonTOB::g_nBitsPhi
static const unsigned int g_nBitsPhi
Definition
LateMuonTOB.h:82
TCS::LateMuonTOB::goodMF
int goodMF() const
Definition
LateMuonTOB.h:42
TCS::LateMuonTOB::bw2or3
int bw2or3() const
Definition
LateMuonTOB.h:40
TCS::LateMuonTOB::is2cand
int is2cand() const
Definition
LateMuonTOB.h:44
TCS::LateMuonTOB::print
virtual void print(std::ostream &o) const
Definition
LateMuonTOB.cxx:42
TCS::LateMuonTOB::fg_heap
static Heap< TCS::LateMuonTOB > fg_heap
Definition
LateMuonTOB.h:100
TCS::LateMuonTOB::isTGC
bool isTGC() const
Definition
LateMuonTOB.h:50
TCS::LateMuonTOB::phi
unsigned int phi() const
Definition
LateMuonTOB.h:38
TCS::LateMuonTOB::m_phi
unsigned int m_phi
Definition
LateMuonTOB.h:87
TCS::LateMuonTOB::g_nBitsEta
static const unsigned int g_nBitsEta
Definition
LateMuonTOB.h:81
TCS::LateMuonTOB::isolation
unsigned int isolation() const
Definition
LateMuonTOB.h:36
TCS::LateMuonTOB::Et
unsigned int Et() const
Definition
LateMuonTOB.h:35
TCS::LateMuonTOB::nBitsEt
static unsigned int nBitsEt()
Definition
LateMuonTOB.h:16
TCS::LateMuonTOB::nBitsEta
static unsigned int nBitsEta()
Definition
LateMuonTOB.h:18
TCS::LateMuonTOB::nBitsIsolation
static unsigned int nBitsIsolation()
Definition
LateMuonTOB.h:17
TCS::LateMuonTOB::m_isolation
unsigned int m_isolation
Definition
LateMuonTOB.h:85
TCS::LateMuonTOB::clearHeap
static void clearHeap()
Definition
LateMuonTOB.cxx:38
TCS::LateMuonTOB::eta
int eta() const
Definition
LateMuonTOB.h:37
TCS::LateMuonTOB::nBitsPhi
static unsigned int nBitsPhi()
Definition
LateMuonTOB.h:19
TCS::LateMuonTOB::m_Et
unsigned int m_Et
Definition
LateMuonTOB.h:84
et
Extra patterns decribing particle interation process.
Generated on
for ATLAS Offline Software by
1.17.0