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

Commonality with ROOT6 version in CommonTools/Utils #8534

Merged

Conversation

wmtan
Copy link
Contributor

@wmtan wmtan commented Mar 25, 2015

This pull request is for commonality in the CMSSW code for the package CommonTools/Utils between CMSSW_7_4_ROOT6_X and CMSSW_7_4_X. All the changes in this package in CMSSW_7_4_ROOT6_X that are compatible with ROOT5 are ported back in this PR. The changes may seem extensive, but much of it is white space changes and reformatting.
The CondCore/Utils unit tests and the entire relval matrix pass with this PR.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @wmtan for CMSSW_7_4_X.

Commonality with ROOT6 version in CommonTools/Utils

It involves the following packages:

CommonTools/Utils

@nclopezo, @cvuosalo, @monttj, @cmsbuild, @slava77, @vadler 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.
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.

@slava77
Copy link
Contributor

slava77 commented Mar 26, 2015

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

ExpressionVar::makeStorage(edm::ObjectWithDict& obj,
const edm::TypeWithDict& retType)
{
static edm::TypeWithDict tVoid(edm::TypeWithDict::byName("void"));
Copy link
Contributor

Choose a reason for hiding this comment

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

tVoid should be made const for thread safety. If you have to change this PR for other reasons, it would be good to fix tVoid at the same time. Otherwise, it can wait until later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

tVoid cannot be declared const because it is a static function. There is no object to be const in a static function.

Copy link
Contributor

Choose a reason for hiding this comment

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

Unless I'm missing something, tVoid is an instance of the class edm::TypeWithDict. It is not a function. It is declared static so that it will be initialized only once and will preserve its value thereafter. It could probably be made static const without causing problems.
But it does not need to be fixed in this PR, unless other changes are also being made.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are correct. Yes, it probably should be declared const.

@cvuosalo
Copy link
Contributor

+1

For #8534 c23e45c

Re-formatting of code for ROOT5/ROOT6 compatibility. There should be no change in functionality.

Jenkins tests against baseline CMSSW_7_4_X_2015-03-24-2300 are OK and show no significant differences, as expected. The matching PR #8534 for the ROOT5 branch has a pre-existing compile error in that branch, but this PR does not seem to have any compile problems of its own, even though GitHub reports such an error.

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

5 participants