-
Notifications
You must be signed in to change notification settings - Fork 19
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
Switch from association to link #200
Conversation
|
||
for (const auto& [edm4hepName, lcioName] : collsToConvert) { | ||
const auto coll = getEDM4hepCollection(edm4hepName); | ||
if (coll->getTypeName().find("Association") != std::string_view::npos) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what #199 is referring to since now it's impossible to find "Association" in the type name.
Seems, I didn't merge this yet. AFAIU this solves the issue and can be merged, right? |
Maybe there should be a test doing something with links? Otherwise this can just not be caught if there is another problem like this one. |
There is already a test with links |
@jmcarcell do you want to have another closer look? Otherwise, I would merge this later today. |
test/src/MarlinMCRecoLinkChecker.cc
Outdated
std::to_string(i) + ", actual: " + std::to_string(rel->getWeight()) + ")"); | ||
} | ||
|
||
if (!(rel->getTo() == mc)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we don't have !=
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do, especially because for LCIO this is just comparing pointers. (We would also have it for EDM4hep). This is a remnant from copy-pasting.
e3af620
to
49aaced
Compare
BEGINRELEASENOTES
Association
toLink
in the conversion from EDM4hep to LCIO to accomodate for the new naming from (EDM4hep#341)ENDRELEASENOTES
Fixes #199 (I think). @andresailer was this what you were referring to in that issue?
Fixes key4hep/k4EDM4hep2LcioConv#93