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

Make edm::EventSetup a facade #25783

Merged
merged 16 commits into from
Feb 6, 2019
Merged

Conversation

Dr15Jones
Copy link
Contributor

edm::EventSetup is now just a wrapper around the new edm::EventSetupImpl. The latter has all the functionality of the previous edm::EventSetup. This now matches the pattern used elsewhere, such as edm::Event and edm::EventPrincipal.

This will allow additional upcoming changes.

edm::EventSetup is now just a wrapper around the new
edm::EventSetupImpl. The latter has all the functionality of
the previous edm::EventSetup. This now matches the pattern used
elsewhere, such as edm::Event and edm::EventPrincipal.

This will allow additional upcoming changes.
@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-25783/8214

  • This PR adds an extra 244KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

FWCore/Framework
FWCore/TestProcessor
FWCore/Utilities

@cmsbuild, @smuzaffar, @Dr15Jones can you please review it and eventually sign? Thanks.
@makortel, @felicepantaleo, @wddgit, @Martin-Grunewald this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 29, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/32887/console Started: 2019/01/29 22:00

@cmsbuild
Copy link
Contributor

-1

Tested at: 73eb6b8

You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-25783/32887/summary.html

I found follow errors while testing this PR

Failed tests: Build HeaderConsistency

  • Build:

I found compilation error when building:

@@@@ Running edmWriteConfigs for testGeometryRPCRadii
--- Registered EDM Plugin: testGeometryRPCRadii
Entering library rule at src/Geometry/RPCGeometry/test
>> Compiling edm plugin /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_5_X_2019-01-29-1100/src/Geometry/RPCGeometry/test/RPCGEO2.cc 
/build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_5_X_2019-01-29-1100/src/Geometry/RPCGeometry/test/RPCGEO2.cc: In member function 'virtual void RPCGEO2::analyze(const edm::Event&, const edm::EventSetup&)':
/build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_5_X_2019-01-29-1100/src/Geometry/RPCGeometry/test/RPCGEO2.cc:79:4: error: invalid use of incomplete type 'const class edm::EventSetup'
    iSetup.get().get(rpcGeo);
    ^~~~~~
In file included from /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_5_X_2019-01-29-1100/src/Geometry/RPCGeometry/test/RPCGEO2.cc:24:0:
/build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_5_X_2019-01-29-1100/src/FWCore/Framework/interface/Frameworkfwd.h:23:9: note: forward declaration of 'class edm::EventSetup'
   class EventSetup;


@cmsbuild
Copy link
Contributor

Comparison not run due to Build errors (RelVals and Igprof tests were also skipped)

Too many other files in CMSSW are depending on this file containing
the include of EventSetup.h in this file.
@Dr15Jones
Copy link
Contributor Author

+1

@andrius-k
Copy link

+1

@civanch
Copy link
Contributor

civanch commented Feb 4, 2019

+1

@@ -241,6 +241,7 @@ RPCSeedGenerator::produce(edm::Event& iEvent, const edm::EventSetup& iSetup)

// Start from filling layers to filling seeds
LayerFinder.fill();
Overlapper.setEventSetup(iSetup);
Copy link
Contributor

Choose a reason for hiding this comment

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

there is a call to setEventSetup in the beginRun.
Is it added here because iSetup can now change during a job (or an IOV)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The edm::EventSetup object is now a temporary that only lives for the life-time of the call. All the management of the IOVs and data is done by a new edm::EventSetupImpl object which is held by the edm::EventSetup and has a longer lifetime.

@slava77
Copy link
Contributor

slava77 commented Feb 4, 2019

+1

for #25783 c0c3bf6

  • code changes are in line with the PR description
  • jenkins tests pass and comparisons with the baseline show no relevant differences (there are a few changes in the DQM L1TEMU plots, but that's outside of reco and also I recall that they sometimes show up as random differences).

@Dr15Jones
Copy link
Contributor Author

@franzoni @pohsun @tocheng @santocch please review and sign

@pohsun
Copy link

pohsun commented Feb 5, 2019

+1

@fabiocos
Copy link
Contributor

fabiocos commented Feb 6, 2019

dependent on #25838 must be merged after that

@santocch
Copy link

santocch commented Feb 6, 2019

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 6, 2019

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@fabiocos
Copy link
Contributor

fabiocos commented Feb 6, 2019

+1

the DQM differences appear unrelated to this PR, long standing non reproducibility of L1T code
The header check reports both a toll crash and warnings fron an unrelated external tool

@cmsbuild cmsbuild merged commit 17b8235 into cms-sw:master Feb 6, 2019
@Dr15Jones Dr15Jones deleted the eventSetupFacade branch February 7, 2019 14: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

8 participants