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
include MAXFEDID
in FED-ID loops
#40406
Conversation
int i = 0; | ||
for (i = 0; i < FEDNumbering::lastFEDId(); i++) | ||
for (i = 0; i <= FEDNumbering::MAXFEDID; i++) { |
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.
FEDNumbering::lastFEDId()
is equal to FEDNumbering::MAXFEDID
:
static constexpr int lastFEDId() { return MAXFEDID; } |
@@ -48,7 +48,7 @@ void Phase2Tracker::Phase2TrackerCommissioningDigiProducer::produce(edm::StreamI | |||
|
|||
// Analyze strip tracker FED buffers in data | |||
size_t fedIndex; | |||
for (fedIndex = 0; fedIndex < Phase2Tracker::CMS_FED_ID_MAX; ++fedIndex) { | |||
for (fedIndex = 0; fedIndex <= Phase2Tracker::CMS_FED_ID_MAX; ++fedIndex) { |
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.
Phase2Tracker::CMS_FED_ID_MAX
is equal to FEDNumbering::MAXFEDID
:
static const uint16_t CMS_FED_ID_MAX = static_cast<uint16_t>(FEDNumbering::MAXFEDID); |
type bugfix |
please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40406/33534
|
A new Pull Request was created by @missirol (Marino Missiroli) for master. It involves the following packages:
@malbouis, @yuanchao, @ChrisMisan, @emeschi, @clacaputo, @saumyaphor4252, @tvami, @mandrenguyen, @smorovic, @francescobrivio can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d9f29e/29768/summary.html Comparison SummarySummary:
|
+alca
|
+daq |
+reconstruction |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
This PR fixes cases where loops over FED IDs are done only up to
FEDNumbering::MAXFEDID - 1
, rather than up toFEDNumbering::MAXFEDID
.FEDNumbering::MAXFEDID
corresponds to 4096, and it is a valid FED ID:cmssw/DataFormats/FEDRawData/interface/FEDNumbering.h
Line 26 in 038eb56
cmssw/DataFormats/FEDRawData/interface/FEDNumbering.h
Line 19 in 038eb56
cmssw/DataFormats/FEDRawData/src/FEDRawDataCollection.cc
Line 14 in 038eb56
As far as I know, this FED ID is not actually used at the moment (no data), so this fix likely has no visible consequences.
PR validation:
None.
If this PR is a backport, please specify the original PR and why you need to backport that PR. If this PR will be backported, please specify to which release cycle the backport is meant for:
N/A