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

Don't use radiusOfInnermostHit from EDM4hep tracks #202

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

jmcarcell
Copy link
Member

see key4hep/EDM4hep#326. Can be merged at any time, doesn't need key4hep/EDM4hep#326 first.

BEGINRELEASENOTES

  • Don't use radiusOfInnermostHit from EDM4hep tracks

ENDRELEASENOTES

Copy link
Contributor

@tmadlener tmadlener left a comment

Choose a reason for hiding this comment

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

Only a few spurious stream operations that can be removed.

std::stringstream error;
error << "Wrong data in tracks collection, expected 1, 2.1, 3, 4.1, 5.1, 6.1 got " << tracks[0].getType()
<< ", " << tracks[0].getChi2() << ", " << tracks[0].getNdf() << ", "
<< tracks[0].getRadiusOfInnermostHit() << "";
<< ", " << tracks[0].getChi2() << ", " << tracks[0].getNdf() << "";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<< ", " << tracks[0].getChi2() << ", " << tracks[0].getNdf() << "";
<< ", " << tracks[0].getChi2() << ", " << tracks[0].getNdf();

Copy link
Member Author

Choose a reason for hiding this comment

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

I noticed and then forgot because I wanted to look at the whole repo... There were a few more occurrences but they should all be gone now.

std::stringstream error;
error << "Wrong data in tracks collection, expected 1, 2.1, 3, 4.1, 5.1, 6.1 got " << tracks[0].getType() << ", "
<< tracks[0].getChi2() << ", " << tracks[0].getNdf() << ", " << tracks[0].getRadiusOfInnermostHit() << "";
<< tracks[0].getChi2() << ", " << tracks[0].getNdf() << "";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<< tracks[0].getChi2() << ", " << tracks[0].getNdf() << "";
<< tracks[0].getChi2() << ", " << tracks[0].getNdf();

std::stringstream error;
error << "Wrong data in tracks collection, expected 1, 2.1, 3, 4.1, 5.1, 6.1 got " << tracks.at(0).getType()
<< ", " << tracks.at(0).getChi2() << ", " << tracks.at(0).getNdf() << ", "
<< tracks.at(0).getRadiusOfInnermostHit() << "";
<< ", " << tracks.at(0).getChi2() << ", " << tracks.at(0).getNdf() << "";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<< ", " << tracks.at(0).getChi2() << ", " << tracks.at(0).getNdf() << "";
<< ", " << tracks.at(0).getChi2() << ", " << tracks.at(0).getNdf();

@jmcarcell jmcarcell merged commit f56bdd9 into main Jun 24, 2024
4 of 9 checks passed
@jmcarcell jmcarcell deleted the remove-radius-innermosthit branch June 24, 2024 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants