Skip to content

cell_hit_map in MGPD and SiTracker digi loops with copy, not ref #2427

@wdconinc

Description

@wdconinc

for (auto item : cell_hit_map) copies each entry (including the MutableRawTrackerHit) unnecessarily. Iterating by const& (ideally with structured bindings) avoids extra copies and makes the intent clearer.

Originally posted by @Copilot in #2410 (comment)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions