Skip to content

Commit

Permalink
Check that rmin is not less than zero. (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
whit2333 committed Jun 7, 2021
1 parent 2a524fb commit 201ce3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Core/src/Geometry/CylinderVolumeBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ Acts::VolumeConfig Acts::CylinderVolumeBuilder::analyzeContent(
std::min(lConfig.rMin, rMinD - m_cfg.layerEnvelopeR.first);
lConfig.rMax =
std::max(lConfig.rMax, rMaxD + m_cfg.layerEnvelopeR.second);
lConfig.rMin = std::max(0.0, lConfig.rMin);
lConfig.zMin = std::min(lConfig.zMin, zMinD - m_cfg.layerEnvelopeZ);
lConfig.zMax = std::max(lConfig.zMax, zMaxD + m_cfg.layerEnvelopeZ);
}
Expand Down

0 comments on commit 201ce3c

Please sign in to comment.