SCEOffsetBounds.cxx
Go to the documentation of this file.
1 /**
2  * @file larsim/Utils/SCEOffsetBounds.cxx
3  *
4  * @brief Implementation of SCE Offset Bounds Checking method(s)
5  *
6  * @author Tom Junk (trj@fnal.gov)
7  *
8  * $Log: $
9  */
10 
11 // LArSoft
13 
15 {
16  constexpr double limit{1.e9};
17  return (std::abs(offset.X()) > limit ||
18  std::abs(offset.Y()) > limit ||
19  std::abs(offset.Z()) > limit);
20 }
bool out_of_bounds(geo::Vector_t const &offset)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Vector_t
Type for representation of momenta in 3D space.
Definition: geo_vectors.h:164
T abs(T value)
Utility function for testing if Space Charge offsets are out of bounds.