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 #13041

Closed
wants to merge 1 commit into from

Conversation

jingyucms
Copy link
Contributor

When I run MixingModule and GetByLabelWithoutRegistration fault [1]. This shouldn't be general fix. This is just my fix that solve my problem. Appreciated if expert have a solution.

[1]
----- Begin Fatal Exception 19-Jan-2016 14:45:08 CET-----------------------

An exception of category 'GetByLabelWithoutRegistration' occurred while

[0] Processing run: 1 lumi: 87451 event: 14604151

[1] Running path 'HLT_MuFilterTP_v1'

[2] Calling event method for module MixingModule/'mix'

Exception Message:

::getByLabel without corresponding call to consumes or mayConsumes for this module.

type: edm::HepMCProduct

module label: generatorSmeared

product instance name: ''

process name: ''

----- End Fatal Exception -------------------------------------------------

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @jingyucms (Jingyu Zhang) for CMSSW_7_6_X.

It involves the following packages:

GeneratorInterface/GenFilters
SimGeneral/MixingModule

@vciulli, @civanch, @covarell, @mdhildreth, @cmsbuild, @thuer, @bendavid, @davidlange6, @govoni can you please review it and eventually sign? Thanks.
@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

@@ -219,6 +219,7 @@ namespace edm {
std::vector<std::string> digiNames = digiPSet.getParameterNames();
for(auto const& digiName : digiNames) {
ParameterSet const& pset = digiPSet.getParameterSet(digiName);
consumes<HepMCProduct>(pset.getParameter<edm::InputTag>("HepMCProductLabel"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jingyucms - i'm not sure why this line is here. If its needed, it should be outside the loop

@davidlange6
Copy link
Contributor

@jingyucms -please make a 80x version of this.

@covarell
Copy link
Contributor

-1

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.

4 participants