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

Add SMatrix<double,2> used as return type for MET::getSignificanceMatrix #7866

Merged

Conversation

dan131riley
Copy link

Add ROOT::Math::SMatrix<double,2> to DataFormats/Math. This type is not stored but is used as the return type of MET::getSignificanceMatrix(), so a dictionary is needed for that function to be called from FWLite interpreted code (e.g., PyROOT). For details see:

https://hypernews.cern.ch/HyperNews/CMS/get/physTools/3312/1.html

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @dan131riley (Dan Riley) for CMSSW_7_4_X.

Add SMatrix<double,2> used as return type for MET::getSignificanceMatrix

It involves the following packages:

DataFormats/Math

@cmsbuild, @cvuosalo, @nclopezo, @slava77 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 Feb 19, 2015

ok, so we'll keep it on hold.

Just visually, I don't understand why this change is helping
(https://github.com/cms-sw/cmssw/pull/7866/files#diff-806795153c7932d1e3a684e2707f3da3R147 has the same line once you expand the typedefs. Could it be that this specific typedef is somehow just not visible in FWLite.
@Dr15Jones @wmtan would you happen to know?

@Dr15Jones
Copy link
Contributor

Which typedef is the same? If it were already there then gccxml should have printed the exact type for the typedef during processing.

@slava77
Copy link
Contributor

slava77 commented Feb 19, 2015

Error <2>::type is in the classes.h file already.
On Feb 19, 2015 1:10 PM, "Chris Jones" notifications@github.com wrote:

Which typedef is the same? If it were already there then gccxml should
have printed the exact type for the typedef during processing.


Reply to this email directly or view it on GitHub
#7866 (comment).

@Dr15Jones
Copy link
Contributor

Actually, they are not the same Error<2>::type's fourth template argument is a ROOT::Math::MatRepSym<...> while SMatrix<double,2> has a fourth template argument of type ROOT::Math::MatRepStd<...>.

@slava77
Copy link
Contributor

slava77 commented Feb 19, 2015

Chris, thanks, this makes sense then.

@slava77
Copy link
Contributor

slava77 commented Feb 19, 2015

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cvuosalo
Copy link
Contributor

+1

For #7866 588092b

Adds a template instantiation to provide a dictionary entry for the return value of MET::getSignificanceMatrix() so it can be called in the PyRoot interpreter. No other effects on running code would be expected.

Jenkins tests against CMSSW_7_4_X_2015-02-19-1400 show no significant differences, as expected.

@cmsbuild
Copy link
Contributor

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

@davidlange6
Copy link
Contributor

+1

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

6 participants