ATLAS Offline Software
jTETOB.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/jTETOB.h"
4 
5 thread_local TCS::Heap<TCS::jTETOB> TCS::jTETOB::fg_heap("jTETOB");
6 
7 // default constructor
8 TCS::jTETOB::jTETOB() : BaseTOB(0,"jTETOB")
9 {}
10 
11 // constructor with initial values
12 TCS::jTETOB::jTETOB(unsigned int sumEt, inputTOBType_t tobType) : BaseTOB(0,"jTETOB")
13  , m_sumEt( sumEt )
14  , m_tobType( tobType )
15 {}
16 
17 
18 // copy constructor
19 TCS::jTETOB::jTETOB(const TCS::jTETOB & jte) = default;
20 
21 
22 // destructor
23 TCS::jTETOB::~jTETOB() = default;
24 
27  return fg_heap.create(jte);
28 }
29 
30 void
32  return fg_heap.clear();
33 }
34 
35 void TCS::jTETOB::print(std::ostream &o) const {
36  o << "jTE type: " << tobType() << ", sumEt: " << sumEt();
37 }
TCS::jTETOB::~jTETOB
virtual ~jTETOB()
TCS::jTETOB::print
virtual void print(std::ostream &o) const
Definition: jTETOB.cxx:35
TCS::jTETOB::createOnHeap
static jTETOB * createOnHeap(const jTETOB &jte)
Definition: jTETOB.cxx:26
TCS::Heap< TCS::jTETOB >
TCS::jTETOB::jTETOB
jTETOB()
Definition: jTETOB.cxx:8
TCS::jTETOB::clearHeap
static void clearHeap()
Definition: jTETOB.cxx:31
TCS::BaseTOB
Definition: BaseTOB.h:12
TCS::jTETOB::fg_heap
static thread_local Heap< TCS::jTETOB > fg_heap
Definition: jTETOB.h:64
jTETOB.h
TCS::jTETOB
Definition: jTETOB.h:13
TCS::inputTOBType_t
inputTOBType_t
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:10