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

Impossible to understand what to #include for ROOT::Math::PtEtaPhiMVector etc #8051

Closed
Axel-Naumann opened this issue Apr 30, 2021 · 6 comments

Comments

@Axel-Naumann
Copy link
Member

Describe the bug

Entering PtEtaPhiMVector in Doxygen's search brings us here: https://root.cern/doc/master/namespaceROOT_1_1Math.html#a6cea5921731c7ac99dea921fb188df31 - the documentation of the typedef, which happens to be in Vector4Dfwd.h. That header cannot be included as Vector4Dfwd.h (but only as ROOT/Vector4Dfwd.h - and it doesn't provide the definition of this type!

Expected behavior

Instead, the forward header should be reserved for the specialists, and documentation should point to Vector4D.h. It's fine if this header repeats the typedefs, and those in Vector4Dfwd.h are hidden from Doxygen. In the end, Doxygen's search should get me to the header that I need to #include, as a user, to access PtEtaPhiMVector, and it should be obvious how to see PtEtaPhiMVector's members.

@ynikitenko
Copy link

I had similar but different issues with includes:

@Axel-Naumann
Copy link
Member Author

Thanks, better! Still, I'd like to hear your counterargument on:

Instead, the forward header should be reserved for the specialists, and documentation should point to Vector4D.h. It's fine if this header repeats the typedefs, and those in Vector4Dfwd.h are hidden from Doxygen. In the end, Doxygen's search should get me to the header that I need to #include, as a user, to access PtEtaPhiMVector, and it should be obvious how to see PtEtaPhiMVector's members.

@lmoneta
Copy link
Member

lmoneta commented Jun 21, 2021

@Axel-Naumann : see my comment in #8224. I will not merge it and then close this issue

pzhristov pushed a commit to alisw/root that referenced this issue Aug 27, 2021
@dpiparo
Copy link
Member

dpiparo commented Aug 30, 2023

Adter looking at the doc online and after discussing with @lmoneta , I understand this is now fixed and the issue can be closed.

@dpiparo dpiparo closed this as completed Aug 30, 2023
@github-actions
Copy link

Hi @dpiparo, @couet, @lmoneta,

It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise.

Sincerely,
🤖

@couet couet removed their assignment Aug 31, 2023
@github-actions
Copy link

github-actions bot commented Sep 1, 2023

Hi @dpiparo, @lmoneta,

It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise.

Sincerely,
🤖

@dpiparo dpiparo added this to Issues in Fixed in 6.30/00 via automation Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

5 participants