ATLAS Offline Software
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 
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 
31  return fg_heap.create(jet);
32 }
33 
34 void
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 }
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
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