ATLAS Offline Software
Trigger
TrigT1
L1Topo
L1TopoEvent
Root
gJetTOB.cxx
Go to the documentation of this file.
1
// Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2
3
#include "
L1TopoEvent/gJetTOB.h
"
4
5
thread_local
TCS::Heap<TCS::gJetTOB>
TCS::gJetTOB::fg_heap
(
"gJet"
);
6
7
// constructors
8
// default constructor
9
TCS::gJetTOB::gJetTOB
(
uint32_t
roiWord
,
const
std::string& tobName) :
10
BaseTOB
(
roiWord
,tobName )
11
{}
12
13
// constructor with initial values
14
TCS::gJetTOB::gJetTOB
(
unsigned
int
Et,
int
eta,
unsigned
phi,
uint32_t
roiWord
,
const
std::string& tobName) :
15
BaseTOB
(
roiWord
,tobName )
16
, m_Et(Et)
17
, m_eta(eta)
18
, m_phi(phi)
19
, m_EtDouble(Et/10.)
20
, m_etaDouble(eta/40.)
21
, m_phiDouble(phi/20.)
22
{}
23
24
// copy constructor
25
TCS::gJetTOB::gJetTOB
(
const
gJetTOB
&
jet
) =
default
;
26
27
TCS::gJetTOB::~gJetTOB
() =
default
;
28
29
TCS::gJetTOB
*
30
TCS::gJetTOB::createOnHeap
(
const
gJetTOB
&
jet
) {
31
return
fg_heap.create(
jet
);
32
}
33
34
void
35
TCS::gJetTOB::clearHeap
() {
36
return
fg_heap.clear();
37
}
38
39
void
40
TCS::gJetTOB::print
(std::ostream &o)
const
{
41
o <<
"gJet energy: "
<< Et() <<
", eta: "
<< eta() <<
", phi: "
<< phi();
42
}
xAOD::uint32_t
setEventNumber uint32_t
Definition:
EventInfo_v1.cxx:127
gJetTOB.h
TCS::gJetTOB::print
virtual void print(std::ostream &o) const
Definition:
gJetTOB.cxx:40
TCS::gJetTOB::gJetTOB
gJetTOB(uint32_t roiWord=0, const std::string &tobName="gJetTOB")
Definition:
gJetTOB.cxx:9
TCS::Heap< TCS::gJetTOB >
xAOD::roiWord
roiWord
Definition:
TrigMissingET_v1.cxx:36
jet
Definition:
JetCalibTools_PlotJESFactors.cxx:23
TCS::gJetTOB::clearHeap
static void clearHeap()
Definition:
gJetTOB.cxx:35
TCS::BaseTOB
Definition:
BaseTOB.h:12
TCS::gJetTOB::createOnHeap
static gJetTOB * createOnHeap(const gJetTOB &jet)
Definition:
gJetTOB.cxx:30
TCS::gJetTOB
Definition:
gJetTOB.h:18
TCS::gJetTOB::~gJetTOB
virtual ~gJetTOB()
TCS::gJetTOB::fg_heap
static thread_local Heap< TCS::gJetTOB > fg_heap
Definition:
gJetTOB.h:78
Generated on Thu Jan 9 2025 21:10:45 for ATLAS Offline Software by
1.8.18