Commit 3ec3d73
fix(gpuraytrace): add multi-component scintillation genstep collection (#272)
GPU genstep collection was only using SCINTILLATIONTIMECONSTANT1 (fast
component, τ=7ns). LAr has a 25% slow component
(SCINTILLATIONTIMECONSTANT2, τ=1400ns) that was never collected. This
caused GPU to produce zero hits with arrival time >100ns while Geant4
showed 20% of hits in the 100-11,000ns range.
Scintillation fix (src/GPURaytrace.h):
- Read up to 3 scintillation components (SCINTILLATIONTIMECONSTANT1/2/3,
SCINTILLATIONYIELD1/2/3) from material properties
- Split photon count proportionally across components based on yield
fractions
- Create separate gensteps for each component with the correct time
constant
- Last component receives rounding remainder to preserve total photon
count exactly
Shall be merged after rest of the wavelength shifting PRs
---------
Co-authored-by: Dmitri Smirnov <dmixsmi@gmail.com>1 parent 77ba39c commit 3ec3d73
2 files changed
Lines changed: 46 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
534 | | - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
535 | 538 | | |
536 | | - | |
537 | | - | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
538 | 579 | | |
539 | 580 | | |
540 | 581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
0 commit comments