ATLAS Offline Software
Loading...
Searching...
No Matches
JetTOB.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::JetTOB::JetTOB(uint32_t roiWord, std::string_view tobName) :
12{}
13
14// constructor with initial values
15TCS::JetTOB::JetTOB(unsigned int Et1, unsigned int Et2, int eta, int phi, uint32_t roiWord, std::string_view tobName) :
17 , m_Et1(Et1)
18 , m_Et2(Et2)
19 , m_eta(eta)
20 , m_phi(phi)
23 , m_etaDouble(eta/10.)
24 , m_phiDouble(phi/10.)
25{}
26
27// copy constructor
28TCS::JetTOB::JetTOB(const JetTOB & jet) = default;
29
30TCS::JetTOB::~JetTOB() = default;
31
34 return fg_heap.create(jet);
35}
36
37void
39 return fg_heap.clear();
40}
41
42void
43TCS::JetTOB::print(std::ostream &o) const {
44 o << "jet energy wide window: " << Et1() << ", narrow window: " << Et2() << ", eta: " << eta() << ", phi: " << phi();
45}
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
int m_phi
Definition JetTOB.h:83
int m_eta
Definition JetTOB.h:82
static JetTOB * createOnHeap(const JetTOB &jet)
Definition JetTOB.cxx:33
unsigned int m_Et1
Definition JetTOB.h:80
double m_Et2Double
Definition JetTOB.h:86
static Heap< TCS::JetTOB > fg_heap
Definition JetTOB.h:92
static void clearHeap()
Definition JetTOB.cxx:38
unsigned int m_Et2
Definition JetTOB.h:81
int eta() const
Definition JetTOB.h:44
unsigned int Et1() const
Definition JetTOB.h:40
virtual void print(std::ostream &o) const
Definition JetTOB.cxx:43
double m_phiDouble
Definition JetTOB.h:88
JetTOB(uint32_t roiWord=0, std::string_view tobName="JetTOB")
Definition JetTOB.cxx:10
unsigned int Et2() const
Definition JetTOB.h:42
int phi() const
Definition JetTOB.h:45
virtual ~JetTOB()
double m_etaDouble
Definition JetTOB.h:87
double m_Et1Double
Definition JetTOB.h:85