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