LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
larsim::Utils::SCE Namespace Reference

Functions

bool out_of_bounds (geo::Vector_t const &offset)
 

Function Documentation

bool larsim::Utils::SCE::out_of_bounds ( geo::Vector_t const &  offset)

Definition at line 14 of file SCEOffsetBounds.cxx.

References util::abs().

Referenced by larg4::LArVoxelReadout::DriftIonizationElectrons(), spacecharge::ShiftEdepSCE::produce(), detsim::DriftElectronstoPlane::produce(), and detsim::SimDriftElectrons::produce().

15 {
16  constexpr double limit{1.e9};
17  return (std::abs(offset.X()) > limit || std::abs(offset.Y()) > limit ||
18  std::abs(offset.Z()) > limit);
19 }
constexpr auto abs(T v)
Returns the absolute value of the argument.