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

DD Read Only View #4476

Merged
merged 4 commits into from Jul 3, 2014
Merged

DD Read Only View #4476

merged 4 commits into from Jul 3, 2014

Conversation

ianna
Copy link
Contributor

@ianna ianna commented Jul 1, 2014

  • Move position of the "real" root node of the graph to compact view.
  • It is initialized at construction time in EventSetup.
  • Expanded view uses a read-only access to StoreT::instances

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 1, 2014

A new Pull Request was created by @ianna for CMSSW_7_2_X.

DD Read Only View

It involves the following packages:

DetectorDescription/Core

@civanch, @Dr15Jones, @ianna, @mdhildreth, @cmsbuild, @nclopezo, @Degano, @ktf can you please review it and eventually sign? Thanks.
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.

@Dr15Jones
Copy link
Contributor

Looks like a good way to do it to me.

@ianna
Copy link
Contributor Author

ianna commented Jul 1, 2014

@Dr15Jones - please, review the code. I'm not sure why filtered view should always create an expanded view from the root node of a graph and not from a specific node. BTW, it is done ~30 times in a relval. I'll see if this can be improved.

@Dr15Jones
Copy link
Contributor

+1

@@ -159,6 +162,8 @@ class DDCompactView
DDCompactViewImpl* rep_;

private:
DDPosData* worldpos_ ;
Copy link
Contributor

Choose a reason for hiding this comment

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

What about using a std::unique_ptr<DDPosData> and std::unique_ptr<DDCompactViewImpl> instead to automatically handle memory issues?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, @Dr15Jones I'll check it. The pointer is used in a container. I have to verify if all needed operations are possible - it is if they involve copying which the type does not support.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 1, 2014

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes or unless it breaks tests.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 2, 2014

-1

Tested at: 74753d8
I ran the usual tests and I found errors in the following unit tests:

---> test const_dump had ERRORS
---> test DDErrorReport had ERRORS
---> test DDCompareCPV had ERRORS
---> test testNew had ERRORS
---> test reg_ddparser had ERRORS
---> test DetectorDescriptionParserTE had ERRORS
---> test reg_ddcore had ERRORS
---> test DetectorDescriptionRegressionTestDDErrorReport had ERRORS
---> test testmat had ERRORS
---> test testDDCompactView had ERRORS
---> test dumpDDCompactView had ERRORS
---> test dumpDDExpandedView had ERRORS

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 2, 2014

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes (but tests are reportedly failing).

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 2, 2014

Pull request #4476 was updated. @civanch, @Dr15Jones, @ianna, @mdhildreth, @cmsbuild, @nclopezo, @Degano, @ktf can you please check and sign again.

@ianna
Copy link
Contributor Author

ianna commented Jul 2, 2014

@cmsbuild - this should fix the errors.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 2, 2014

-1

Tested at: e67508a
I ran the usual tests and I found errors in the following unit tests:

---> test DetectorDescriptionParserTE had ERRORS
---> test dumpDDExpandedView had ERRORS
---> test testDDCompactView had ERRORS

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 2, 2014

@ianna
Copy link
Contributor Author

ianna commented Jul 2, 2014

@cmsbuild - oops, missed the default constructor. Fixed.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 2, 2014

Pull request #4476 was updated. @civanch, @Dr15Jones, @ianna, @mdhildreth, @cmsbuild, @nclopezo, @Degano, @ktf can you please check and sign again.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 2, 2014

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 2, 2014

@ianna
Copy link
Contributor Author

ianna commented Jul 3, 2014

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 3, 2014

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes (tests are also fine).

nclopezo added a commit that referenced this pull request Jul 3, 2014
DetectorDescription/Core -- DD Read Only View
@nclopezo nclopezo merged commit ce87f20 into cms-sw:CMSSW_7_2_X Jul 3, 2014
@ianna ianna deleted the dd-read-only-view branch October 26, 2015 16:15
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

4 participants