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

ROOT does not use u or l qualifiers for integer template parameters in na... #7586

Merged
merged 1 commit into from Feb 7, 2015

Conversation

wmtan
Copy link
Contributor

@wmtan wmtan commented Feb 6, 2015

This is a bug fix to allow putting a ROOT SMatrix in an event, as requested by Slava Krutelyov.
ROOT does not use u or l qualifiers for the names of integer template parameters in class names. Because of this, a missing dictionary error resulted when attempting put an SMatrix into an event.
This pull request adds stripping off the "u" or "l" qualifiers in class names containing integer template parameters, thereby correcting the error.
This fix required the use of std::regex_replace(). Since we need regex_replace() anyway, two other existing CMSSW functions currently used to normalize class names were removed, as their usage is here being replaced by calls to std::regex_replace(). The usage of these functions was local to the one modified source file.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 6, 2015

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

ROOT does not use u or l qualifiers for integer template prameters in na...

It involves the following packages:

FWCore/Utilities

@cmsbuild, @Dr15Jones, @ktf, @nclopezo can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @wddgit this is something you requested to watch as well.
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 Feb 6, 2015

Thank you, Bill.

I tried it with https://github.com/slava77/cmssw/blob/a702fac38b8ed2fd2a5c6d1667fc3d24fe9906de/RecoMET/METProducers/src/METSignificanceProducer.cc
and it works almost in full: I could save it and access from FWLite but only from the bare-bones data members
double22double2ROOTMathMatRepSymROOTMathSMatrix_METSignificance_METCovariance_PAT.obj.fRep.fArray[0]
.obj.At(0,0) gave me zeroes while the actual values are not zeroes

@mmarionncern

@Dr15Jones
Copy link
Contributor

+1

@Dr15Jones
Copy link
Contributor

Please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 6, 2015

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 6, 2015

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_4_X IBs unless changes or unless it breaks tests. This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @ktf, @smuzaffar

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 6, 2015

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_4_X IBs unless changes or unless it breaks tests. This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @ktf, @smuzaffar

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 6, 2015

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_4_X IBs unless changes (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @ktf, @smuzaffar

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 6, 2015

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 6, 2015

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_4_X IBs unless changes (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @ktf, @smuzaffar

@wmtan
Copy link
Contributor Author

wmtan commented Feb 6, 2015

Note: This pull request is fine for 7_4_X, but the code changes for ROOT 6 are different.
Pull request #7607 is the code changes for the CMSSW_7_4_ROOT6_X branch.
Please do not attempt to merge this PR (#7568) into 7_4_ROOT6_X.

@wmtan wmtan changed the title ROOT does not use u or l qualifiers for integer template prameters in na... ROOT does not use u or l qualifiers for integer template parameters in na... Feb 6, 2015
@davidlange6
Copy link
Contributor

+1

cmsbuild added a commit that referenced this pull request Feb 7, 2015
ROOT does not use u or l qualifiers for integer template parameters in na...
@cmsbuild cmsbuild merged commit 06d1322 into cms-sw:CMSSW_7_4_X Feb 7, 2015
@wmtan wmtan deleted the RemoveULQualifiers branch February 7, 2015 16:01
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