Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
larsim
larsim
Utils
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
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 ||
18
std::abs
(offset.Y()) > limit ||
19
std::abs
(offset.Z()) > limit);
20
}
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:164
offset
BEGIN_PROLOG TPC Trig offset(g4 rise time) ProjectToHeight
Definition:
CORSIKAGen.fcl:7
larsim::Utils::SCE::out_of_bounds
bool out_of_bounds(geo::Vector_t const &offset)
Definition:
SCEOffsetBounds.cxx:14
abs
T abs(T value)
Definition:
sparse_vector_test.cc:30
SCEOffsetBounds.h
Utility function for testing if Space Charge offsets are out of bounds.
Generated by
1.8.5