ATLAS Offline Software
Loading...
Searching...
No Matches
L1Topo/L1TopoEvent/Root/eEmTOB.cxx
Go to the documentation of this file.
1// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
4#include <iostream>
5
7
8const unsigned int TCS::eEmTOB::g_nBitsEt = 13;
9const unsigned int TCS::eEmTOB::g_nBitsEta = 9;
10const unsigned int TCS::eEmTOB::g_nBitsPhi = 7;
11
12// default constructor
13TCS::eEmTOB::eEmTOB(uint32_t roiWord, std::string_view tobName) :
15{}
16
17// constructor with initial values
18TCS::eEmTOB::eEmTOB(unsigned int et, int eta, unsigned int phi, inputTOBType_t tobType, uint32_t roiWord, std::string_view tobName) :
20 , m_Et( sizeCheck(et, nBitsEt()) )
24{}
25
26// copy constructor
27TCS::eEmTOB::eEmTOB(const TCS::eEmTOB & eem) = default;
28
29// destructor
30TCS::eEmTOB::~eEmTOB() = default;
31
32
35 return fg_heap.create(eem);
36}
37
38void
40 return fg_heap.clear();
41}
42
43void TCS::eEmTOB::print(std::ostream &o) const {
44 o << "eEm energy: " << Et() << ", eta: " << eta() << ", phi: " << phi();
45}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
const std::string & tobName() const
Definition BaseTOB.h:24
int sizeCheck(int value, unsigned int size) const
Definition BaseTOB.cxx:32
uint32_t roiWord() const
Definition BaseTOB.h:22
BaseTOB(uint32_t roiWord, const std::string_view tobType)
Definition BaseTOB.cxx:11
static const unsigned int g_nBitsEta
static const unsigned int g_nBitsEt
eEmTOB(uint32_t roiWord=0, std::string_view tobName="eEmTOB")
static Heap< TCS::eEmTOB > fg_heap
virtual ~eEmTOB()
static eEmTOB * createOnHeap(const eEmTOB &eem)
static const unsigned int g_nBitsPhi
virtual void print(std::ostream &o) const
Extra patterns decribing particle interation process.