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

Cleanup sim mergeable products #13993

Merged
merged 2 commits into from May 10, 2016

Conversation

Dr15Jones
Copy link
Contributor

Made non-critical changes to Sim Run products in order to clean them up. Removing the non-useful isMergeable method of GenRunInfoProduct will allow this product to be read at beginRun time and avoids the framework difficulties with mergeable run products.

Removed the typedef weights_defs in LHERunInfoProduct since it is
not used anywhere in CMSSW.
The GenRunInfoProduct had a mergeProduct method which signaled to the framework that
this product has to be merged within a Run. However, the method itself did not actually
merge so all that is needed is the isProductEqual method.
In addition, since no classes inherit from this class, all methods are now non-virtual.
@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 8, 2016

A new Pull Request was created by @Dr15Jones (Chris Jones) for CMSSW_8_1_X.

It involves the following packages:

SimDataFormats/GeneratorProducts

@cmsbuild, @covarell, @govoni, @thuer, @davidlange6 can you please review it and eventually sign? Thanks.
@slava77, @Degano, @smuzaffar you are the release manager for this.

cms-bot commands are list here #13028

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 8, 2016

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 8, 2016

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 8, 2016

@covarell
Copy link
Contributor

@bendavid @syuvivida do you see any problem with this?

@bendavid
Copy link
Contributor

This looks ok to me (but doesn't solve the issue for LHERunInfoProduct where it is both more critical and also more difficult to fix in a way which maintains compatibility both with existing samples and with the current wmLHE workflow)

@syuvivida
Copy link
Contributor

@covarell I don't have problem with this. GenLumiInfo is not dependent on GenRunInfo.

externalXSecNLO_ == other.externalXSecNLO_ &&
externalFilterEfficiency_ == other.externalFilterEfficiency_;
if( not result) {
edm::LogWarning("GenRunInfoProduct|ProductsNotMergeable")
Copy link
Contributor

Choose a reason for hiding this comment

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

@Dr15Jones - why not throw on this condition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed in the Core meeting, the framework is not expecting this routine to throw and will handle the error when this function returns false.

@davidlange6 davidlange6 merged commit f85dfb8 into cms-sw:CMSSW_8_1_X May 10, 2016
@Dr15Jones Dr15Jones deleted the cleanupSimMergeableProducts branch May 13, 2016 13:19
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

6 participants