-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Migrate most PhysicsTools/PatAlgos plugins to ESGetToken #34368
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34368/23744
|
A new Pull Request was created by @guitargeek (Jonas Rembser) for master. It involves the following packages: PhysicsTools/PatAlgos @perrotta, @jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
} | ||
|
||
// MC info | ||
edm::Handle<edm::ValueMap<reco::MuonSimInfo>> simInfo; | ||
bool simInfoIsAvailalbe = iEvent.getByToken(simInfo_, simInfo); | ||
|
||
// this will be the new object collection | ||
std::vector<Muon>* patMuons = new std::vector<Muon>(); | ||
auto patMuons = std::make_unique<std::vector<Muon>>(); |
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.
For future reference, this could have just been std::vector<Muon> pathMuons
and then call iEvent.emplace(std::move(pathMuons))
.
@cmsbuild please test |
Oh sorry I just saw now after pushing that you started the tests! I thought you were waiting for me to respond to @Dr15Jones comments... |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34368/23777
|
are you done with the updates now? |
Yes, I'm done now. |
@cmsbuild please test |
-1 Failed Tests: UnitTests RelVals RelVals-INPUT AddOn Unit TestsI found errors in the following unit tests: ---> test runtestPhysicsToolsPatAlgos had ERRORS RelVals
Expand to see more relval errors ...RelVals-INPUT
Expand to see more relval errors ...AddOn Tests
Expand to see more addon errors ... |
apparently that was not enough |
Right, I think I found the problem now. I naively replaced |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34368/24048
|
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9eaab1/16940/summary.html Comparison SummarySummary:
|
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, @qliphy, @perrotta (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Migrate most PhysicsTools/PatAlgos plugins to ESGetToken, as already tried in #34307 but then decided to have it in a separate PR.
The migration of the only missing plugin, the
TauJetCorrFactorsProducer
is a bit more tricky. This will be done at a later stage.PR validation:
CMSSW compiles.
if this PR is a backport please specify the original PR and why you need to backport that PR:
No backport intended.