IAP GITLAB

Skip to content
Snippets Groups Projects
Commit beaa6f26 authored by Jean-Marco Alameddine's avatar Jean-Marco Alameddine Committed by Maximilian Reininghaus
Browse files

Add same treatment to selectDecay as in selectInteraction (see commit...

Add same treatment to selectDecay as in selectInteraction (see commit a9620174)
parent d529421a
No related branches found
No related tags found
1 merge request!507Add two tests dealing with 0_mb cross sections in Cascade and ProcessSequence
...@@ -678,7 +678,7 @@ namespace corsika { ...@@ -678,7 +678,7 @@ namespace corsika {
// if this is not a ContinuousProcess --> evaluate probability // if this is not a ContinuousProcess --> evaluate probability
decay_inv_sum += A_.getInverseLifetime(view.parent()); decay_inv_sum += A_.getInverseLifetime(view.parent());
// check if we should execute THIS process and then EXIT // check if we should execute THIS process and then EXIT
if (decay_inv_select <= decay_inv_sum) { // more pedagogical: rndm_select < if (decay_inv_select < decay_inv_sum) { // more pedagogical: rndm_select <
// decay_inv_sum / decay_inv_tot // decay_inv_sum / decay_inv_tot
// interface checking on TProcess1 // interface checking on TProcess1
static_assert(has_method_doDecay_v<TProcess1, void, TSecondaryView&>, static_assert(has_method_doDecay_v<TProcess1, void, TSecondaryView&>,
...@@ -701,7 +701,7 @@ namespace corsika { ...@@ -701,7 +701,7 @@ namespace corsika {
// if this is not a ContinuousProcess --> evaluate probability // if this is not a ContinuousProcess --> evaluate probability
decay_inv_sum += B_.getInverseLifetime(view.parent()); decay_inv_sum += B_.getInverseLifetime(view.parent());
// check if we should execute THIS process and then EXIT // check if we should execute THIS process and then EXIT
if (decay_inv_select <= decay_inv_sum) { if (decay_inv_select < decay_inv_sum) {
// interface checking on TProcess1 // interface checking on TProcess1
static_assert(has_method_doDecay_v<TProcess2, void, TSecondaryView&>, static_assert(has_method_doDecay_v<TProcess2, void, TSecondaryView&>,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment