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