ATLAS Offline Software
Loading...
Searching...
No Matches
Jet1TOB.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
11
12#ifndef GLOBALSIM_JET1TOB_H
13#define GLOBALSIM_JET1TOB_H
14
15#include "CommonTOB.h"
16
19
20#include <bitset>
21
22namespace GlobalSim::IOBitwise {
31 class Jet1TOB : public CommonTOB {
32
33 public:
34
35
37 static constexpr std::size_t s_ring_zero_ptt_width{12};
39 static constexpr std::size_t s_ring_one_ptt_width{15};
41 static constexpr std::size_t s_ring_two_ptt_width{15};
43 static constexpr std::size_t s_ring_three_ptt_width{15};
45 static constexpr std::size_t s_ring_four_ptt_width{12};
47 static constexpr std::size_t s_total_tobs_width{6};
49 static constexpr std::size_t s_ring_one_tobs_width{4};
51 static constexpr std::size_t s_ring_two_tobs_width{5};
53 static constexpr std::size_t s_ring_three_tobs_width{5};
55 static constexpr std::size_t s_ring_four_tobs_width{3};
57 static constexpr std::size_t s_truncate_width{1};
59 static constexpr std::size_t s_next_tob_same_et_width{1};
61 static constexpr std::size_t s_error_width{1};
63 static constexpr std::size_t s_et_overflow_width{1};
64
73 Jet1TOB(const Jet1TOB&);
74
86 const std::bitset<s_ring_zero_ptt_width>&,
87 const std::bitset<s_ring_one_ptt_width>&,
88 const std::bitset<s_ring_two_ptt_width>&,
89 const std::bitset<s_ring_three_ptt_width>&,
90 const std::bitset<s_ring_four_ptt_width>&,
91 const std::bitset<s_total_tobs_width>&,
92 const std::bitset<s_ring_one_tobs_width>&,
93 const std::bitset<s_ring_two_tobs_width>&,
94 const std::bitset<s_ring_three_tobs_width>&,
95 const std::bitset<s_ring_four_tobs_width>&,
96 const std::bitset<s_truncate_width>&,
97 const std::bitset<s_next_tob_same_et_width>&,
98 const std::bitset<s_error_width>&,
99 const std::bitset<s_et_overflow_width>&
100 );
101
103 virtual ~Jet1TOB(){};
104
106 virtual const std::bitset<s_ring_zero_ptt_width>& ring_zero_ptt_bits() const;
108 virtual const std::bitset<s_ring_one_ptt_width>& ring_one_ptt_bits() const;
110 virtual const std::bitset<s_ring_two_ptt_width>& ring_two_ptt_bits() const;
112 virtual const std::bitset<s_ring_three_ptt_width>& ring_three_ptt_bits() const;
114 virtual const std::bitset<s_ring_four_ptt_width>& ring_four_ptt_bits() const;
116 virtual const std::bitset<s_total_tobs_width>& total_tobs_bits() const;
118 virtual const std::bitset<s_ring_one_tobs_width>& ring_one_tobs_bits() const;
120 virtual const std::bitset<s_ring_two_tobs_width>& ring_two_tobs_bits() const;
122 virtual const std::bitset<s_ring_three_tobs_width>& ring_three_tobs_bits() const;
124 virtual const std::bitset<s_ring_four_tobs_width>& ring_four_tobs_bits() const;
126 virtual const std::bitset<s_truncate_width>& truncate_bit() const;
128 virtual const std::bitset<s_next_tob_same_et_width>& next_tob_same_et_bit() const;
130 virtual const std::bitset<s_error_width>& error_bit() const;
132 virtual const std::bitset<s_et_overflow_width>& et_overflow_bit() const;
133
135 virtual std::string to_string() const;
136
137 private:
138
140 std::bitset<s_ring_zero_ptt_width> m_ring_zero_ptt_bits;
142 std::bitset<s_ring_one_ptt_width> m_ring_one_ptt_bits;
144 std::bitset<s_ring_two_ptt_width> m_ring_two_ptt_bits;
146 std::bitset<s_ring_three_ptt_width> m_ring_three_ptt_bits;
148 std::bitset<s_ring_four_ptt_width> m_ring_four_ptt_bits;
150 std::bitset<s_total_tobs_width> m_total_tobs_bits;
152 std::bitset<s_ring_one_tobs_width> m_ring_one_tobs_bits;
154 std::bitset<s_ring_two_tobs_width> m_ring_two_tobs_bits;
156 std::bitset<s_ring_three_tobs_width> m_ring_three_tobs_bits;
158 std::bitset<s_ring_four_tobs_width> m_ring_four_tobs_bits;
160 std::bitset<s_truncate_width> m_truncate_bit;
162 std::bitset<s_next_tob_same_et_width> m_next_tob_same_et_bit;
164 std::bitset<s_error_width> m_error_bit;
166 std::bitset<s_et_overflow_width> m_et_overflow_bit;
167
168 };
169} //End of namespace
170
172
173DATAVECTOR_BASE(GlobalSim::IOBitwise::Jet1TOB, GlobalSim::IOBitwise::CommonTOB);
174
175namespace GlobalSim {
176 namespace IOBitwise {
178 }
179}
180
182
183#endif //GLOBALSIM_JET1TOB_H
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
#define DATAVECTOR_BASE(T, BASE)
Declare base class info to DataVector.
Definition DataVector.h:649
Derived DataVector<T>.
Definition DataVector.h:795
CommonTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to initialise common bits.
Definition CommonTOB.cxx:10
Class to hold Jet1 WTA TOB bits.
Definition Jet1TOB.h:31
Jet1TOB(const GlobalSim::IOBitwise::CommonTOB &, const std::bitset< s_ring_zero_ptt_width > &, const std::bitset< s_ring_one_ptt_width > &, const std::bitset< s_ring_two_ptt_width > &, const std::bitset< s_ring_three_ptt_width > &, const std::bitset< s_ring_four_ptt_width > &, const std::bitset< s_total_tobs_width > &, const std::bitset< s_ring_one_tobs_width > &, const std::bitset< s_ring_two_tobs_width > &, const std::bitset< s_ring_three_tobs_width > &, const std::bitset< s_ring_four_tobs_width > &, const std::bitset< s_truncate_width > &, const std::bitset< s_next_tob_same_et_width > &, const std::bitset< s_error_width > &, const std::bitset< s_et_overflow_width > &)
Constructor taking an CommonTOB and Jet1 WTA bitsets to initialise bits.
virtual const std::bitset< s_ring_one_ptt_width > & ring_one_ptt_bits() const
Returns the ring one energy bits.
Definition Jet1TOB.cxx:65
virtual const std::bitset< s_error_width > & error_bit() const
Returns the error flag bit.
Definition Jet1TOB.cxx:109
virtual const std::bitset< s_ring_three_tobs_width > & ring_three_tobs_bits() const
Returns the ring three tobs bits.
Definition Jet1TOB.cxx:93
static constexpr std::size_t s_ring_four_tobs_width
Count: Size of ring four tobs bitset.
Definition Jet1TOB.h:55
static constexpr std::size_t s_et_overflow_width
Count: Size of overflow flag.
Definition Jet1TOB.h:63
static constexpr std::size_t s_ring_two_tobs_width
Count: Size of ring two tobs bitset.
Definition Jet1TOB.h:51
std::bitset< s_ring_four_ptt_width > m_ring_four_ptt_bits
Property: ring four ptt bitset within the Jet1TOB word.
Definition Jet1TOB.h:148
static constexpr std::size_t s_ring_four_ptt_width
Count: Size of ring four energy bitset.
Definition Jet1TOB.h:45
static constexpr std::size_t s_truncate_width
Count: Size of truncated flag.
Definition Jet1TOB.h:57
virtual const std::bitset< s_ring_four_ptt_width > & ring_four_ptt_bits() const
Returns the ring four energy bits.
Definition Jet1TOB.cxx:77
virtual const std::bitset< s_ring_zero_ptt_width > & ring_zero_ptt_bits() const
Returns the ring zero energy bits.
Definition Jet1TOB.cxx:61
virtual const std::bitset< s_ring_three_ptt_width > & ring_three_ptt_bits() const
Returns the ring three energy bits.
Definition Jet1TOB.cxx:73
virtual const std::bitset< s_ring_four_tobs_width > & ring_four_tobs_bits() const
Returns the ring four tobs bits.
Definition Jet1TOB.cxx:97
static constexpr std::size_t s_ring_one_ptt_width
Count: Size of ring one energy bitset.
Definition Jet1TOB.h:39
std::bitset< s_ring_one_ptt_width > m_ring_one_ptt_bits
Property: ring one ptt bitset within the Jet1TOB word.
Definition Jet1TOB.h:142
virtual ~Jet1TOB()
Destructor.
Definition Jet1TOB.h:103
std::bitset< s_error_width > m_error_bit
Property: error falg bitset within the Jet1TOB word.
Definition Jet1TOB.h:164
virtual const std::bitset< s_et_overflow_width > & et_overflow_bit() const
Returns the et overflow flag bit.
Definition Jet1TOB.cxx:113
std::bitset< s_ring_four_tobs_width > m_ring_four_tobs_bits
Property: ring four tobs bitset within the Jet1TOB word.
Definition Jet1TOB.h:158
std::bitset< s_ring_three_tobs_width > m_ring_three_tobs_bits
Property: ring three tobs bitset within the Jet1TOB word.
Definition Jet1TOB.h:156
std::bitset< s_total_tobs_width > m_total_tobs_bits
Property: total tobs bitset within the Jet1TOB word.
Definition Jet1TOB.h:150
std::bitset< s_ring_zero_ptt_width > m_ring_zero_ptt_bits
Property: ring zero ptt bitset within the Jet1TOB word.
Definition Jet1TOB.h:140
virtual const std::bitset< s_ring_two_tobs_width > & ring_two_tobs_bits() const
Returns the ring two tobs bits.
Definition Jet1TOB.cxx:89
virtual const std::bitset< s_ring_two_ptt_width > & ring_two_ptt_bits() const
Returns the ring two energy bits.
Definition Jet1TOB.cxx:69
virtual const std::bitset< s_truncate_width > & truncate_bit() const
Returns the truncated flag bit.
Definition Jet1TOB.cxx:101
static constexpr std::size_t s_ring_zero_ptt_width
Count: Size of ring zero energy bitset.
Definition Jet1TOB.h:37
static constexpr std::size_t s_ring_one_tobs_width
Count: Size of ring one tobs bitset.
Definition Jet1TOB.h:49
static constexpr std::size_t s_ring_three_ptt_width
Count: Size of ring three energy bitset.
Definition Jet1TOB.h:43
static constexpr std::size_t s_error_width
Count: Size of error state flag.
Definition Jet1TOB.h:61
std::bitset< s_ring_one_tobs_width > m_ring_one_tobs_bits
Property: ring one tobs bitset within the Jet1TOB word.
Definition Jet1TOB.h:152
virtual const std::bitset< s_total_tobs_width > & total_tobs_bits() const
Returns the total tobs bits.
Definition Jet1TOB.cxx:81
static constexpr std::size_t s_ring_three_tobs_width
Count: Size of ring three tobs bitset.
Definition Jet1TOB.h:53
static constexpr std::size_t s_total_tobs_width
Count: Size of total number of tobs bitset.
Definition Jet1TOB.h:47
virtual std::string to_string() const
print out contents to string
Definition Jet1TOB.cxx:117
std::bitset< s_ring_two_tobs_width > m_ring_two_tobs_bits
Property: ring two tobs bitset within the Jet1TOB word.
Definition Jet1TOB.h:154
std::bitset< s_ring_two_ptt_width > m_ring_two_ptt_bits
Property: ring two ptt bitset within the Jet1TOB wor d.
Definition Jet1TOB.h:144
Jet1TOB(const Jet1TOB &)
Constructor taking an Jet1TOB to initialise bits.
Definition Jet1TOB.cxx:10
std::bitset< s_next_tob_same_et_width > m_next_tob_same_et_bit
Property: next tob is same et flag bitset within the Jet1TOB word.
Definition Jet1TOB.h:162
static constexpr std::size_t s_next_tob_same_et_width
Count: Size of next tob same et flag.
Definition Jet1TOB.h:59
std::bitset< s_et_overflow_width > m_et_overflow_bit
Property: et overflow flag bitset within the Jet1TOB word.
Definition Jet1TOB.h:166
std::bitset< s_truncate_width > m_truncate_bit
Property: truncated flag bitset within the Jet1TOB word.
Definition Jet1TOB.h:160
static constexpr std::size_t s_ring_two_ptt_width
Count: Size of ring two energy bitset.
Definition Jet1TOB.h:41
std::bitset< s_ring_three_ptt_width > m_ring_three_ptt_bits
Property: ring three ptt bitset within the Jet1TOB word.
Definition Jet1TOB.h:146
virtual const std::bitset< s_ring_one_tobs_width > & ring_one_tobs_bits() const
Returns the ring one tobs bits.
Definition Jet1TOB.cxx:85
virtual const std::bitset< s_next_tob_same_et_width > & next_tob_same_et_bit() const
Returns the next tob is same ET flag bit.
Definition Jet1TOB.cxx:105
DataVector< GlobalSim::IOBitwise::Jet1TOB > Jet1TOBContainer
Definition Jet1TOB.h:177
AlgTool to read in LArStripNeighborhoods, and run the BDT Algorithm.
Definition BitSpec.h:23