ATLAS Offline Software
MuonTOB.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/MuonTOB.h"
4 
6 
7 TCS::MuonTOB::MuonTOB(uint32_t roiWord, const std::string& tobName) :
8  BaseTOB( roiWord,tobName )
9 {}
10 
11 // constructor with initial values
12 TCS::MuonTOB::MuonTOB(unsigned int et, unsigned int isolation, int eta, unsigned int phi, uint32_t roiWord, const std::string& tobName) :
13  BaseTOB( roiWord,tobName )
14  , m_Et( sizeCheck(et, nBitsEt()) )
15  , m_isolation( sizeCheck( isolation, nBitsIsolation()) )
16  , m_eta( sizeCheck(eta, nBitsEta()) )
17  , m_phi( sizeCheck(phi, nBitsPhi()) )
18 {}
19 
20 // copy constructor
21 TCS::MuonTOB::MuonTOB(const TCS::MuonTOB & muon) = default;
22 
23 // destructor
24 TCS::MuonTOB::~MuonTOB() = default;
25 
26 
29  return fg_heap.create(muon);
30 }
31 
32 void
34  return fg_heap.clear();
35 }
36 
37 void TCS::MuonTOB::print(std::ostream &o) const {
38  o << "muon energy: " << Et() << ", eta: " << eta() << ", phi: " << phi() << ", bw2or3: " << bw2or3() << ", innerCoin: " << innerCoin() << ", goodMF: " << goodMF() << ", charge: " << charge() << ", is2cand: " << is2cand() << ", isTGC: " << isTGC();
39 }
xAOD::muon
@ muon
Definition: TrackingPrimitives.h:195
et
Extra patterns decribing particle interation process.
TCS::MuonTOB
Definition: MuonTOB.h:14
TCS::MuonTOB::fg_heap
static thread_local Heap< TCS::MuonTOB > fg_heap
Definition: MuonTOB.h:105
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
MuonTOB.h
TCS::Heap< TCS::MuonTOB >
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
TCS::MuonTOB::clearHeap
static void clearHeap()
Definition: MuonTOB.cxx:33
TCS::BaseTOB
Definition: BaseTOB.h:12
TCS::MuonTOB::~MuonTOB
virtual ~MuonTOB()
TCS::MuonTOB::MuonTOB
MuonTOB(uint32_t roiWord=0, const std::string &tobName="MuonTOB")
Definition: MuonTOB.cxx:7
charge
double charge(const T &p)
Definition: AtlasPID.h:756
TCS::MuonTOB::createOnHeap
static MuonTOB * createOnHeap(const MuonTOB &cl)
Definition: MuonTOB.cxx:28
TCS::MuonTOB::print
virtual void print(std::ostream &o) const
Definition: MuonTOB.cxx:37