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
DD Read Only View #4476
Conversation
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
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. |
Looks like a good way to do it to me. |
@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. |
+1 |
@@ -159,6 +162,8 @@ class DDCompactView | |||
DDCompactViewImpl* rep_; | |||
|
|||
private: | |||
DDPosData* worldpos_ ; |
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.
What about using a std::unique_ptr<DDPosData>
and std::unique_ptr<DDCompactViewImpl>
instead to automatically handle memory issues?
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.
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.
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. |
-1 Tested at: 74753d8 ---> test const_dump had ERRORS you can see the results of the tests here: |
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). |
Pull request #4476 was updated. @civanch, @Dr15Jones, @ianna, @mdhildreth, @cmsbuild, @nclopezo, @Degano, @ktf can you please check and sign again. |
@cmsbuild - this should fix the errors. |
-1 Tested at: e67508a ---> test DetectorDescriptionParserTE had ERRORS you can see the results of the tests here: |
@cmsbuild - oops, missed the default constructor. Fixed. |
Pull request #4476 was updated. @civanch, @Dr15Jones, @ianna, @mdhildreth, @cmsbuild, @nclopezo, @Degano, @ktf can you please check and sign again. |
+1 |
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). |
DetectorDescription/Core -- DD Read Only View