Skip to content

Commit

Permalink
ran formatting again
Browse files Browse the repository at this point in the history
  • Loading branch information
sbein committed Nov 30, 2021
1 parent d3a116f commit 2fe14d6
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,17 +216,18 @@ std::unique_ptr<fastsim::Particle> fastsim::ParticleManager::nextGenParticle() {
}
// particles which do not descend from exotics must be produced within the beampipe
int exoticRelativeId = 0;
const bool producedWithinBeamPipe = productionVertex->position().perp2() * lengthUnitConversionFactor2_ < beamPipeRadius2_;
if (producedWithinBeamPipe)
{
const bool producedWithinBeamPipe =
productionVertex->position().perp2() * lengthUnitConversionFactor2_ < beamPipeRadius2_;
if (producedWithinBeamPipe) {
exoticRelativesChecker(productionVertex, exoticRelativeId, 0);
if (!isExotic(exoticRelativeId)) {
continue;
}
}

// FastSim will not make hits out of particles that decay before reaching the beam pipe
const bool decayedWithinBeamPipe = endVertex && endVertex->position().perp2() * lengthUnitConversionFactor2_ < beamPipeRadius2_;
const bool decayedWithinBeamPipe =
endVertex && endVertex->position().perp2() * lengthUnitConversionFactor2_ < beamPipeRadius2_;
if (decayedWithinBeamPipe) {
continue;
}
Expand Down

0 comments on commit 2fe14d6

Please sign in to comment.