Commit 8e49d4e
authored
[mini] initialize (empty) secondary vector (#444)
This initializes an empty secondary vector when returning a GPU step to
the CPU. This is needed such that the access to the secondary does not
crash:
```
const std::vector<const G4Track*> *secondaryVector = aStep->GetSecondaryInCurrentStep();
secondaryVector->size(); <- currently crashes as it is a nullPtr
```
With this PR the secondary vector is available, just empty.
This PR is needed to run Athena with the `Sim_tf` transform.1 parent 3f9b775 commit 8e49d4e
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
484 | 487 | | |
485 | 488 | | |
486 | 489 | | |
| |||
555 | 558 | | |
556 | 559 | | |
557 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
558 | 564 | | |
559 | 565 | | |
560 | 566 | | |
| |||
0 commit comments