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
Fix addUserInt and addUserFloat with multiple values on the same key #12750
Fix addUserInt and addUserFloat with multiple values on the same key #12750
Conversation
A new Pull Request was created by @gpetruc (Giovanni Petrucciani) for CMSSW_8_0_X. It involves the following packages: DataFormats/PatCandidates @cvuosalo, @monttj, @cmsbuild, @slava77, @vadler, @davidlange6 can you please review it and eventually sign? Thanks. Following commands in first line of a comment are recognized
|
@cmsbuild please test Giovanni, I think you can make a 76X PR already |
The tests are being triggered in jenkins. |
Realized that addUserData also needs a fix, which unfortunately needs more |
Pull request #12750 was updated. @smuzaffar, @Dr15Jones, @cvuosalo, @monttj, @cmsbuild, @slava77, @vadler, @davidlange6 can you please check and sign again. |
-1 runTheMatrix-results/4.22_RunCosmics2011A+RunCosmics2011A+RECOCOSD+ALCACOSD+SKIMCOSD+HARVESTDC/step2_RunCosmics2011A+RunCosmics2011A+RECOCOSD+ALCACOSD+SKIMCOSD+HARVESTDC.log 8.0 step3 runTheMatrix-results/8.0_BeamHalo+BeamHalo+DIGICOS+RECOCOS+ALCABH+HARVESTCOS/step3_BeamHalo+BeamHalo+DIGICOS+RECOCOS+ALCABH+HARVESTCOS.log 134.911 step3 runTheMatrix-results/134.911_RunSinglePh2015D+RunSinglePh2015D+HLTDR2_25ns+RECODR2_25nsreHLT+HARVESTDR2_25nsreHLT/step3_RunSinglePh2015D+RunSinglePh2015D+HLTDR2_25ns+RECODR2_25nsreHLT+HARVESTDR2_25nsreHLT.log 140.53 step2 runTheMatrix-results/140.53_RunHI2011+RunHI2011+RECOHID11+HARVESTDHI/step2_RunHI2011+RunHI2011+RECOHID11+HARVESTDHI.log 25.0 step3 runTheMatrix-results/25.0_TTbar+TTbar+DIGI+RECOAlCaCalo+HARVEST+ALCATT/step3_TTbar+TTbar+DIGI+RECOAlCaCalo+HARVEST+ALCATT.log 1000.0 step2 runTheMatrix-results/1000.0_RunMinBias2011A+RunMinBias2011A+TIER0+SKIMD+HARVESTDfst2+ALCASPLIT/step2_RunMinBias2011A+RunMinBias2011A+TIER0+SKIMD+HARVESTDfst2+ALCASPLIT.log 1001.0 step2 runTheMatrix-results/1001.0_RunMinBias2011A+RunMinBias2011A+TIER0EXP+ALCAEXP+ALCAHARVD1+ALCAHARVD2+ALCAHARVD3+ALCAHARVD4/step2_RunMinBias2011A+RunMinBias2011A+TIER0EXP+ALCAEXP+ALCAHARVD1+ALCAHARVD2+ALCAHARVD3+ALCAHARVD4.log you can see the results of the tests here: |
Updated so that now the add methods with overwrite=false will add an entry. RelVal error seem to be unrelated, they seem to fail at configuration creation not finding the alca config for the Charmonium PD or something similar. |
@cmsbuild please test |
The tests are being triggered in jenkins. |
-1 In file included from /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2015-12-10-1100/src/DataFormats/PatCandidates/interface/Lepton.h:22:0, from /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2015-12-10-1100/src/DataFormats/PatCandidates/interface/Muon.h:27, from /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2015-12-10-1100/src/PhysicsTools/PatAlgos/test/private/PATUserDataTestModule.cc:35: /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2015-12-10-1100/src/DataFormats/PatCandidates/interface/PATObject.h: In instantiation of 'void pat::PATObject::addUserData(const string&, const T&, bool, bool) [with T = ROOT::Math::LorentzVectorROOT::Math::PxPyPzE4D; ObjectType = reco::Muon; std::string = std::basic_string]': /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2015-12-10-1100/src/PhysicsTools/PatAlgos/test/private/PATUserDataTestModule.cc:129:60: required from here /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2015-12-10-1100/src/DataFormats/PatCandidates/interface/PATObject.h:310:91: error: no matching function for call to 'pat::PATObjectreco::Muon::addUserDataObject_(const string&, std::auto_ptrpat::UserData, bool&)' addUserDataObject_( label, pat::UserData::make(data, transientOnly), overwrite ); ^ /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2015-12-10-1100/src/DataFormats/PatCandidates/interface/PATObject.h:310:91: note: candidate is: /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_8_0_X_2015-12-10-1100/src/DataFormats/PatCandidates/interface/PATObject.h:771:8: note: void pat::PATObject::addUserDataObject_(const string&, pat::UserData*, bool) [with ObjectType = reco::Muon; std::string = std::basic_string] void PATObject::addUserDataObject_( const std::string & label, pat::UserData \* data, bool overwrite ) you can see the results of the tests here: |
Pull request #12750 was updated. @smuzaffar, @Dr15Jones, @cvuosalo, @monttj, @cmsbuild, @slava77, @vadler, @davidlange6 can you please check and sign again. |
@cmsbuild please test |
The tests are being triggered in jenkins. |
-1 Tested at: 4b799cf ---> test testRecoMETMETProducers had ERRORS you can see the results of the tests here: |
+1 |
+1 Bug fix to allow addUserInt and addUserFloat to handle multiple values with the same key. There should be no change in monitored quantities. The code changes are satisfactory, and Jenkins tests against baseline CMSSW_8_0_X_2015-12-16-1100 show no significant differences, as expected. The Jenkins unit test failure is unrelated to this PR. |
Fix addUserInt and addUserFloat with multiple values on the same key
#11574 didn't implement correctly the cases of multiple values on the same key:
addUserFloat
was ignoring theoverwrite
parameteroverwrite
parameter was not present in theaddUserInt
, only inaddUserFloat
Should not affect MiniAOD production nor MiniAOD analysis, since I believe in those workflows we never write multiple values with the same key.
If the investigation of https://hypernews.cern.ch/HyperNews/CMS/get/physTools/3435.html reveals further problems, I will add them in this PR.
Please have a look, if satisfactory I can make also 76X backport and, if needed by HI, 75X backport.
@lgray