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
Replaced boost use in CalibFormats/SiStripObjects #30130
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30130/15912
|
A new Pull Request was created by @camolezi (Lucas Camolezi) for master. It involves the following packages: CalibFormats/SiStripObjects @cmsbuild, @pohsun, @christopheralanwest, @tocheng, @tlampen can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
Hello, |
I think @vgvassilev @davidlange6 would be better suited to answer that. |
Hi, this looks like a good opportunity to make the code more readable. What do you think about using lambda functions instead? From my experience, it's worth to at least consider lambda functions everywhere std::remove_copy_if(
runInfo->m_fed_in.begin(),
runInfo->m_fed_in.end(),
std::back_inserter(activeFedsFromRunInfo),
[&](int x){ return !(x >= int(FEDNumbering::MINSiStripFEDID)
&& x <= int(FEDNumbering::MAXSiStripFEDID)); }); You also don't need the |
I cannot speak for cmssw but from general engineering perspective having less library dependencies reduces the technical debt. I would say that the usage of |
Yeah, thanks. I agree that using a lambda function, in this case, is much more cleaner. I will update the PR. |
8f42084
to
22245ba
Compare
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30130/15918
|
please test |
The tests are being triggered in jenkins. |
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+1 |
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. @silviodonato, @dpiparo (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Replaced boost library use for C++ STL alternatives. The code should have similar behavior.
PR validation:
Passed on basic runTheMatrix test.
if this PR is a backport please specify the original PR and why you need to backport that PR:
@vgvassilev @davidlange6