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