Repository navigation
Commit 3c27650
Move instead of copy when merging hits in the o2-sim hit merger
This removes a deep copy of every hit when the hit merger joins the sub-events of an event.
- mergeAndAdjustHits copied each hit into the merged container; it now reserves the total size and moves them.
- The track and track-reference merges now reserve their output.
- TPC HitGroup declared a defaulted destructor, which suppresses its implicit move; the line is removed so HitGroup moves its five vectors.
- The printf debug output in the merge loops is dropped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent f019420 commit 3c27650
3 files changed
Lines changed: 17 additions & 11 deletions
File tree
- Detectors
- Base/include/DetectorsBase
- TPC/simulation/include/TPCSimulation
- run
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
| 460 | + | |
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | 467 | | |
| 468 | + | |
468 | 469 | | |
469 | 470 | | |
| 471 | + | |
470 | 472 | | |
| 473 | + | |
471 | 474 | | |
472 | 475 | | |
473 | 476 | | |
474 | 477 | | |
475 | | - | |
| 478 | + | |
476 | 479 | | |
477 | 480 | | |
478 | 481 | | |
| |||
487 | 490 | | |
488 | 491 | | |
489 | 492 | | |
490 | | - | |
491 | | - | |
| 493 | + | |
| 494 | + | |
492 | 495 | | |
493 | 496 | | |
494 | 497 | | |
| |||
500 | 503 | | |
501 | 504 | | |
502 | 505 | | |
503 | | - | |
504 | | - | |
505 | 506 | | |
506 | | - | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | 118 | | |
121 | 119 | | |
122 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
492 | 497 | | |
493 | 498 | | |
494 | 499 | | |
495 | 500 | | |
496 | 501 | | |
497 | 502 | | |
498 | 503 | | |
499 | | - | |
500 | 504 | | |
501 | 505 | | |
502 | 506 | | |
| |||
595 | 599 | | |
596 | 600 | | |
597 | 601 | | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
598 | 607 | | |
599 | 608 | | |
600 | 609 | | |
| |||
726 | 735 | | |
727 | 736 | | |
728 | 737 | | |
729 | | - | |
730 | 738 | | |
731 | 739 | | |
732 | 740 | | |
| |||
0 commit comments