@@ -84,7 +84,7 @@ uint16_t HGCalUnpacker::parseFEDData(unsigned fedId,
8484 auto slink_header = *(ptr + 1 );
8585 if (((slink_header >> (BACKEND_FRAME::SLINK_BOE_POS + 32 )) & BACKEND_FRAME::SLINK_BOE_MASK) !=
8686 fedConfig.slinkHeaderMarker ) {
87- uint32_t ECONDdenseIdx = moduleIndexer.getIndexForModule (fedId, 0 );
87+ uint32_t ECONDdenseIdx = moduleIndexer.getIndexForModule (fedId, 0 );
8888 econdPacketInfo.view ()[ECONDdenseIdx].exception () = 1 ;
8989 econdPacketInfo.view ()[ECONDdenseIdx].location () = 0 ;
9090 edm::LogWarning (" [HGCalUnpacker]" ) << " Expected a S-Link header (BOE: 0x" << std::hex << fedConfig.slinkHeaderMarker
@@ -117,7 +117,7 @@ uint16_t HGCalUnpacker::parseFEDData(unsigned fedId,
117117 fedConfig.cbHeaderMarker ) {
118118 // if word is a 0x0 it probably means that it's a 64b padding word: check that we are ending
119119 // the s-link may have less capture blocks than the maxCBperFED_ so for now this is considered normal
120- uint32_t ECONDdenseIdx = moduleIndexer.getIndexForModule (fedId, 0 );
120+ uint32_t ECONDdenseIdx = moduleIndexer.getIndexForModule (fedId, 0 );
121121 econdPacketInfo.view ()[ECONDdenseIdx].location () = (uint32_t )(ptr - header);
122122 if (cb_header == 0x0 ) {
123123 auto nToEnd = (fed_data.size () / 8 - 2 ) - std::distance (header, ptr);
@@ -159,11 +159,10 @@ uint16_t HGCalUnpacker::parseFEDData(unsigned fedId,
159159 // always increment the global ECON-D index (unless inactive/unconnected)
160160 globalECONDIdx++;
161161
162- // stop if we have all the ECON-Ds expected
163- if (globalECONDIdx >= fedReadoutSequence.totalECONs_ ) {
164- return (0x1 << hgcaldigi::FEDUnpackingFlags::GenericUnpackWarning);
165- }
166-
162+ // stop if we have all the ECON-Ds expected
163+ if (globalECONDIdx >= fedReadoutSequence.totalECONs_ ) {
164+ return (0x1 << hgcaldigi::FEDUnpackingFlags::GenericUnpackWarning);
165+ }
167166 }
168167 LogDebug (" [HGCalUnpacker]" ) << " fedId = " << fedId << " , captureblockIdx = " << captureblockIdx
169168 << " , econdIdx = " << econdIdx << " , globalECONDIdx = " << (int )globalECONDIdx
0 commit comments