ATLAS Offline Software
Loading...
Searching...
No Matches
jJetTOB.cxx
Go to the documentation of this file.
1// Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
4
6
7// constructors
8// default constructor
9TCS::jJetTOB::jJetTOB(uint32_t roiWord, const std::string& tobName) :
11{}
12
13// constructor with initial values
14TCS::jJetTOB::jJetTOB(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{}
20
21// copy constructor
22TCS::jJetTOB::jJetTOB(const jJetTOB & jet) = default;
23
24TCS::jJetTOB::~jJetTOB() = default;
25
28 return fg_heap.create(jet);
29}
30
31void
33 return fg_heap.clear();
34}
35
36void
37TCS::jJetTOB::print(std::ostream &o) const {
38 o << "jJet energy: " << Et() << ", eta: " << eta() << ", phi: " << phi();
39}
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
static jJetTOB * createOnHeap(const jJetTOB &jet)
Definition jJetTOB.cxx:27
jJetTOB(uint32_t roiWord=0, const std::string &tobName="jJetTOB")
Definition jJetTOB.cxx:9
unsigned int m_Et
Definition jJetTOB.h:63
static void clearHeap()
Definition jJetTOB.cxx:32
virtual ~jJetTOB()
unsigned phi() const
Definition jJetTOB.h:34
unsigned int Et() const
Definition jJetTOB.h:32
virtual void print(std::ostream &o) const
Definition jJetTOB.cxx:37
int eta() const
Definition jJetTOB.h:33
unsigned m_phi
Definition jJetTOB.h:65
static thread_local Heap< TCS::jJetTOB > fg_heap
Definition jJetTOB.h:73