-
Notifications
You must be signed in to change notification settings - Fork 16
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
Removing m_allCells from CaloTopoClusterFCCee algorithm members #70
Conversation
Thanks Juraj, tagging also @giovannimarchiori and @gartrog |
Hi @kjvbrt , Thanks a lot! |
Hi @giovannimarchiori, What about the position of the cluster itself? Is it OK to have it in cm or should I change that as well? Best, |
right, also the cluster position is in different units for topoclusters (cm) and sw clusters (mm) so would probably a good idea to harmonise and divide cluster position by /mm here |
if (er!=1) | ||
info() << "Problem in erasing cell ID from map." << endmsg; | ||
} | ||
cluster.setEnergy(energy); | ||
cluster.setPosition(edm4hep::Vector3f(posX / energy, posY / energy, posZ / energy)); | ||
cluster.setPosition(edm4hep::Vector3f{posX / energy, posY / energy, posZ / energy}); |
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.
please divide all 3 coordinates by dd4hep::mm
Hello! May I ask what's the status of the review of this PR? Thanks, Giovanni |
After homogenization of the units it looks good to me! |
The
m_allCells
unordered map is to my mind unnecessary as it does not provide any boost in performance, and introduces compulsory zeroing of the map before every event.Little benchmark on 100 evt:
Also, fixing issue/crash when running over
ddsim
generated sample(s).