Skip to content
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 getByLabelWithoutRegistration (81X). #14061

Merged
merged 2 commits into from Apr 18, 2016

Conversation

ndaci
Copy link
Contributor

@ndaci ndaci commented Apr 14, 2016

This is an 81X version of #13041 that was created by @jingyucms.
The changes fix a segmentation fault.
The fix is urgently needed by the TSG/STEAM subgroup.

An 80X backport version will follow.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @ndaci for CMSSW_8_1_X.

It involves the following packages:

GeneratorInterface/GenFilters
SimGeneral/MixingModule

@civanch, @covarell, @mdhildreth, @cmsbuild, @thuer, @govoni, @davidlange6 can you please review it and eventually sign? Thanks.
@agrohsje, @mkirsano, @wmtan this is something you requested to watch as well.
@slava77, @Degano, @smuzaffar you are the release manager for this.

cms-bot commands are list here #13028

@civanch
Copy link
Contributor

civanch commented Apr 14, 2016

Modifications are fine but in non-modified line 223 std::auto_ptr is used. Should replacement of std::auto_ptr be done in this PR or in the next one?

@ndaci
Copy link
Contributor Author

ndaci commented Apr 14, 2016

Why should "std::auto_ptr" be replaced? And by what?
Thanks in advance for the clarification.

@civanch
Copy link
Contributor

civanch commented Apr 14, 2016

please test
In new compilers std::auto_ptr should be replaced by std::unique_ptr, if not possible then by std::shared_ptr

I would guess the fix should be done in a separate PR.

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/12380/console

@davidlt
Copy link
Contributor

davidlt commented Apr 14, 2016

@ndaci because it's deprecated by C++ standards since C++11.

@cmsbuild
Copy link
Contributor

-1
Tested at: d19c9e6
When I ran the RelVals I found an error in the following worklfows:
101.0 step1

runTheMatrix-results/101.0_SingleElectronE120EHCAL+SingleElectronE120EHCAL/step1_SingleElectronE120EHCAL+SingleElectronE120EHCAL.log

8.0 step2

runTheMatrix-results/8.0_BeamHalo+BeamHalo+DIGICOS+RECOCOS+ALCABH+HARVESTCOS/step2_BeamHalo+BeamHalo+DIGICOS+RECOCOS+ALCABH+HARVESTCOS.log
----- Begin Fatal Exception 14-Apr-2016 17:31:41 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=MixingModule label='mix'
Exception Message:
MissingParameter: Parameter 'HepMCProductLabel' not found.
----- End Fatal Exception -------------------------------------------------

5.1 step1

runTheMatrix-results/5.1_TTbar+TTbarFS+HARVESTFS/step1_TTbar+TTbarFS+HARVESTFS.log
----- Begin Fatal Exception 14-Apr-2016 17:31:41 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=MixingModule label='mix'
Exception Message:
MissingParameter: Parameter 'HepMCProductLabel' not found.
----- End Fatal Exception -------------------------------------------------

135.4 step1

runTheMatrix-results/135.4_ZEE_13+ZEEFS_13+HARVESTUP15FS+MINIAODMCUP15FS/step1_ZEE_13+ZEEFS_13+HARVESTUP15FS+MINIAODMCUP15FS.log
----- Begin Fatal Exception 14-Apr-2016 17:31:47 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=MixingModule label='mix'
Exception Message:
MissingParameter: Parameter 'HepMCProductLabel' not found.
----- End Fatal Exception -------------------------------------------------

1306.0 step2

runTheMatrix-results/1306.0_SingleMuPt1_UP15+SingleMuPt1_UP15+DIGIUP15+RECOUP15+HARVESTUP15/step2_SingleMuPt1_UP15+SingleMuPt1_UP15+DIGIUP15+RECOUP15+HARVESTUP15.log
----- Begin Fatal Exception 14-Apr-2016 17:32:33 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=MixingModule label='mix'
Exception Message:
MissingParameter: Parameter 'HepMCProductLabel' not found.
----- End Fatal Exception -------------------------------------------------

10021.0 step2

runTheMatrix-results/10021.0_TenMuE_0_200+TenMuE_0_200_pythia8_2017_GenSimFull+DigiFull_2017+RecoFull_2017+HARVESTFull_2017/step2_TenMuE_0_200+TenMuE_0_200_pythia8_2017_GenSimFull+DigiFull_2017+RecoFull_2017+HARVESTFull_2017.log
----- Begin Fatal Exception 14-Apr-2016 17:33:12 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=MixingModule label='mix'
Exception Message:
MissingParameter: Parameter 'HepMCProductLabel' not found.
----- End Fatal Exception -------------------------------------------------

1330.0 step2

runTheMatrix-results/1330.0_ZMM_13+ZMM_13+DIGIUP15+RECOUP15+HARVESTUP15/step2_ZMM_13+ZMM_13+DIGIUP15+RECOUP15+HARVESTUP15.log
----- Begin Fatal Exception 14-Apr-2016 17:36:33 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=MixingModule label='mix'
Exception Message:
MissingParameter: Parameter 'HepMCProductLabel' not found.
----- End Fatal Exception -------------------------------------------------

9.0 step2

runTheMatrix-results/9.0_Higgs200ChargedTaus+Higgs200ChargedTaus+DIGI+RECO+HARVEST/step2_Higgs200ChargedTaus+Higgs200ChargedTaus+DIGI+RECO+HARVEST.log
----- Begin Fatal Exception 14-Apr-2016 17:38:59 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=MixingModule label='mix'
Exception Message:
MissingParameter: Parameter 'HepMCProductLabel' not found.
----- End Fatal Exception -------------------------------------------------

25.0 step2

runTheMatrix-results/25.0_TTbar+TTbar+DIGI+RECOAlCaCalo+HARVEST+ALCATT/step2_TTbar+TTbar+DIGI+RECOAlCaCalo+HARVEST+ALCATT.log
----- Begin Fatal Exception 14-Apr-2016 17:39:19 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=MixingModule label='mix'
Exception Message:
MissingParameter: Parameter 'HepMCProductLabel' not found.
----- End Fatal Exception -------------------------------------------------

50202.0 step2

runTheMatrix-results/50202.0_TTbar_13+TTbar_13+DIGIUP15_PU50+RECOUP15_PU50+HARVESTUP15_PU50/step2_TTbar_13+TTbar_13+DIGIUP15_PU50+RECOUP15_PU50+HARVESTUP15_PU50.log
----- Begin Fatal Exception 14-Apr-2016 17:41:22 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=MixingModule label='mix'
Exception Message:
MissingParameter: Parameter 'HepMCProductLabel' not found.
----- End Fatal Exception -------------------------------------------------

10024.0 step2

runTheMatrix-results/10024.0_TTbar_13+TTbar_13TeV_TuneCUETP8M1_2017_GenSimFull+DigiFull_2017+RecoFull_2017+HARVESTFull_2017/step2_TTbar_13+TTbar_13TeV_TuneCUETP8M1_2017_GenSimFull+DigiFull_2017+RecoFull_2017+HARVESTFull_2017.log
----- Begin Fatal Exception 14-Apr-2016 17:41:46 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=MixingModule label='mix'
Exception Message:
MissingParameter: Parameter 'HepMCProductLabel' not found.
----- End Fatal Exception -------------------------------------------------

25202.0 step2

runTheMatrix-results/25202.0_TTbar_13+TTbar_13+DIGIUP15_PU25+RECOUP15_PU25+HARVESTUP15_PU25/step2_TTbar_13+TTbar_13+DIGIUP15_PU25+RECOUP15_PU25+HARVESTUP15_PU25.log
----- Begin Fatal Exception 14-Apr-2016 17:41:48 CEST-----------------------
An exception of category 'Configuration' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=MixingModule label='mix'
Exception Message:
MissingParameter: Parameter 'HepMCProductLabel' not found.
----- End Fatal Exception -------------------------------------------------

you can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-14061/12380/summary.html
'List

@civanch
Copy link
Contributor

civanch commented Apr 14, 2016

@ndaci , the line 222 of MixingModule.cc is not needed at all, having such consumes within a loop is not a correct thing, in the constructor there is a place where HepMCProduct consumes declaration is set.

@ndaci
Copy link
Contributor Author

ndaci commented Apr 14, 2016

Thanks for the tests and interpretations.
Ok, should I simply remove the incriminated line ?

@civanch
Copy link
Contributor

civanch commented Apr 14, 2016

I think so.

@cmsbuild
Copy link
Contributor

Pull request #14061 was updated. @cmsbuild, @covarell, @govoni, @thuer, @davidlange6 can you please check and sign again.

@civanch
Copy link
Contributor

civanch commented Apr 14, 2016

please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/12385/console

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@davidlange6 davidlange6 merged commit 4751015 into cms-sw:CMSSW_8_1_X Apr 18, 2016
@tobias-pook
Copy link
Contributor

When do you plan the backport ? We plan to produce n-tuples for some groups with the production version 8_0_X soon and this fix is needed to include gen filter results. We otherwise need to merge topic from a user fork.

@ndaci
Copy link
Contributor Author

ndaci commented Apr 29, 2016

The backport PR #14064 was open simultaneously. I got no news there for now.

@fwyzard
Copy link
Contributor

fwyzard commented Jan 17, 2017

@ndaci , the line 222 of MixingModule.cc is not needed at all, having such consumes within a loop is not a correct thing, in the constructor there is a place where HepMCProduct consumes declaration is set.

Looks like the consumes was actually needed... @ndaci , can you make a PR for 8.0.x, 8.1.x and 9.0.x that adds it back ?

By the way, tje comment about it being inside a loop is just moot - if the module is configured with multiple input collections, consumes has to be called for all of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants