-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
JER integration into conditions database #10448
Conversation
A new Pull Request was created by @blinkseb (Sébastien Brochet) for CMSSW_7_6_X. JER integration into conditions database It involves the following packages: CondCore/JetMETPlugins @diguida, @cerminar, @monttj, @cmsbuild, @ggovi, @vadler, @mmusich can you please review it and eventually sign? Thanks. |
Is there any news on this? This is quite high priority for JME. Thanks! The PR for data has been merged on cms-data so everything is available in latest IB. |
@cmsbuild, please test |
@blinkseb sorry for late reply, looking into it. |
std::shared_ptr<JetResolutionObject> m_object; | ||
}; | ||
|
||
class JetResolutionScaleFactor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@blinkseb I am a bit confused by this class. It is basically an observer for JetResolutionObject
.
I would definitively not put it here, where you declare entity classes (observers fall in the control class domain).
See more comments on the implementation on each method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay, I was in holidays.
Do you want me to move these classes into another files?
3d793af
to
facd68e
Compare
As suggested by @diguida, I moved the classes |
@diguida Could we please proceed with this? Anything wlese required from our side? |
please test |
The tests are being triggered in jenkins. |
-1 >> Compiling edm plugin /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2015-09-13-1100/src/JetMETCorrections/Modules/plugins/JetCorrectorProducers.cc >> Compiling edm plugin /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2015-09-13-1100/src/JetMETCorrections/Modules/plugins/JetResolutionDBReader.cc >> Compiling edm plugin /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2015-09-13-1100/src/JetMETCorrections/Modules/plugins/JetResolutionDBWriter.cc >> Compiling edm plugin /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2015-09-13-1100/src/JetMETCorrections/Modules/plugins/JetResolutionDemo.cc >> Compiling edm plugin /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2015-09-13-1100/src/JetMETCorrections/Modules/plugins/METCorrectorDBWriter.cc /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2015-09-13-1100/src/JetMETCorrections/Modules/plugins/JetResolutionDemo.cc:12:63: fatal error: JetMETCorrections/Modules/interface/JetResolution.h: No such file or directory #include "JetMETCorrections/Modules/interface/JetResolution.h" ^ compilation terminated. /tmp/cmsbuild/workspace/ib-any-integration/CMSSW_7_6_X_2015-09-13-1100/src/JetMETCorrections/Modules/plugins/JetResolutionDemo.cc:12:63: fatal error: JetMETCorrections/Modules/interface/JetResolution.h: No such file or directory #include "JetMETCorrections/Modules/interface/JetResolution.h" you can see the results of the tests here: |
I've updated the PR to fix build issues. |
facd68e
to
e5409fd
Compare
Is there something else I need to do for this PR to be merged? Just let me know. |
@blinkseb we are reviewing it. Thanks |
+1
Things to be fixed or possibly reviewed in later PR:
|
Thanks for the review @diguida! I'll update the PR with the changes requested. Just one question about your latest point (dispatching of I tried to return a const ref but it's obviously not possible since the |
@ggovi ping :-) |
@blinkseb do not update this PR now, otherwise it has to be re-tested! |
+1 |
Seems reasonable |
@Dr15Jones thanks for looking into that. |
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_6_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar |
+1 |
JER integration into conditions database
(This a a resubmission of #10350 targeting CMSSW 7.6.x and with corrections)
This PR adds the necessary machinery to store Jet energy Resolutions and associated Scale Factors to the conditions database.
Values are parsed from text files using the same format as Jet Energy Corrections text files. Two new records are added, JetResolutionRcd and JetResolutionScaleFactorRcd, storing respectively resolutions and scale factors. Both resolutions and scale factors are converted to a common object, JetResolutionObject, which is serialized into the corresponding records.
Facility are provided to create a database from text files [1] and to create text files from a database or a GT [2].
Users can access values using the classes JetResolution and JetResolutionScaleFactors. A static function is provided to hide the boilerplate to retrieve the object from the condition database. A demo analyzer is included as an how-to tutorial [3] and is ran as an unit-test for the package.
This depends also on two data files used for unit-testing.
Corresponding PR is pending for inclusion on the cms-data org [4]. PR is merged.This interface has been presented and validated at the JERC meeting on 07/23.
This will need to be backported into CMSSW 7.5.x and probably also 7.4.x
[1] https://github.com/blinkseb/cmssw/blob/665bd5d702f5ed976a898b7f8c426a5955eaf103/JetMETCorrections/Modules/test/JetResolutionDBWriter_cfg.py
[2] https://github.com/blinkseb/cmssw/blob/665bd5d702f5ed976a898b7f8c426a5955eaf103/JetMETCorrections/Modules/test/JetResolutionLocalDBReader_cfg.py
[3] https://github.com/blinkseb/cmssw/blob/665bd5d702f5ed976a898b7f8c426a5955eaf103/JetMETCorrections/Modules/plugins/JetResolutionDemo.cc
[4] #10350