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

Invalid include path in CommonTools/Utils/interface/normalizedPhi.h #14870

Closed
riga opened this issue Jun 14, 2016 · 10 comments
Closed

Invalid include path in CommonTools/Utils/interface/normalizedPhi.h #14870

riga opened this issue Jun 14, 2016 · 10 comments

Comments

@riga
Copy link
Contributor

riga commented Jun 14, 2016

Hi all,

I think that there are some broken include paths, e.g. in CommonTools/Utils/interface/normalizedPhi.h:

#include "DataFormats/Math/include/normalizedPhi.h"

which should be

#include "DataFormats/Math/interface/normalizedPhi.h"

I couldn't check yet, but maybe there are more broken includes. This should be backported to 80X as well.

Cheers,
Marcel

@cmsbuild
Copy link
Contributor

A new Issue was created by @riga Marcel R..

@davidlange6, @smuzaffar, @Degano, @davidlt, @Dr15Jones can you please review it and eventually sign/assign? Thanks.

cms-bot commands are list here #13029

@smuzaffar
Copy link
Contributor

Thanks @riga for spotting this. I guess no code in cmssw is including CommonTools/Utils/interface/normalizedPhi.h that is why we do not get compilation errors.

@slava77
Copy link
Contributor

slava77 commented Jun 17, 2016

we should just remove this file, as well as deltaPhi.h and deltaR.h in the same directory

@smuzaffar
Copy link
Contributor

Looks like there is some external code which uses it
https://github.com/search?q=+CommonTools%2FUtils%2Finterface%2FnormalizedPhi.h&type=Code&utf8=%E2%9C%93

I guess that code works in 76X and earlier releases but same code fails for 8XX releases.

@riga
Copy link
Contributor Author

riga commented Jun 17, 2016

Yep, that's exactly what we observed when transitioning to 80X.

@slava77
Copy link
Contributor

slava77 commented Jun 17, 2016

@smuzaffar
I couldn't find an example in your search that wasn't just a copy of CommonTools/Utils package (sombody's forks?)

@slava77
Copy link
Contributor

slava77 commented Jun 17, 2016

the CommonTools/Utils/src/normalizedPhi.cc was removed in 80X
#12843
if somebody's setup put's back an old (pre-80X) version of CommonTools/Utils on top of 80X or later release, they are on their own.

@smuzaffar
Copy link
Contributor

agree @slava77
@riga, right approch should be that you update your code to include DataFormats/Math/interface/normalizedPhi.h instead of CommonTools/Utils/interface/normalizedPhi.h

@slava77
Copy link
Contributor

slava77 commented Jun 17, 2016

@riga
which file did you have including CommonTools/Utils/interface/normalizedPhi.h?
If it happened to be CommonTools/Utils/src/normalizedPhi.cc, then your setup is likely malformed.

@riga
Copy link
Contributor Author

riga commented Jun 17, 2016

Turned out that CommonTools/Utils/interface/normalizedPhi.h was included in the code base of one of our subgroups, I'll just tell them to use DataFormats/Math/interface/normalizedPhi.h instead.

Thanks for the input!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants