Skip to content

Commit

Permalink
post code checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sbein committed Nov 15, 2021
1 parent 1066de4 commit 3cdd06b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ inline bool isExotic(int pdgid_) {
return ((pdgid >= 1000000 && pdgid < 4000000 && pdgid != 3000022) || // SUSY, R-hadron, and technicolor particles
pdgid == 17 || // 4th generation lepton
pdgid == 34 || // W-prime
pdgid == 37 || // charged Higgs
pdgid == 37 || // charged Higgs
pdgid == 39); // bulk graviton

}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,11 @@ std::unique_ptr<fastsim::Particle> fastsim::ParticleManager::nextGenParticle() {
continue;
}

// SM particles that descend from exotics and cross the beam pipe radius should make hits but not be decayed
if (productionVertex->position().perp2() * lengthUnitConversionFactor2_ < beamPipeRadius2_ &&
endVertex && endVertex->position().perp2() * lengthUnitConversionFactor2_ > beamPipeRadius2_) {
// SM particles that descend from exotics and cross the beam pipe radius should make hits but not be decayed
if (productionVertex->position().perp2() * lengthUnitConversionFactor2_ < beamPipeRadius2_ && endVertex &&
endVertex->position().perp2() * lengthUnitConversionFactor2_ > beamPipeRadius2_) {
exoticRelativesChecker(productionVertex, exoticRelativeId, 0);
}
}

// make the particle
std::unique_ptr<Particle> newParticle(
Expand Down

0 comments on commit 3cdd06b

Please sign in to comment.