New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SiStrip (un)packer: fixes and support for nonstandard ZS(lite) modes #23417
Merged
cmsbuild
merged 21 commits into
cms-sw:master
from
pieterdavid:SiStripUnpacker_fixZSmodes_102
Jun 18, 2018
Merged
Changes from 20 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a286523
Fix packet codes for ZS and ZS lite
pieterdavid af05a2b
Add other ZS modes to SiStripRawToDigiUnpacker
pieterdavid 435b8a0
Fix uninitialized member in FEDBSChannelUnpacker
pieterdavid 268fa9d
A few more FEDBSChannelUnpacker fixes
pieterdavid ad14f83
Add packet code option for SiStripDigiToRawModule
pieterdavid 92f3b01
Fix a regression for VR10 unpacking
pieterdavid b736f01
use an InputTag in SiStripDigiToRawModule
pieterdavid 60d19be
adding VR packet code cases
alesaggio 493e4c7
Fix FEDBSChannelUnpacker::hasData for other sizes than 10 and 16
pieterdavid e810ba3
VR and ZR fixed
alesaggio 86a9c4c
Merge branch 'SiStripPacker_fixZSmodes_102' of https://github.com/ale…
pieterdavid a925990
ZS packer patch: cleanup
pieterdavid a3ebb8a
Packer: use ZS code also for ZS lite
pieterdavid 9ce7d97
packer: readout mode parsing and empty default packet code
pieterdavid 8113325
also for ZS packer: push directly packet code
pieterdavid 983db85
code checks fixes (empty string tests)
pieterdavid a980e34
Update configs to changes in SiStripDigiToRaw parameters
pieterdavid 904aa8b
Use default ZS packing if the packet code is zero
pieterdavid 57234aa
Print SiStrip unpacker warnings and exceptions once per event
pieterdavid 06b4b3b
strip unpacker: print warnings on first occurrence, summary in endStream
pieterdavid 81ef51b
sistrip::FEDBSChannelUnpacker: use BITS_PER_BYTE constant instead of 8
pieterdavid File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,5 +163,9 @@ namespace sistrip { | |
} | ||
} | ||
|
||
void RawToDigiModule::endStream() | ||
{ | ||
rawToDigi_->printWarningSummary(); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This magic number "8" appears rather often in this class.
It could be more conveniently defined somewhere, perhaps as a
sizeof()
a given data wordThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this context it is the number of bits in a byte of raw data (
uint8_t
), sosizeof
will not work (it gives the size of a type in bytes). I could define a constant, e.g.constexpr uint16_t BITS_PER_BYTE = 8;
, but it would be only for readability.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would help, indeed