ATLAS Offline Software
Loading...
Searching...
No Matches
Jet1TOB.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "Jet1TOB.h"
6#include <sstream>
7
8namespace GlobalSim::IOBitwise {
9
26
27
29 const std::bitset<Jet1TOB::s_ring_zero_ptt_width>& ring_zero_ptt_bits,
30 const std::bitset<Jet1TOB::s_ring_one_ptt_width>& ring_one_ptt_bits,
31 const std::bitset<Jet1TOB::s_ring_two_ptt_width>& ring_two_ptt_bits,
32 const std::bitset<Jet1TOB::s_ring_three_ptt_width>& ring_three_ptt_bits,
33 const std::bitset<Jet1TOB::s_ring_four_ptt_width>& ring_four_ptt_bits,
34 const std::bitset<Jet1TOB::s_total_tobs_width>& total_tobs_bits,
35 const std::bitset<Jet1TOB::s_ring_one_tobs_width>& ring_one_tobs_bits,
36 const std::bitset<Jet1TOB::s_ring_two_tobs_width>& ring_two_tobs_bits,
37 const std::bitset<Jet1TOB::s_ring_three_tobs_width>& ring_three_tobs_bits,
38 const std::bitset<Jet1TOB::s_ring_four_tobs_width>& ring_four_tobs_bits,
39 const std::bitset<Jet1TOB::s_truncate_width>& truncate_bit,
40 const std::bitset<Jet1TOB::s_next_tob_same_et_width>& next_tob_same_et_bit,
41 const std::bitset<Jet1TOB::s_error_width>& error_bit,
42 const std::bitset<Jet1TOB::s_et_overflow_width>& et_overflow_bit
43 ) :
44 CommonTOB(commonTOB),
45 m_ring_zero_ptt_bits(ring_zero_ptt_bits),
46 m_ring_one_ptt_bits(ring_one_ptt_bits),
47 m_ring_two_ptt_bits(ring_two_ptt_bits),
48 m_ring_three_ptt_bits(ring_three_ptt_bits),
49 m_ring_four_ptt_bits(ring_four_ptt_bits),
50 m_total_tobs_bits(total_tobs_bits),
51 m_ring_one_tobs_bits(ring_one_tobs_bits),
52 m_ring_two_tobs_bits(ring_two_tobs_bits),
53 m_ring_three_tobs_bits(ring_three_tobs_bits),
54 m_ring_four_tobs_bits(ring_four_tobs_bits),
55 m_truncate_bit(truncate_bit),
56 m_next_tob_same_et_bit(next_tob_same_et_bit),
57 m_error_bit(error_bit),
58 m_et_overflow_bit(et_overflow_bit){
59 }
60
61 const std::bitset<Jet1TOB::s_ring_zero_ptt_width>& Jet1TOB::ring_zero_ptt_bits() const {
63 }
64
65 const std::bitset<Jet1TOB::s_ring_one_ptt_width>& Jet1TOB::ring_one_ptt_bits() const {
67 }
68
69 const std::bitset<Jet1TOB::s_ring_two_ptt_width>& Jet1TOB::ring_two_ptt_bits() const {
71 }
72
73 const std::bitset<Jet1TOB::s_ring_three_ptt_width>& Jet1TOB::ring_three_ptt_bits() const {
75 }
76
77 const std::bitset<Jet1TOB::s_ring_four_ptt_width>& Jet1TOB::ring_four_ptt_bits() const {
79 }
80
81 const std::bitset<Jet1TOB::s_total_tobs_width>& Jet1TOB::total_tobs_bits() const {
82 return m_total_tobs_bits;
83 }
84
85 const std::bitset<Jet1TOB::s_ring_one_tobs_width>& Jet1TOB::ring_one_tobs_bits() const {
87 }
88
89 const std::bitset<Jet1TOB::s_ring_two_tobs_width>& Jet1TOB::ring_two_tobs_bits() const {
91 }
92
93 const std::bitset<Jet1TOB::s_ring_three_tobs_width>& Jet1TOB::ring_three_tobs_bits() const {
95 }
96
97 const std::bitset<Jet1TOB::s_ring_four_tobs_width>& Jet1TOB::ring_four_tobs_bits() const {
99 }
100
101 const std::bitset<Jet1TOB::s_truncate_width>& Jet1TOB::truncate_bit() const {
102 return m_truncate_bit;
103 }
104
105 const std::bitset<Jet1TOB::s_next_tob_same_et_width>& Jet1TOB::next_tob_same_et_bit() const {
107 }
108
109 const std::bitset<Jet1TOB::s_error_width>& Jet1TOB::error_bit() const {
110 return m_error_bit;
111 }
112
113 const std::bitset<Jet1TOB::s_et_overflow_width>& Jet1TOB::et_overflow_bit() const {
114 return m_et_overflow_bit;
115 }
116
117 std::string Jet1TOB::to_string() const {
118
119 std::stringstream ss;
120
121 ss << '\n'
123 << " Ring zero ptt " << ring_zero_ptt_bits() << " (" << ring_zero_ptt_bits().to_ulong() << ")"
124 << " Ring one ptt " << ring_one_ptt_bits() << " (" << ring_one_ptt_bits().to_ulong() << ")"
125 << " Ring two ptt " << ring_two_ptt_bits() << " (" << ring_two_ptt_bits().to_ulong() << ")"
126 << " Ring three ptt " << ring_three_ptt_bits() << " (" << ring_three_ptt_bits().to_ulong() << ")"
127 << " Ring four ptt " << ring_four_ptt_bits() << " (" << ring_four_ptt_bits().to_ulong() << ")"
128 << " Total tobs " << total_tobs_bits() << " (" << total_tobs_bits().to_ulong() << ")"
129 << " Ring one tobs " << ring_one_tobs_bits() << " (" << ring_one_tobs_bits().to_ulong() << ")"
130 << " Ring two tobs " << ring_two_tobs_bits() << " (" << ring_two_tobs_bits().to_ulong() << ")"
131 << " Ring three tobs " << ring_three_tobs_bits() << " (" << ring_three_tobs_bits().to_ulong() << ")"
132 << " Ring four tobs " << ring_four_tobs_bits() << " (" << ring_four_tobs_bits().to_ulong() << ")";
133 return ss.str();
134 }
135
136}
static Double_t ss
CommonTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to initialise common bits.
Definition CommonTOB.cxx:10
virtual std::string to_string() const
Definition CommonTOB.cxx:39
Class to hold Jet1 WTA TOB bits.
Definition Jet1TOB.h:31
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
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
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
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
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
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
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
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
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