LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
SCEOffsetBounds.cxx
Go to the documentation of this file.
1
11
// LArSoft
12
#include "
larsim/Utils/SCEOffsetBounds.h
"
13
14
bool
larsim::Utils::SCE::out_of_bounds
(
geo::Vector_t
const
& offset)
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
}
geo::Vector_t
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Vector_t
Type for representation of momenta in 3D space.
Definition:
geo_vectors.h:160
larsim::Utils::SCE::out_of_bounds
bool out_of_bounds(geo::Vector_t const &offset)
Definition:
SCEOffsetBounds.cxx:14
util::abs
constexpr auto abs(T v)
Returns the absolute value of the argument.
Definition:
constexpr_math.h:40
SCEOffsetBounds.h
Utility function for testing if Space Charge offsets are out of bounds.
larsim
v09_43_00
source
larsim
Utils
SCEOffsetBounds.cxx
Generated on Thu May 2 2024 20:59:52 for LArSoft by
1.8.11