Celeritas 0.7+28f01d9
Loading...
Searching...
No Matches
Typedefs | Functions
Convert.hh File Reference
#include <larcoreobj/SimpleTypesAndConstants/geo_vectors.h>
#include "corecel/Types.hh"
#include "corecel/cont/Array.hh"
#include "corecel/math/ArrayQuantity.hh"
#include "corecel/math/Quantity.hh"
#include "celeritas/UnitTypes.hh"

Typedefs

using celeritas::LarsoftTime = Quantity< celeritas::units::Nanosecond, double >
 
using celeritas::LarsoftLen = Quantity< celeritas::units::Centimeter, double >
 

Functions

template<class Q >
double celeritas::convert_to_larsoft (real_type v)
 Convert via a quantity to native LArSoft types/units.
 
template<class Q >
real_type celeritas::convert_from_larsoft (double v)
 Convert via a quantity from native LArSoft types/units.
 
geo::Point_t celeritas::to_larpoint (Array< double, 3 > const &arr)
 Convert from a Celeritas array to a ROOT point.
 
Array< double, 3 > celeritas::to_array (geo::Point_t const &v)
 Convert a ROOT point to a Celeritas array.
 
template<class Q >
geo::Point_t celeritas::convert_to_larsoft (Array< double, 3 > const &v)
 Convert via a quantity to native LArSoft types/units.
 
template<class Q >
Array< typename Q::value_type, 3 > celeritas::convert_from_larsoft (geo::Point_t const &v)
 Convert via a quantity from native LArSoft types/units.