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

Add const where possible and improve the names of temporary variables in the Overlay algorithm #16

Merged
merged 5 commits into from
Dec 6, 2024

Conversation

jmcarcell
Copy link
Member

@jmcarcell jmcarcell commented Dec 6, 2024

For example, instead of elem use something more descriptive like simTrackerHit or simCaloHit.

BEGINRELEASENOTES

  • Add const where possible and improve the names of temporary variables in the Overlay algorithm

ENDRELEASENOTES

@jmcarcell jmcarcell changed the title Add const where possible and improve the names of temporary variables Add const where possible and improve the names of temporary variables in the Overlay algorithm Dec 6, 2024
@jmcarcell jmcarcell enabled auto-merge (squash) December 6, 2024 10:42
@@ -101,7 +101,7 @@ std::tuple<edm4hep::TrackerHitPlaneCollection, edm4hep::TrackerHitSimTrackerHitL
auto thsthcol = edm4hep::TrackerHitSimTrackerHitLinkCollection();

std::string cellIDEncodingString = m_geoSvc->constantAsString(m_encodingStringVariable.value());
dd4hep::DDSegmentation::BitFieldCoder bitFieldCoder(cellIDEncodingString);
dd4hep::DDSegmentation::BitFieldCoder bitFieldCoder("system:4,layer:4,ring:2,module:8,sensor:2,x:32:-12,y:-12");
Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose this should not be here? Or do we really want to hardcode an encoding string here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Argh this was a local change that I had for some reason but didn't want to merge, I'll make a commit to fix it

@jmcarcell jmcarcell merged commit 656c582 into main Dec 6, 2024
7 checks passed
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