Skip to content

Commit

Permalink
Change the interaction action from_unchanged() to from_absorption() i…
Browse files Browse the repository at this point in the history
…f there is no secondary photon generated from WLS
  • Loading branch information
Soon Yung Jun committed Dec 3, 2024
1 parent 264c0b3 commit e8b2e4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/celeritas/optical/interactor/WavelengthShiftInteractor.hh
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ CELER_FUNCTION Interaction WavelengthShiftInteractor::operator()(Engine& rng)

if (num_photons == 0)
{
// Return unchanged photon without reemitted optical photons
return Interaction::from_unchanged();
// Return absorbed photon without reemitted optical photons
return Interaction::from_absorption();
}

// Allocate space for reemitted optical photons - Note: the reproducibility
Expand Down

0 comments on commit e8b2e4f

Please sign in to comment.