ATLAS Offline Software
Namespaces | Enumerations | Functions | Variables
Muon::nsw::STGTPSegments Namespace Reference

Namespaces

 moduleIDBits
 

Enumerations

enum  MergedSegmentProperty {
  MergedSegmentProperty::Monitor = fill_bitmask<uint32_t>(0, size_output_segment_monitor), MergedSegmentProperty::Spare = fill_bitmask<uint32_t>(max_bit(Monitor) + 1, size_output_segment_spare), MergedSegmentProperty::lowRes = fill_bitmask<uint32_t>(max_bit(Spare) + 1, size_output_segment_lowRes), MergedSegmentProperty::phiRes = fill_bitmask<uint32_t>(max_bit(lowRes) + 1 , size_output_segment_phiRes),
  MergedSegmentProperty::dTheta = fill_bitmask<uint32_t>(max_bit(phiRes)+ 1, size_output_segment_dTheta), MergedSegmentProperty::phiID = fill_bitmask<uint32_t>(max_bit(dTheta)+1 , size_output_segment_phiID), MergedSegmentProperty::rIndex = fill_bitmask<uint32_t>(max_bit(phiID)+1, size_output_segment_rIndex)
}
 
enum  ModuleIDProperty { ModuleIDProperty::stationID = fill_bitmask<uint32_t>(0, moduleIDBits::stationID), ModuleIDProperty::detectorSite = fill_bitmask<uint32_t>(max_bit(stationID) +1, moduleIDBits::detectorSite), ModuleIDProperty::stationEta = fill_bitmask<uint32_t>(max_bit(detectorSite) + 1, moduleIDBits::stationEta), ModuleIDProperty::stationPhi = fill_bitmask<uint32_t>(max_bit(stationEta) + 1, moduleIDBits::stationPhi) }
 

Functions

constexpr uint32_t getSegmentProperty (const uint32_t mask, const MergedSegmentProperty prop)
 
constexpr void encodeSegmentProperty (const MergedSegmentProperty prop, const uint32_t word, uint32_t &buffer)
 
constexpr uint32_t getIdentifierProperty (const uint32_t mask, const ModuleIDProperty prop)
 
constexpr void encodeIdentifierProperty (const ModuleIDProperty prop, const uint32_t word, uint32_t &buffer)
 

Variables

constexpr std::size_t num_segments = 8
 
constexpr int merge_stream_header = 0xAEE0
 
constexpr int n_words = 32
 
constexpr int size_lut_choice_selection = 24
 
constexpr int size_nsw_segment_selector = 12
 
constexpr int size_valid_segment_selector = 12
 
constexpr int size_output_segment_monitor = 1
 
constexpr int size_output_segment_spare = 2
 
constexpr int size_output_segment_lowRes = 1
 
constexpr int size_output_segment_phiRes = 1
 
constexpr int size_output_segment_dTheta = 5
 
constexpr int size_output_segment_phiID = 6
 
constexpr int size_output_segment_rIndex = 8
 
constexpr int size_bcid = 12
 
constexpr int size_sectorID = 4
 

Enumeration Type Documentation

◆ MergedSegmentProperty

Enumerator
Monitor 
Spare 
lowRes 
phiRes 
dTheta 
phiID 
rIndex 

Definition at line 94 of file NSWSTGTPDecodeBitmaps.h.

94  {
95  Monitor = fill_bitmask<uint32_t>(0, size_output_segment_monitor),
96  Spare = fill_bitmask<uint32_t>(max_bit(Monitor) + 1, size_output_segment_spare),
97  lowRes = fill_bitmask<uint32_t>(max_bit(Spare) + 1, size_output_segment_lowRes),
98  phiRes = fill_bitmask<uint32_t>(max_bit(lowRes) + 1 , size_output_segment_phiRes),
99  dTheta = fill_bitmask<uint32_t>(max_bit(phiRes)+ 1, size_output_segment_dTheta),
100  phiID = fill_bitmask<uint32_t>(max_bit(dTheta)+1 , size_output_segment_phiID),
101  rIndex = fill_bitmask<uint32_t>(max_bit(phiID)+1, size_output_segment_rIndex)
102  };

◆ ModuleIDProperty

Enumerator
stationID 
detectorSite 
stationEta 
stationPhi 

Definition at line 131 of file NSWSTGTPDecodeBitmaps.h.

131  {
132  stationID = fill_bitmask<uint32_t>(0, moduleIDBits::stationID),
133  detectorSite = fill_bitmask<uint32_t>(max_bit(stationID) +1, moduleIDBits::detectorSite),
134  stationEta = fill_bitmask<uint32_t>(max_bit(detectorSite) + 1, moduleIDBits::stationEta),
135  stationPhi = fill_bitmask<uint32_t>(max_bit(stationEta) + 1, moduleIDBits::stationPhi),
136  };

Function Documentation

◆ encodeIdentifierProperty()

constexpr void Muon::nsw::STGTPSegments::encodeIdentifierProperty ( const ModuleIDProperty  prop,
const uint32_t  word,
uint32_t &  buffer 
)
constexpr

Definition at line 145 of file NSWSTGTPDecodeBitmaps.h.

145  {
146  const auto shift = min_bit(static_cast<uint32_t>(prop));
147  if (shift < 0) {
148  throw std::runtime_error("bitshift is negative in NSWSTGTPDecodeBitmaps encodeIdentifierProperty");
149  }
150  uint32_t shifted_word = (word << shift);
151  buffer = (buffer) | (shifted_word & static_cast<uint32_t>(prop));
152  }

◆ encodeSegmentProperty()

constexpr void Muon::nsw::STGTPSegments::encodeSegmentProperty ( const MergedSegmentProperty  prop,
const uint32_t  word,
uint32_t &  buffer 
)
constexpr

Definition at line 112 of file NSWSTGTPDecodeBitmaps.h.

112  {
113  const auto shift = min_bit(static_cast<uint32_t>(prop));
114  if (shift < 0) {
115  throw std::runtime_error("bitshift is negative in NSWSTGTPDecodeBitmaps encodeSegmentProperty");
116  }
117  uint32_t shifted_word = (word << shift);
118  buffer = (buffer) | (shifted_word & static_cast<uint32_t>(prop));
119  }

◆ getIdentifierProperty()

constexpr uint32_t Muon::nsw::STGTPSegments::getIdentifierProperty ( const uint32_t  mask,
const ModuleIDProperty  prop 
)
constexpr

Definition at line 137 of file NSWSTGTPDecodeBitmaps.h.

137  {
138  const auto shift = min_bit(static_cast<uint32_t>(prop));
139  if (shift < 0) {
140  throw std::runtime_error("bitshift is negative in NSWSTGTPDecodeBitmaps getIdentifierProperty");
141  }
142  return (mask & static_cast<uint32_t>(prop)) >> shift;
143 
144  }

◆ getSegmentProperty()

constexpr uint32_t Muon::nsw::STGTPSegments::getSegmentProperty ( const uint32_t  mask,
const MergedSegmentProperty  prop 
)
constexpr

Definition at line 104 of file NSWSTGTPDecodeBitmaps.h.

104  {
105  const auto shift = min_bit(static_cast<uint32_t>(prop));
106  if (shift < 0) {
107  throw std::runtime_error("bitshift is negative in NSWSTGTPDecodeBitmaps getSegmentProperty");
108  }
109  return (mask & static_cast<uint32_t>(prop) ) >> shift;
110  }

Variable Documentation

◆ merge_stream_header

constexpr int Muon::nsw::STGTPSegments::merge_stream_header = 0xAEE0
constexpr

Definition at line 77 of file NSWSTGTPDecodeBitmaps.h.

◆ n_words

constexpr int Muon::nsw::STGTPSegments::n_words = 32
constexpr

Definition at line 78 of file NSWSTGTPDecodeBitmaps.h.

◆ num_segments

constexpr std::size_t Muon::nsw::STGTPSegments::num_segments = 8
constexpr

Definition at line 75 of file NSWSTGTPDecodeBitmaps.h.

◆ size_bcid

constexpr int Muon::nsw::STGTPSegments::size_bcid = 12
constexpr

Definition at line 91 of file NSWSTGTPDecodeBitmaps.h.

◆ size_lut_choice_selection

constexpr int Muon::nsw::STGTPSegments::size_lut_choice_selection = 24
constexpr

Definition at line 79 of file NSWSTGTPDecodeBitmaps.h.

◆ size_nsw_segment_selector

constexpr int Muon::nsw::STGTPSegments::size_nsw_segment_selector = 12
constexpr

Definition at line 80 of file NSWSTGTPDecodeBitmaps.h.

◆ size_output_segment_dTheta

constexpr int Muon::nsw::STGTPSegments::size_output_segment_dTheta = 5
constexpr

Definition at line 87 of file NSWSTGTPDecodeBitmaps.h.

◆ size_output_segment_lowRes

constexpr int Muon::nsw::STGTPSegments::size_output_segment_lowRes = 1
constexpr

Definition at line 85 of file NSWSTGTPDecodeBitmaps.h.

◆ size_output_segment_monitor

constexpr int Muon::nsw::STGTPSegments::size_output_segment_monitor = 1
constexpr

Definition at line 83 of file NSWSTGTPDecodeBitmaps.h.

◆ size_output_segment_phiID

constexpr int Muon::nsw::STGTPSegments::size_output_segment_phiID = 6
constexpr

Definition at line 88 of file NSWSTGTPDecodeBitmaps.h.

◆ size_output_segment_phiRes

constexpr int Muon::nsw::STGTPSegments::size_output_segment_phiRes = 1
constexpr

Definition at line 86 of file NSWSTGTPDecodeBitmaps.h.

◆ size_output_segment_rIndex

constexpr int Muon::nsw::STGTPSegments::size_output_segment_rIndex = 8
constexpr

Definition at line 89 of file NSWSTGTPDecodeBitmaps.h.

◆ size_output_segment_spare

constexpr int Muon::nsw::STGTPSegments::size_output_segment_spare = 2
constexpr

Definition at line 84 of file NSWSTGTPDecodeBitmaps.h.

◆ size_sectorID

constexpr int Muon::nsw::STGTPSegments::size_sectorID = 4
constexpr

Definition at line 92 of file NSWSTGTPDecodeBitmaps.h.

◆ size_valid_segment_selector

constexpr int Muon::nsw::STGTPSegments::size_valid_segment_selector = 12
constexpr

Definition at line 81 of file NSWSTGTPDecodeBitmaps.h.

Muon::nsw::STGTPSegments::moduleIDBits::detectorSite
constexpr uint8_t detectorSite
Side 0 for A / 1 for C.
Definition: NSWSTGTPDecodeBitmaps.h:125
Muon::nsw::STGTPSegments::moduleIDBits::stationPhi
constexpr uint8_t stationPhi
station Phi 1 to 8
Definition: NSWSTGTPDecodeBitmaps.h:129
Muon::nsw::STGTPSegments::size_output_segment_spare
constexpr int size_output_segment_spare
Definition: NSWSTGTPDecodeBitmaps.h:84
Muon::nsw::max_bit
constexpr int8_t max_bit(const T &number)
Returns the most left hand bit which is set in a number.
Definition: NSWDecodeHelper.h:144
Muon::nsw::STGTPSegments::MergedSegmentProperty::phiID
@ phiID
Muon::nsw::STGTPSegments::size_output_segment_phiRes
constexpr int size_output_segment_phiRes
Definition: NSWSTGTPDecodeBitmaps.h:86
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
Muon::nsw::STGTPSegments::size_output_segment_dTheta
constexpr int size_output_segment_dTheta
Definition: NSWSTGTPDecodeBitmaps.h:87
python.utils.AtlRunQueryLookup.mask
string mask
Definition: AtlRunQueryLookup.py:460
Muon::nsw::STGTPSegments::size_output_segment_phiID
constexpr int size_output_segment_phiID
Definition: NSWSTGTPDecodeBitmaps.h:88
Muon::nsw::STGTPSegments::MergedSegmentProperty::phiRes
@ phiRes
Muon::nsw::STGTPSegments::size_output_segment_lowRes
constexpr int size_output_segment_lowRes
Definition: NSWSTGTPDecodeBitmaps.h:85
createCoolChannelIdFile.buffer
buffer
Definition: createCoolChannelIdFile.py:12
Muon::nsw::STGTPSegments::moduleIDBits::stationID
constexpr uint8_t stationID
Large or Small wedge.
Definition: NSWSTGTPDecodeBitmaps.h:123
Muon::nsw::STGTPSegments::size_output_segment_monitor
constexpr int size_output_segment_monitor
Definition: NSWSTGTPDecodeBitmaps.h:83
Muon::nsw::min_bit
constexpr int8_t min_bit(const T &number)
Returns the most right hand bit which is set in a number.
Definition: NSWDecodeHelper.h:157
Muon::nsw::STGTPSegments::MergedSegmentProperty::dTheta
@ dTheta
Muon::nsw::STGTPSegments::MergedSegmentProperty::Monitor
@ Monitor
Muon::nsw::STGTPSegments::moduleIDBits::stationEta
constexpr uint8_t stationEta
1 to 3
Definition: NSWSTGTPDecodeBitmaps.h:127
Muon::nsw::STGTPSegments::MergedSegmentProperty::lowRes
@ lowRes
Muon::nsw::STGTPSegments::size_output_segment_rIndex
constexpr int size_output_segment_rIndex
Definition: NSWSTGTPDecodeBitmaps.h:89
Muon::nsw::STGTPSegments::MergedSegmentProperty::Spare
@ Spare
Muon::nsw::STGTPSegments::MergedSegmentProperty::rIndex
@ rIndex