Skip to content

Conversation

@danieljeans
Copy link
Contributor

BEGINRELEASENOTES

  • increase efficiency: don't create FixedPadSizeDiskLayout more than once per event (previously once per hit, in the lowpt collection)
    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.

Looks good to me. CI failures are unrelated and I will fix them in another PR.

Comment on lines 394 to 396
FixedPadSizeDiskLayout padLayout(_tpc);
double TPCPadPlaneRMin = _tpc->rMinReadout / dd4hep::mm;
double TPCPadPlaneRMax = _tpc->rMaxReadout / dd4hep::mm;
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
FixedPadSizeDiskLayout padLayout(_tpc);
double TPCPadPlaneRMin = _tpc->rMinReadout / dd4hep::mm;
double TPCPadPlaneRMax = _tpc->rMaxReadout / dd4hep::mm;
const FixedPadSizeDiskLayout padLayout(_tpc);
const double TPCPadPlaneRMin = _tpc->rMinReadout / dd4hep::mm;
const double TPCPadPlaneRMax = _tpc->rMaxReadout / dd4hep::mm;

I think const should work here, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agreed, implemented

@tmadlener tmadlener enabled auto-merge (squash) June 20, 2025 12:17
@tmadlener tmadlener merged commit 665b5fe into iLCSoft:master Jun 20, 2025
5 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