Skip to content

Commit

Permalink
taking out unnecessary if-statement
Browse files Browse the repository at this point in the history
  • Loading branch information
LeanderSchlegel committed May 17, 2024
1 parent 4177607 commit 4b27792
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/module/EMDoublePairProduction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ void EMDoublePairProduction::performInteraction(Candidate *candidate) const {

double f = Ee / E;

if (haveElectrons) {
if (random.rand() < pow(1 - f, thinning)) {
double w = 1. / pow(1 - f, thinning);
candidate->addSecondary( 11, Ee / (1 + z), pos, w, interactionTag);
Expand All @@ -87,7 +86,6 @@ void EMDoublePairProduction::performInteraction(Candidate *candidate) const {
double w = 1. / pow(f, thinning);
candidate->addSecondary(-11, Ee / (1 + z), pos, w, interactionTag);
}
}
}

void EMDoublePairProduction::process(Candidate *candidate) const {
Expand Down

0 comments on commit 4b27792

Please sign in to comment.