ATLAS Offline Software
Loading...
Searching...
No Matches
gJetTOB.cxx
Go to the documentation of this file.
1// Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2
4
6
7// constructors
8// default constructor
9TCS::gJetTOB::gJetTOB(uint32_t roiWord, const std::string& tobName) :
11{}
12
13// constructor with initial values
14TCS::gJetTOB::gJetTOB(unsigned int Et, int eta, unsigned phi, uint32_t roiWord, const std::string& 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
25TCS::gJetTOB::gJetTOB(const gJetTOB & jet) = default;
26
27TCS::gJetTOB::~gJetTOB() = default;
28
31 return fg_heap.create(jet);
32}
33
34void
36 return fg_heap.clear();
37}
38
39void
40TCS::gJetTOB::print(std::ostream &o) const {
41 o << "gJet energy: " << Et() << ", eta: " << eta() << ", phi: " << phi();
42}
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
const std::string & tobName() const
Definition BaseTOB.h:23
uint32_t roiWord() const
Definition BaseTOB.h:21
BaseTOB(uint32_t roiWord, const std::string &tobType)
Definition BaseTOB.cxx:11
virtual ~gJetTOB()
gJetTOB(uint32_t roiWord=0, const std::string &tobName="gJetTOB")
Definition gJetTOB.cxx:9
unsigned int m_Et
Definition gJetTOB.h:68
unsigned m_phi
Definition gJetTOB.h:70
double m_etaDouble
Definition gJetTOB.h:73
double m_phiDouble
Definition gJetTOB.h:74
static void clearHeap()
Definition gJetTOB.cxx:35
static gJetTOB * createOnHeap(const gJetTOB &jet)
Definition gJetTOB.cxx:30
static thread_local Heap< TCS::gJetTOB > fg_heap
Definition gJetTOB.h:78
unsigned phi() const
Definition gJetTOB.h:39
double m_EtDouble
Definition gJetTOB.h:72
virtual void print(std::ostream &o) const
Definition gJetTOB.cxx:40
int eta() const
Definition gJetTOB.h:38
unsigned int Et() const
Definition gJetTOB.h:35