ATLAS Offline Software
eEmTOB.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/eEmTOB.h"
4 
6 
7 const unsigned int TCS::eEmTOB::g_nBitsEt = 13;
8 const unsigned int TCS::eEmTOB::g_nBitsEta = 9;
9 const unsigned int TCS::eEmTOB::g_nBitsPhi = 7;
10 
11 // default constructor
12 TCS::eEmTOB::eEmTOB(uint32_t roiWord, const std::string& tobName) :
13  BaseTOB( roiWord,tobName )
14 {}
15 
16 // constructor with initial values
17 TCS::eEmTOB::eEmTOB(unsigned int et, int eta, unsigned int phi, inputTOBType_t tobType, uint32_t roiWord, const std::string& tobName) :
18  BaseTOB( roiWord,tobName )
19  , m_Et( sizeCheck(et, nBitsEt()) )
20  , m_eta( sizeCheck(eta, nBitsEta()) )
21  , m_phi( sizeCheck(phi, nBitsPhi()) )
22  , m_tobType( tobType )
23 {}
24 
25 // copy constructor
26 TCS::eEmTOB::eEmTOB(const TCS::eEmTOB & eem) = default;
27 
28 // destructor
29 TCS::eEmTOB::~eEmTOB() = default;
30 
31 
34  return fg_heap.create(eem);
35 }
36 
37 void
39  return fg_heap.clear();
40 }
41 
42 void TCS::eEmTOB::print(std::ostream &o) const {
43  o << "eEm energy: " << Et() << ", eta: " << eta() << ", phi: " << phi();
44 }
et
Extra patterns decribing particle interation process.
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TCS::eEmTOB::g_nBitsPhi
static const unsigned int g_nBitsPhi
Definition: eEmTOB.h:72
TCS::eEmTOB::createOnHeap
static eEmTOB * createOnHeap(const eEmTOB &eem)
Definition: eEmTOB.cxx:33
TCS::eEmTOB::fg_heap
static thread_local Heap< TCS::eEmTOB > fg_heap
Definition: eEmTOB.h:88
TCS::eEmTOB::clearHeap
static void clearHeap()
Definition: eEmTOB.cxx:38
TCS::Heap< TCS::eEmTOB >
TCS::eEmTOB::g_nBitsEta
static const unsigned int g_nBitsEta
Definition: eEmTOB.h:71
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
TCS::eEmTOB::print
virtual void print(std::ostream &o) const
Definition: eEmTOB.cxx:42
TCS::BaseTOB
Definition: BaseTOB.h:12
TCS::eEmTOB
Definition: eEmTOB.h:13
TCS::eEmTOB::eEmTOB
eEmTOB(uint32_t roiWord=0, const std::string &tobName="eEmTOB")
Definition: eEmTOB.cxx:12
eEmTOB.h
TCS::inputTOBType_t
inputTOBType_t
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:10
TCS::eEmTOB::g_nBitsEt
static const unsigned int g_nBitsEt
Definition: eEmTOB.h:70
TCS::eEmTOB::~eEmTOB
virtual ~eEmTOB()