ATLAS Offline Software
jLJetTOB.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 #ifndef JLJETTOB_H
4 #define JLJETTOB_H
5 
6 #include <iostream>
7 
8 #include "L1TopoEvent/BaseTOB.h"
9 #include "L1TopoEvent/Heap.h"
10 
11 
12 namespace TCS {
13 
14  class GenericTOB;
15 
16  class jLJetTOB : public BaseTOB {
17  public:
18 
19  // default constructor
20  jLJetTOB(uint32_t roiWord = 0, const std::string& tobName = "jLJetTOB");
21 
22  // copy constructor
23  jLJetTOB(const jLJetTOB & jet);
24 
25  // constructor with initial values
26  jLJetTOB(unsigned int Et, int eta, unsigned phi, uint32_t roiWord = 0, const std::string& tobName = "jLJetTOB" );
27 
28  // destructor
29  virtual ~jLJetTOB();
30 
31  // accessors
32  unsigned int Et() const { return m_Et; }
33  int eta() const { return m_eta; }
34  unsigned phi() const { return m_phi; }
35 
36  double EtDouble() const { return m_EtDouble; }
37  double etaDouble() const { return m_etaDouble; }
38  double phiDouble() const { return m_phiDouble; }
39 
40  // setters
41  void setEt(int et) { m_Et = et; }
42  void setEta(int eta) { m_eta = eta; }
43  void setPhi(int phi) { m_phi = phi; }
44 
45  void setEtDouble(double et) { m_EtDouble = et; }
46  void setEtaDouble(double eta) { m_etaDouble = eta; }
47  void setPhiDouble(double phi) { m_phiDouble = phi; }
48 
49  inputTOBType_t tobType() const { return JET; }
50 
51  static jLJetTOB* createOnHeap(const jLJetTOB& jet);
52  static void clearHeap();
53 
54  static const Heap<TCS::jLJetTOB>& heap() { return fg_heap; }
55 
56  private:
57 
58  static const unsigned int g_nBitsEt;
59  static const unsigned int g_nBitsIsolation;
60  static const unsigned int g_nBitsEta;
61  static const unsigned int g_nBitsPhi;
62 
63  unsigned int m_Et { 0 };
64  int m_eta { 0 };
65  unsigned m_phi { 0 };
66 
67  double m_EtDouble { 0 };
68  double m_etaDouble { 0 };
69  double m_phiDouble { 0 };
70 
71  virtual void print(std::ostream &o) const;
72 
73  static thread_local Heap<TCS::jLJetTOB> fg_heap;
74  };
75 
76 }
77 
78 #endif
TCS::BaseTOB::tobName
const std::string & tobName() const
Definition: BaseTOB.h:23
et
Extra patterns decribing particle interation process.
Heap.h
TCS::jLJetTOB::~jLJetTOB
virtual ~jLJetTOB()
TCS::jLJetTOB::phi
unsigned phi() const
Definition: jLJetTOB.h:34
xAOD::et
et
Definition: TrigEMCluster_v1.cxx:25
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
BaseTOB.h
TCS::jLJetTOB::m_EtDouble
double m_EtDouble
Definition: jLJetTOB.h:67
TCS::jLJetTOB::jLJetTOB
jLJetTOB(uint32_t roiWord=0, const std::string &tobName="jLJetTOB")
Definition: jLJetTOB.cxx:9
TCS::jLJetTOB::m_phiDouble
double m_phiDouble
Definition: jLJetTOB.h:69
TCS::jLJetTOB::clearHeap
static void clearHeap()
Definition: jLJetTOB.cxx:32
TCS::jLJetTOB::fg_heap
static thread_local Heap< TCS::jLJetTOB > fg_heap
Definition: jLJetTOB.h:73
TCS::BaseTOB::roiWord
uint32_t roiWord() const
Definition: BaseTOB.h:21
TCS::jLJetTOB::setEtDouble
void setEtDouble(double et)
Definition: jLJetTOB.h:45
TCS::Heap< TCS::jLJetTOB >
TCS::jLJetTOB::phiDouble
double phiDouble() const
Definition: jLJetTOB.h:38
TCS::jLJetTOB::etaDouble
double etaDouble() const
Definition: jLJetTOB.h:37
TCS::jLJetTOB::jLJetTOB
jLJetTOB(const jLJetTOB &jet)
TCS::JET
@ JET
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:12
TCS::jLJetTOB::m_etaDouble
double m_etaDouble
Definition: jLJetTOB.h:68
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
TCS::jLJetTOB::g_nBitsEt
static const unsigned int g_nBitsEt
Definition: jLJetTOB.h:58
TCS::jLJetTOB::m_phi
unsigned m_phi
Definition: jLJetTOB.h:65
TCS::jLJetTOB
Definition: jLJetTOB.h:16
TCS::BaseTOB
Definition: BaseTOB.h:12
TCS::jLJetTOB::setEta
void setEta(int eta)
Definition: jLJetTOB.h:42
TCS::jLJetTOB::g_nBitsPhi
static const unsigned int g_nBitsPhi
Definition: jLJetTOB.h:61
TCS::jLJetTOB::tobType
inputTOBType_t tobType() const
Definition: jLJetTOB.h:49
TCS::jLJetTOB::g_nBitsIsolation
static const unsigned int g_nBitsIsolation
Definition: jLJetTOB.h:59
TCS::jLJetTOB::g_nBitsEta
static const unsigned int g_nBitsEta
Definition: jLJetTOB.h:60
TCS::jLJetTOB::setEt
void setEt(int et)
Definition: jLJetTOB.h:41
TCS::jLJetTOB::heap
static const Heap< TCS::jLJetTOB > & heap()
Definition: jLJetTOB.h:54
TCS::jLJetTOB::EtDouble
double EtDouble() const
Definition: jLJetTOB.h:36
TCS::inputTOBType_t
inputTOBType_t
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:10
TCS::jLJetTOB::m_eta
int m_eta
Definition: jLJetTOB.h:64
TCS::jLJetTOB::setEtaDouble
void setEtaDouble(double eta)
Definition: jLJetTOB.h:46
TCS::jLJetTOB::Et
unsigned int Et() const
Definition: jLJetTOB.h:32
TCS
Definition: Global/GlobalSimulation/src/IO/Decision.h:18
TCS::jLJetTOB::eta
int eta() const
Definition: jLJetTOB.h:33
TCS::jLJetTOB::setPhiDouble
void setPhiDouble(double phi)
Definition: jLJetTOB.h:47
TCS::jLJetTOB::print
virtual void print(std::ostream &o) const
Definition: jLJetTOB.cxx:37
TCS::jLJetTOB::setPhi
void setPhi(int phi)
Definition: jLJetTOB.h:43
TCS::jLJetTOB::m_Et
unsigned int m_Et
Definition: jLJetTOB.h:63
TCS::jLJetTOB::createOnHeap
static jLJetTOB * createOnHeap(const jLJetTOB &jet)
Definition: jLJetTOB.cxx:27