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

CorrectedJetProducer: change into a global::EDProducer (75x) #11300

Merged
merged 2 commits into from Sep 23, 2015

Conversation

fwyzard
Copy link
Contributor

@fwyzard fwyzard commented Sep 16, 2015

change all specialisations of CorrectedJetProducer into
global::EDProducer modules:

  • CorrectedCaloJetProducer
  • CorrectedPFJetProducer
  • CorrectedJPTJetProducer
  • CorrectedTrackJetProducer
  • CorrectedGenJetProducer

change all specialisations of `CorrectedJetProducer` into
`global::EDProducer` modules:
  - `CorrectedCaloJetProducer`
  - `CorrectedPFJetProducer`
  - `CorrectedJPTJetProducer`
  - `CorrectedTrackJetProducer`
  - `CorrectedGenJetProducer`
@fwyzard
Copy link
Contributor Author

fwyzard commented Sep 16, 2015

please test

@cmsbuild cmsbuild added this to the Next CMSSW_7_5_X milestone Sep 16, 2015
@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @fwyzard (Andrea Bocci) for CMSSW_7_5_X.

change CorrectedJetProducer into global::EDProducer

It involves the following packages:

JetMETCorrections/Modules

@cmsbuild, @vadler, @monttj can you please review it and eventually sign? Thanks.
@rappoccio, @ahinzmann, @mmarionncern, @jdolen, @nhanvtran, @schoef, @mariadalfonso, @TaiSakuma this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
If you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.
@Degano you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@fwyzard
Copy link
Contributor Author

fwyzard commented Sep 16, 2015

this was a rather simple change, so I suspect that there is some underlying issue ?
@Dr15Jones , @davidlange6 , @slava77 , @cvuosalo , do you know of any issues with jet corrections and multithreading ?

@slava77
Copy link
Contributor

slava77 commented Sep 16, 2015

jet correctors had thread safety issues up until this summer or so.

on the other hand, somewhat centralized migration was done mainly based on a reco application and these modules are not in reco

@fwyzard fwyzard changed the title change CorrectedJetProducer into global::EDProducer CorrectedJetProducer: change into a global::EDProducer (75x) Sep 16, 2015
@fwyzard
Copy link
Contributor Author

fwyzard commented Sep 16, 2015

tracked at #10965

@cmsbuild
Copy link
Contributor

{
// cache - note that variable length arrays are a GCC extension
reco::JetCorrector const * correctors[mCorrectorTokens.size()];
Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't use this construct since it is not in the C++ standard. Using a std::vector<> here is not going to even show up on the performance I bet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not against avoiding the extensions, but if we do want to enforce it, can we add -Werror=vla to compiler options to prevent it ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

By the way, I wouldn't mind using a boost::small_vector<> .
Can we has boost 1.58 ?

@Dr15Jones
Copy link
Contributor

This code does seem to be thread-safe to me. My only comment was the use of the VLA which is not C++ compliant.

@fwyzard
Copy link
Contributor Author

fwyzard commented Sep 18, 2015

please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

Pull request #11300 was updated. @cmsbuild, @vadler, @monttj can you please check and sign again.

@cmsbuild
Copy link
Contributor

@Dr15Jones
Copy link
Contributor

@fwyzard Changing the line of code lost your comment about upgrading to boost 1.58 . @davidlange6 Is our ability to move to a new boost constrained because of the DB code's forward compatibility requirement on boost serialization?

@cmsbuild
Copy link
Contributor

@monttj
Copy link
Contributor

monttj commented Sep 22, 2015

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_5_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_7_6_X is complete. This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar

@davidlange6
Copy link
Contributor

@Dr15Jones - yes, i understood that boost 1.58 indeed is sufficient to break the db compatibility.

@davidlange6
Copy link
Contributor

+1

cmsbuild added a commit that referenced this pull request Sep 23, 2015
CorrectedJetProducer: change into a global::EDProducer (75x)
@cmsbuild cmsbuild merged commit 4fd9033 into cms-sw:CMSSW_7_5_X Sep 23, 2015
@fwyzard fwyzard deleted the global_CorrectedJetProducer_75x branch September 23, 2015 20:05
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