ATLAS Offline Software
Loading...
Searching...
No Matches
ITkStripsRodEncoder.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
12
13
14#include "Identifier/Identifier.h"
16
17namespace { // Anonymous namespace
18 template<unsigned int n>
19 unsigned long long
20 chunk(std::bitset<128> b){
21 static constexpr std::bitset<128> mask64(~0ULL);
22 static constexpr unsigned int shift{n * 64};
23 return ((b >>shift) & mask64).to_ullong();
24 }
25 std::vector<uint8_t>
26 split32bitWord(uint32_t word){
27 std::vector<uint8_t> out;
28 out.push_back(word>>24);
29 out.push_back(word>>16);
30 out.push_back(word>>8);
31 out.push_back(word);
32 return out;
33 }
34 int
35 rodLinkFromOnlineID(const ITkStripOnlineId onlineID){
36 const uint32_t fibre{onlineID.fibre()};
37 const int formatter{static_cast<int>((fibre/12) & 0x7)};
38 const int linkNum{static_cast<int>((fibre - (formatter*12)) & 0xF)};
39 const int rodLink{(formatter << 4) | linkNum};
40 return rodLink;
41 }
43 hccKey(int barrelEC, uint8_t side, uint8_t disk, uint8_t phi_mod, int eta_mod, uint8_t eta_group){
44
45 uint32_t hcckey = 0, mask = 1;
46 uint8_t sideAC = 0;
47 bool hasTwoHccs = false;
48
49 //Set barrel/endcap/side bit
50 if(barrelEC == 0){
51 hcckey = mask << 23;
52 if(eta_mod>0) sideAC=1;
53 } else if(barrelEC > 0) sideAC=1;
54
55 //Set Side-A/C bit
56 if(sideAC==1) hcckey = hcckey | (mask << 20);
57
58 //Set the layer/disk bits
59 hcckey = hcckey | (disk<<17);
60
61 //Set the inner/outer side bit
62 if(side==1) hcckey = hcckey | (mask << 16);
63
64 //Set the petal bit (0 for barrel)
65 if(barrelEC!=0) hcckey = hcckey | (mask << 15);
66
67 //Set the phi module number
68 hcckey = hcckey | (phi_mod<<8);
69
70 //Set the HCC number
71 if(disk<2 && barrelEC==0) {
72 hasTwoHccs = true;
73 }else if(eta_group!=2 && barrelEC!=0){
74 hasTwoHccs = true;
75 }
76
77 eta_mod = std::abs(eta_mod);
78 //This is to get the right Hcc number (1 or 2) per module algorithmically could try to improve this in the future
79 if ( hasTwoHccs && ( ((eta_mod-1)/2.0 >= 2*eta_group+1 && barrelEC==0) || ((((eta_mod/2.0 >= 2*eta_group+1) && eta_mod<=7) || ((eta_mod/2.0 >= 2*eta_group) && (eta_mod>=10 && eta_mod<=13))) && barrelEC!=0))){
80 hcckey = hcckey | (mask << 7);
81 }
82
83 barrelEC = (barrelEC == 0) ? 1 : 0;
84
85 //Set the eta group number
86 hcckey = hcckey | (eta_group);
87
88 return hcckey << 8;
89 }
90
91} // End of anonymous namespace
92
93// Initialize
96 ATH_MSG_DEBUG("ITkStripsRodEncoder::initialize()");
97
98 // Retrieve cabling tool
99 ATH_CHECK(m_cabling.retrieve());
100 ATH_MSG_DEBUG("Retrieved tool " << m_cabling);
101 ATH_CHECK(detStore()->retrieve(m_itkStripsID, "SCT_ID"));
102 const InDetDD::SCT_DetectorManager* itkStripsDetManager{nullptr};
103 ATH_CHECK(detStore()->retrieve(itkStripsDetManager, "ITkStrip"));
104 const InDetDD::SiDetectorElementCollection* sctDetElementColl{itkStripsDetManager->getDetectorElementCollection()};
105 for (const InDetDD::SiDetectorElement* sctDetElement : *sctDetElementColl) {
106 if (sctDetElement->swapPhiReadoutDirection()) {
107 m_swapModuleID.insert(sctDetElement->identify());
108 }
109 }
110
111 if (not m_dataRateMonTool.empty())
112 ATH_CHECK(m_dataRateMonTool.retrieve());
113
114 ATH_MSG_DEBUG("Initialization was successful");
115 return StatusCode::SUCCESS;
116}
117
118
119
120void
121ITkStripsRodEncoder::fillROD(std::vector<uint32_t>& vec32Data, const uint32_t& robID,
122 const std::vector<const SCT_RDORawData*>& vecRDOs) const {
123 //code to be filled here
124
125 std::unordered_map<uint32_t, std::vector<std::bitset<256>>> allStripData;
126 std::unordered_map<uint32_t, IdentifierHash> keyToHash;
127
128 IdentifierHash offlineHash = 0;
129
130 for (const auto& rdo : vecRDOs) {
131 int barrelEC = getBarrelEC(rdo);
132 int eta_mod = getEtaModule(rdo);
133 uint8_t side = getSide(rdo);
134 uint8_t disk = getDiskLayer(rdo);
135 uint8_t phi_mod = getPhiModule(rdo);
136 uint16_t strip_max = getStripMax(rdo);
137
138 if (strip_max == 0xFFFF){
139 //To do: Implement workaround
140 const Identifier rdoID{rdo->identify()};
141 ATH_MSG_WARNING("Negative maximum number of strips found " << m_itkStripsID->strip_max(rdoID));
142 continue;
143 }
144
145 uint8_t sideAC = 0;
146 if((barrelEC == 0 && eta_mod > 0) || barrelEC > 0) sideAC = 1;
147
148 uint8_t eta_group=0;
149
150 if (barrelEC == 0) {
151 if(disk < 2){
152 eta_group = static_cast<uint8_t>(std::floor((std::abs(eta_mod)-1) / 4));
153 }else{
154 eta_group = static_cast<uint8_t>(std::floor((std::abs(eta_mod)-1) / 2));
155 }
156 }else {
157 if(eta_mod>=0 && eta_mod<=9) eta_group = static_cast<uint8_t>(std::floor(eta_mod / 4));
158 else if(eta_mod>=10 && eta_mod<=13) eta_group = static_cast<uint8_t>(std::floor((eta_mod+2)/4));
159 else if(eta_mod>13) eta_group = static_cast<uint8_t>(std::floor((eta_mod-6)/2));
160 }
161
162 uint8_t chips_per_module = (strip_max + 1) / 128;
163 uint32_t key = hccKey(barrelEC, side, disk, phi_mod, eta_mod, eta_group);
164
165 offlineHash = m_itkStripsID->wafer_hash(offlineID(rdo));
166 keyToHash.insert({key,offlineHash});
167
168 ATH_MSG_DEBUG("barrel: "<< barrelEC<<" sideAC: " << (uint32_t)sideAC << " disk: "<<(uint32_t)disk << " side: " << (uint32_t)side <<" phi_mod: "<<(uint32_t)phi_mod << " eta_mod: " << eta_mod << " eta group: "<<(uint32_t)eta_group << " chips per module: " << (uint32_t)chips_per_module << " " << (uint32_t)robID << " " << (uint32_t)m_itkStripsID->wafer_hash(offlineID(rdo)));
169
170 ATH_MSG_DEBUG("key: " << std::bitset<32>(key));
171 auto& StripData = allStripData[key];
172
173 if (StripData.empty()) {
174 StripData.resize(chips_per_module);
175 }
176
177 //Populate the bitset for each chip with active strips
178 int strip = getStrip(rdo);
179 int chip = static_cast<int>(std::floor(strip / 128));
180 int strip_position = strip % 128;
181 int strip_logical_channel = 2*strip_position + (eta_mod & 1);
182
183 ATH_MSG_DEBUG("strip N: "<< strip << " chip n: " << chip << " Strip position: " << strip_position << " Strip position logical: " << strip_logical_channel);
184 StripData[chip].set(strip_logical_channel);
185 }
186
187 std::vector<uint8_t> vec8Data;
188 uint32_t vectorSize = 0;
189 std::vector<uint16_t> clusters;
190
191 ATH_MSG_DEBUG("All strip data size: " << allStripData.size());
192
193 //Iterate over processed strip data and find clusters
194 for (const auto& [key, StripData] : allStripData) {
195
196 uint16_t ichannel = 0;
197 uint16_t size = 1;
198 int ptype = 1;
199 bool keyRecorded = false;
200 clusters.clear();
201
202 ATH_MSG_DEBUG("key is: " << std::bitset<32>(key) << " StripData size: " << StripData.size());
203
204 for (size_t i = 0; i < StripData.size(); ++i) {
205
206 std::bitset<256> hits = StripData[i];
207
208 if(hits==0){
209 ++ichannel;
210 continue;
211 }
212
213 //Use clusterFinder to extract clusters from the bitset
214 clusters = clusterFinder(hits);
215
216 if(clusters.empty()){
217 ++ichannel;
218 continue;
219 }
220 uint32_t hccKey = (keyRecorded) ? 0 : key;
221 encodeData(clusters, ichannel, vec8Data, ptype, m_l0tag , m_bcid, hccKey, size);
222 keyRecorded = true;
223 ++ichannel;++size;
224 }
225 vec8Data.push_back(0xed);
226 vec8Data.push_back(0x6f);
227 ATH_MSG_DEBUG("Add 16-0s: " << size % 2 << " " << vec8Data.size());
228
229 if(size % 2 == 0){
230 vec8Data.push_back(0);
231 vec8Data.push_back(0);
232 }
233 uint32_t packetLenght = (vec8Data.size()-vectorSize)+4;
234 ATH_MSG_DEBUG("Packet Lenght: " << (uint32_t)packetLenght << " " << std::bitset<32>(packetLenght));
235
236 std::vector<uint8_t> pktlenght = split32bitWord(packetLenght);
237
238 ATH_MSG_DEBUG("PktLenght: " << pktlenght.size() << " vec8Data size: " << vec8Data.size());
239
240 uint32_t offset = vectorSize + 4;
241 vec8Data.insert(vec8Data.begin()+offset, pktlenght.begin(), pktlenght.end());
242 vectorSize = vec8Data.size();
243
244 ATH_MSG_DEBUG("vec8Data size: " << vec8Data.size() << " size: " << size-1);
245 packFragments(vec8Data,vec32Data);
246 if (not m_dataRateMonTool.empty()) {
247 m_dataRateMonTool->fill(keyToHash[key], vec32Data, allStripData[key]);
248 }
249 vec32Data.clear();
250 }
251
252 //Update BCID and L0Tag counters
253 m_bcid = (m_bcid + 1) & 0x7F;
254 m_l0tag = (m_l0tag + 1) & 0x7F;
255
256 ATH_MSG_DEBUG("vec8Data size: " << vec8Data.size());
257
258 packFragments(vec8Data,vec32Data);
259
260 for(auto &word: vec32Data){
261 ATH_MSG_DEBUG("32-bit word: " << std::bitset<32>(word));
262 }
263 return;
264}
265
266void
267ITkStripsRodEncoder::encodeData(const std::vector<uint16_t>& clusters, const uint16_t ichannel,std::vector<uint8_t>& data_encode,
268 int ptyp, uint8_t l0tag, uint8_t bc_count, uint32_t hccKey, uint16_t& size) const {
269
270
271 if(hccKey!=0){
272 ATH_MSG_DEBUG("hccKey: " << std::bitset<32>(hccKey));
273 ATH_MSG_DEBUG("hccKey 8-bit word-4: "<<std::bitset<8>(hccKey));
274 ATH_MSG_DEBUG("hccKey 8-bit word-3: "<<std::bitset<8>(hccKey>>24));
275 ATH_MSG_DEBUG("hccKey 8-bit word-2: "<<std::bitset<8>(hccKey>>16));
276 ATH_MSG_DEBUG("hccKey 8-bit word-1: "<<std::bitset<8>(hccKey>>8));
277
278 data_encode.push_back(hccKey);
279 data_encode.push_back(hccKey>>24);
280 data_encode.push_back(hccKey>>16);
281 data_encode.push_back(hccKey>>8);
282
283 uint16_t header = getHeaderPhysicsPacket(ptyp, l0tag, bc_count);
284 ATH_MSG_DEBUG("header: " << std::bitset<16>(header));
285 data_encode.push_back((header>>8) & 0xff);
286 data_encode.push_back(header & 0xff);
287 }
288
289 for(size_t idx=0;auto &cluster : clusters){
290 if(cluster == 0x3fe) continue;
291 if(idx!=0) size++;
292
293 // cluster bits:
294 // "0" + 4-bit channel number + 11-bit cluster dropping the last cluster bit
295 uint16_t clusterbits = ((ichannel & 0xf) << 11) | (cluster & 0x7ff);
296 ATH_MSG_DEBUG("Clusters: " << idx << ": " << std::bitset<16>(clusterbits) << " size: " << size << " ichannel: " << ichannel);
297 data_encode.push_back((clusterbits>>8) & 0xff);
298 data_encode.push_back(clusterbits & 0xff);
299 idx++;
300 }
301
302 return;
303}
304
305
306std::vector<uint16_t>
307ITkStripsRodEncoder::clusterFinder(const std::bitset<256>& inputData, const uint8_t maxCluster) const {
308
309 std::vector<uint16_t> clusters;
310
311 // Split into far (odd) and near (even) strips
312 std::bitset<128> dataEven;
313 std::bitset<128> dataOdd;
314 for(int i=0; i<128; ++i){
315 dataEven[i] = inputData[2*i];
316 dataOdd[i] = inputData[2*i+1];
317 }
318
319 // Split the 128-bit Even and Odd data into four 64-bit chunks for processing
320 uint64_t d0l = chunk<0>(dataEven);
321 uint64_t d0h = chunk<1>(dataEven);
322
323 uint64_t d1l = chunk<0>(dataOdd);
324 uint64_t d1h = chunk<1>(dataOdd);
325
326 while (d0l or d0h or d1l or d1h){
327 if (clusters.size() > maxCluster) break;
328
329 uint16_t cluster1 = clusterFinder_sub(d1h, d1l, true);
330 if (cluster1 != 0x3ff) // No cluster was found
331 clusters.push_back(cluster1);
332
333 if (clusters.size() > maxCluster) break;
334
335 uint16_t cluster0 = clusterFinder_sub(d0h, d0l, false);
336 if (cluster0 != 0x3ff) // No cluster was found
337 clusters.push_back(cluster0);
338 }
339
340 if (clusters.empty()) {
341 clusters.push_back(0x3fe);
342 } else {
343 clusters.back() |=1 << 11;
344 }
345
346 return clusters;
347}
348
349inline bool
350ITkStripsRodEncoder::getBit_128b(uint8_t bit_addr, uint64_t data_high64, uint64_t data_low64) const {
351 if (bit_addr > 127) return false;
352
353 return bit_addr<64 ? data_low64>>bit_addr & 1 : data_high64>>(bit_addr-64) & 1;
354}
355
356inline void
357ITkStripsRodEncoder::setBit_128b(uint8_t bit_addr, bool value, uint64_t& data_high64, uint64_t& data_low64) const {
358 if (bit_addr < 64) {
359 data_low64 = (data_low64 & ~(1ULL << bit_addr)) | ((uint64_t)value << bit_addr);
360 } else if (bit_addr < 128) {
361 data_high64 =
362 (data_high64 & ~(1ULL << (bit_addr-64))) | ((uint64_t)value << (bit_addr-64));
363 }
364}
365
366
367uint16_t
368ITkStripsRodEncoder::clusterFinder_sub(uint64_t& hits_high64, uint64_t& hits_low64, bool isSecondRow) const {
369 uint8_t hit_addr = 128;
370 uint8_t hit_mask = 0;
371
372 if (hits_low64){
373 hit_addr = __builtin_ctzll(hits_low64);
374 } else if (hits_high64){
375 hit_addr = __builtin_ctzll(hits_high64) + 64;
376 }
377
378 hit_mask = getBit_128b(hit_addr+1, hits_high64, hits_low64) << 2
379 | getBit_128b(hit_addr+2, hits_high64, hits_low64) << 1
380 | getBit_128b(hit_addr+3, hits_high64, hits_low64);
381
382 for (int i=0; i<4; ++i)
383 setBit_128b(hit_addr+i, 0, hits_high64, hits_low64);
384
385 if (hit_addr == 128) {
386 return 0x3ff;
387 } else {
388 hit_addr += isSecondRow<<7;
389 return hit_addr << 3 | hit_mask;
390 }
391}
392
393void
394ITkStripsRodEncoder::packFragments(std::vector<uint8_t>& vec8Words, std::vector<uint32_t>& vec32Words) const {
395 int num8Words{static_cast<int>(vec8Words.size())};
396 if (num8Words % 4 != 0) {
397 // Just add additional 8-bit words to make the size a multiple of 4
398 while (num8Words % 4 != 0) {
399 vec8Words.push_back(0x40); // Padding byte
400 num8Words++;
401 }
402 }
403 // Now merge 4 consecutive 8-bit words into 32-bit words
404 const unsigned short int numWords{4};
405 const unsigned short int position[numWords]{0, 8, 16, 24};
406 unsigned short int arr8Words[numWords]{0, 0, 0, 0};
407
408 for (int i{0}; i<num8Words; i += numWords) {
409 for (int j{0}; j<numWords; j++) {
410 arr8Words[j] = vec8Words[i + j];
411 }
412 const uint32_t uint32Word{set32Bits(arr8Words, position, numWords)};
413 vec32Words.push_back(uint32Word);
414 }
415 return;
416}
417
418// set32Bits function
419// This function combines four 8-bit words into a 32-bit word
420uint32_t ITkStripsRodEncoder::set32Bits(const unsigned short int* arr8Words, const unsigned short int* position, const unsigned short int& numWords) const
421{
422 uint32_t uint32Word{0};
423 uint32_t pos{0};
424 uint32_t uint8Word{0};
425 for (uint16_t i{0}; i<numWords; i++) {
426 uint8Word = static_cast<uint32_t>(*(arr8Words + i));
427 pos = static_cast<uint32_t>(*(position + i));
428 uint32Word |= (uint8Word << pos); // Shift the 8-bit word to its correct position and merge
429 }
430 return uint32Word;
431}
432
433
434// Get RDO info functions
435int
437 const Identifier rdoID{rdo->identify()};
438 return m_itkStripsID->strip(rdoID);
439}
440
443 const Identifier rdoId{rdo->identify()};
444 return m_itkStripsID->wafer_id(rdoId);
445}
446
447uint32_t
449 const Identifier waferID{offlineID(rdo)};
450 const IdentifierHash offlineIDHash{m_itkStripsID->wafer_hash(waferID)};
451 return static_cast<uint32_t>(m_cabling->getOnlineIdFromHash(offlineIDHash));
452}
453
454int
456 return rodLinkFromOnlineID(onlineID(rdo));
457}
458
459int
461 const Identifier rdoID{rdo->identify()};
462 int itkSide{m_itkStripsID->side(rdoID)};
463 return itkSide;
464}
465
466int
468 const Identifier rdoID{rdo->identify()};
469 return m_itkStripsID->barrel_ec(rdoID);
470}
471
472uint8_t
474 const Identifier rdoID{rdo->identify()};
475 return m_itkStripsID->layer_disk(rdoID);
476}
477
478uint8_t
480 const Identifier rdoID{rdo->identify()};
481 return m_itkStripsID->phi_module(rdoID);
482}
483
484int
486 const Identifier rdoID{rdo->identify()};
487 return m_itkStripsID->eta_module(rdoID);
488}
489
490uint16_t
492 const Identifier rdoID{rdo->identify()};
493 if(m_itkStripsID->strip_max(rdoID)<0) return 0xFFFF;
494 return m_itkStripsID->strip_max(rdoID);
495}
496
497bool
499 val ^= val >> 4;
500 val ^= val >> 2;
501 val ^= val >> 1;
502 return val&1;
503}
504
505uint16_t
506ITkStripsRodEncoder::getHeaderPhysicsPacket(int typ, uint8_t l0tag, uint8_t bc_cout) const {
507 uint8_t bcid_low = bc_cout & 0x7; // BCID[2:0]
508 bool bc_parity = getParity_8bits(bc_cout);
509 //TYPE (4 bits) + FlagBit (1 bit) + L0tag (7 bits) + BCID (3 bits) + Parity (1 bit)
510 const uint16_t Header{static_cast<uint16_t>(((uint8_t)typ << 12) | (0x1 << 11) | (l0tag & 0x7f) << 4 | (bcid_low) << 1 | bc_parity)};
511 return Header;
512
513}
514
515
516//the following may be needed for ITkStrips, but must have different implementation
517uint16_t
519 const int rodLink{getRODLink(rdo)};
520 const uint16_t linkHeader{static_cast<uint16_t>(0x2000 | (m_condensed.value() << 8) | rodLink)};
521 return linkHeader;
522}
523
524uint16_t
525ITkStripsRodEncoder::getHeaderUsingHash(const IdentifierHash& linkHash, const int& errorWord) const {
526 const int rodLink{rodLinkFromOnlineID(m_cabling->getOnlineIdFromHash(linkHash))};
527 const uint16_t linkHeader{static_cast<uint16_t>(0x2000 | errorWord | (m_condensed.value() << 8) | rodLink)};
528 return linkHeader;
529}
530
531uint16_t
532ITkStripsRodEncoder::getTrailer(const int& errorWord) const {
533 const uint16_t linkTrailer{static_cast<uint16_t>(0x4000 | errorWord)};
534 return linkTrailer;
535}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
This is an Identifier helper class for the SCT subdetector.
size_t size() const
Number of registered mappings.
std::uint32_t fibre() const
Return the fibre.
const SCT_ID * m_itkStripsID
Identifier helper class for the ITkStrips subdetector that creates compact Identifier objects and Ide...
uint16_t getStripMax(const SCT_RDORawData *rdo) const
Get the maxumum strip value info from the RDO.
uint32_t onlineID(const SCT_RDORawData *rdo) const
Get the online Identifier from the RDO.
ToolHandle< IITkStripCablingTool > m_cabling
Providing mappings of online and offline identifiers and also serial numbers.
Identifier offlineID(const SCT_RDORawData *rdo) const
Get the offline Identifier from the RDO.
uint16_t getHeaderPhysicsPacket(int typ, uint8_t l0tag, uint8_t bc_count) const
Get the 16-bit word for a header with Type (PR or LP), L0Tag event and BCID.
BooleanProperty m_condensed
Example Boolean used to determine decoding mode, maybe unused finally.
int getBarrelEC(const SCT_RDORawData *rdo) const
Get the barrel/endcape info from the RDO.
virtual void fillROD(std::vector< uint32_t > &vec32Data, const uint32_t &robID, const std::vector< const SCT_RDORawData * > &vecRDOs) const override
Main Convert method.
void setBit_128b(uint8_t bit_addr, bool value, uint64_t &data_high64, uint64_t &data_low64) const
uint16_t clusterFinder_sub(uint64_t &hits_high64, uint64_t &hits_low64, bool isSecondRow) const
bool getBit_128b(uint8_t bit_addr, uint64_t data_high64, uint64_t data_low64) const
int getRODLink(const SCT_RDORawData *rdo) const
Get the ROD link number info in the RDO header data.
std::atomic< uint8_t > m_l0tag
uint16_t getHeaderUsingRDO(const SCT_RDORawData *rdo) const
Get the 16-bit word for a header for a hit.
int getEtaModule(const SCT_RDORawData *rdo) const
Get the eta value info from the RDO.
uint16_t getTrailer(const int &errorWord) const
Get the 16-bit word for a trailer, with or without ByteStream errors.
int getSide(const SCT_RDORawData *rdo) const
Get the side info from the RDO.
int getStrip(const SCT_RDORawData *rdo) const
Get the strip number info from the RDO.
std::vector< uint16_t > clusterFinder(const std::bitset< 256 > &inputData, const uint8_t maxCluster=63) const
@breif Method to set pairs of 8 bit words to a 32 bit word.
uint8_t getPhiModule(const SCT_RDORawData *rdo) const
Get the phi value info from the RDO.
uint8_t getDiskLayer(const SCT_RDORawData *rdo) const
Get disk/layer info from the RDO.
uint32_t set32Bits(const unsigned short int *arr8Words, const unsigned short int *position, const unsigned short int &numWords) const
void encodeData(const std::vector< uint16_t > &clusters, const uint16_t ichannel, std::vector< uint8_t > &data_encode, int typ, uint8_t l0tag, uint8_t bc_count, uint32_t hccKey, uint16_t &size) const
ToolHandle< ITkStripDataRateMonTool > m_dataRateMonTool
virtual StatusCode initialize() override
Initialize.
std::set< Identifier > m_swapModuleID
Swap Module identifier, set by SCTRawContByteStreamTool.
uint16_t getHeaderUsingHash(const IdentifierHash &linkHash, const int &errorWord) const
Get the 16-bit word for a header for a link with a ByteStream error.
void packFragments(std::vector< uint8_t > &vec8Words, std::vector< uint32_t > &vec32Words) const
Method to pack vector of 8 bit words intto a vector of 32 bit words.
bool getParity_8bits(uint8_t val) const
std::atomic< uint8_t > m_bcid
Method to encode RDO data to vector of 16 bin words.
This is a "hash" representation of an Identifier.
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated SCT in...
virtual const SiDetectorElementCollection * getDetectorElementCollection() const override
access to whole collectiom
Class to hold the SiDetectorElement objects to be put in the detector store.
Class to hold geometrical description of a silicon detector element.
virtual Identifier identify() const override final
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual void shift(size_t pos, ptrdiff_t offs) override
Shift the elements of the container.
BySideTypeMod sideAC(0)
setEventNumber uint32_t