Skip to content

DDTPCDigiProcessor.cc : reduce redundant loading of geometry info#75

Merged
tmadlener merged 2 commits into
iLCSoft:masterfrom
danieljeans:betterEff
Jun 20, 2025
Merged

DDTPCDigiProcessor.cc : reduce redundant loading of geometry info#75
tmadlener merged 2 commits into
iLCSoft:masterfrom
danieljeans:betterEff

Conversation

@danieljeans

Copy link
Copy Markdown
Contributor

BEGINRELEASENOTES

  • increase efficiency: don't create FixedPadSizeDiskLayout more than once per event (previously once per hit, in the lowpt collection)
    ENDRELEASENOTES

@tmadlener tmadlener left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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