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