ATLAS Offline Software
eTauTOB.cxx
Go to the documentation of this file.
1 // Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 #include "L1TopoEvent/eTauTOB.h"
4 
6 
7 const unsigned int TCS::eTauTOB::g_nBitsEt = 13;
8 const unsigned int TCS::eTauTOB::g_nBitsEta = 9;
9 const unsigned int TCS::eTauTOB::g_nBitsPhi = 7;
10 
11 // default constructor
12 TCS::eTauTOB::eTauTOB(uint32_t roiWord, const std::string& tobName) :
13  BaseTOB( roiWord,tobName )
14 {}
15 
16 // constructor with initial values
17 TCS::eTauTOB::eTauTOB(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::eTauTOB::eTauTOB(const TCS::eTauTOB & eem) = default;
27 
28 // destructor
29 TCS::eTauTOB::~eTauTOB() = default;
30 
31 
34  return fg_heap.create(eem);
35 }
36 
37 void
39  return fg_heap.clear();
40 }
41 
42 void TCS::eTauTOB::print(std::ostream &o) const {
43  o << "eTau energy: " << Et() << ", eta: " << eta() << ", phi: " << phi();
44 }
TCS::eTauTOB::g_nBitsEta
static const unsigned int g_nBitsEta
Definition: eTauTOB.h:69
et
Extra patterns decribing particle interation process.
TCS::eTauTOB::eTauTOB
eTauTOB(uint32_t roiWord=0, const std::string &tobName="eTauTOB")
Definition: eTauTOB.cxx:12
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TCS::eTauTOB::g_nBitsPhi
static const unsigned int g_nBitsPhi
Definition: eTauTOB.h:70
TCS::eTauTOB::clearHeap
static void clearHeap()
Definition: eTauTOB.cxx:38
TCS::Heap< TCS::eTauTOB >
TCS::eTauTOB::~eTauTOB
virtual ~eTauTOB()
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
TCS::eTauTOB
Definition: eTauTOB.h:13
TCS::BaseTOB
Definition: BaseTOB.h:12
TCS::eTauTOB::print
virtual void print(std::ostream &o) const
Definition: eTauTOB.cxx:42
eTauTOB.h
TCS::eTauTOB::fg_heap
static thread_local Heap< TCS::eTauTOB > fg_heap
Definition: eTauTOB.h:85
TCS::inputTOBType_t
inputTOBType_t
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:10
TCS::eTauTOB::createOnHeap
static eTauTOB * createOnHeap(const eTauTOB &eem)
Definition: eTauTOB.cxx:33
TCS::eTauTOB::g_nBitsEt
static const unsigned int g_nBitsEt
Definition: eTauTOB.h:68