ATLAS Offline Software
Loading...
Searching...
No Matches
MetTOB.cxx
Go to the documentation of this file.
1// Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2
4
6
7const unsigned int TCS::MetTOB::g_nBitsEx = 15;
8const unsigned int TCS::MetTOB::g_nBitsEy = 15;
9const unsigned int TCS::MetTOB::g_nBitsEt = 15;
10
11// default constructor
13{}
14
15// constructor with initial values
16TCS::MetTOB::MetTOB(int ex, int ey, unsigned int et) : BaseTOB(0,"MetTOB")
17 , m_Ex( ex )
18 , m_Ey( ey )
19 , m_Et( et )
20{}
21
22// constructor with initial values
23TCS::MetTOB::MetTOB(const MetTOB & met) : BaseTOB(0,"MetTOB")
24 , m_Ex( met.m_Ex )
25 , m_Ey( met.m_Ey )
26 , m_Et( met.m_Et )
27{}
28
29// destructor
30TCS::MetTOB::~MetTOB() = default;
31
34 return fg_heap.create(cl);
35}
36
37void
39 return fg_heap.clear();
40}
41
42void TCS::MetTOB::print(std::ostream &o) const {
43 o << "MET signed Ex: " << Ex() << ", signed Ey: " << Ey() << ", sum Et: " << Et();
44}
BaseTOB(uint32_t roiWord, const std::string &tobType)
Definition BaseTOB.cxx:11
static thread_local Heap< TCS::MetTOB > fg_heap
Definition MetTOB.h:73
static const unsigned int g_nBitsEt
Definition MetTOB.h:63
virtual void print(std::ostream &o) const
Definition MetTOB.cxx:42
static const unsigned int g_nBitsEx
Definition MetTOB.h:61
int m_Ex
Definition MetTOB.h:65
unsigned int Et() const
Definition MetTOB.h:36
int Ex() const
Definition MetTOB.h:34
unsigned int m_Et
Definition MetTOB.h:67
int Ey() const
Definition MetTOB.h:35
static void clearHeap()
Definition MetTOB.cxx:38
static const unsigned int g_nBitsEy
Definition MetTOB.h:62
static MetTOB * createOnHeap(const MetTOB &cl)
Definition MetTOB.cxx:33
virtual ~MetTOB()
int m_Ey
Definition MetTOB.h:66
Extra patterns decribing particle interation process.