ATLAS Offline Software
LateMuonTOB.cxx
Go to the documentation of this file.
1 // Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 
4 
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
28 
30 
33 {
34  return fg_heap.create(cl);
35 }
36 
37 void
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 }
TCS::LateMuonTOB
Definition: LateMuonTOB.h:13
TCS::LateMuonTOB::fg_heap
static thread_local Heap< TCS::LateMuonTOB > fg_heap
Definition: LateMuonTOB.h:100
xAOD::muon
@ muon
Definition: TrackingPrimitives.h:195
et
Extra patterns decribing particle interation process.
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TCS::LateMuonTOB::clearHeap
static void clearHeap()
Definition: LateMuonTOB.cxx:38
TCS::LateMuonTOB::~LateMuonTOB
virtual ~LateMuonTOB()
TCS::Heap< TCS::LateMuonTOB >
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
TCS::BaseTOB
Definition: BaseTOB.h:12
TCS::LateMuonTOB::createOnHeap
static LateMuonTOB * createOnHeap(const LateMuonTOB &cl)
Definition: LateMuonTOB.cxx:32
charge
double charge(const T &p)
Definition: AtlasPID.h:538
TCS::LateMuonTOB::LateMuonTOB
LateMuonTOB(uint32_t roiWord=0, const std::string &tobName="LateMuonTOB")
Definition: LateMuonTOB.cxx:13
TCS::LateMuonTOB::print
virtual void print(std::ostream &o) const
Definition: LateMuonTOB.cxx:42
TCS::LateMuonTOB::g_nBitsPhi
static const unsigned int g_nBitsPhi
Definition: LateMuonTOB.h:82
TCS::LateMuonTOB::g_nBitsEt
static const unsigned int g_nBitsEt
Definition: LateMuonTOB.h:79
TCS::LateMuonTOB::g_nBitsEta
static const unsigned int g_nBitsEta
Definition: LateMuonTOB.h:81
LateMuonTOB.h
TCS::LateMuonTOB::g_nBitsIsolation
static const unsigned int g_nBitsIsolation
Definition: LateMuonTOB.h:80
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26