Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4FieldUtils.hh File Reference
#include "G4FieldTrack.hh"
#include "G4Types.hh"
#include "G4ThreeVector.hh"
#include "G4FieldUtils.icc"

Go to the source code of this file.

Namespaces

namespace  field_utils
 

Typedefs

using field_utils::State = G4double[G4FieldTrack::ncompSVEC]
 
template<unsigned int N>
using field_utils::ShortState = G4double[N]
 

Enumerations

enum class  field_utils::Value3D { field_utils::Position = 0 , field_utils::Momentum = 3 , field_utils::Spin = 9 }
 
enum class  field_utils::Value1D { field_utils::KineticEnergy = 6 , field_utils::LabTime = 7 , field_utils::ProperTime = 8 }
 

Functions

template<typename ArrayType >
G4double field_utils::getValue (const ArrayType &array, Value1D value)
 
template<typename ArrayType >
G4double field_utils::getValue2 (const ArrayType &array, Value1D value)
 
template<typename ArrayType >
G4double field_utils::getValue (const ArrayType &array, Value3D value)
 
template<typename ArrayType >
G4double field_utils::getValue2 (const ArrayType &array, Value3D value)
 
template<typename ArrayType >
G4ThreeVector field_utils::makeVector (const ArrayType &array, Value3D value)
 
G4double field_utils::absoluteError (const G4double y[], const G4double yerr[], G4double hstep)
 
G4double field_utils::relativeError2 (const G4double y[], const G4double yerr[], G4double hstep, G4double errorTolerance)
 
G4double field_utils::relativeError (const G4double y[], const G4double yerr[], G4double hstep, G4double errorTolerance)
 
template<typename SourceArray , typename TargetArray >
void field_utils::setValue (const SourceArray &src, Value1D value, TargetArray &trg)
 
template<typename SourceArray , typename TargetArray , typename ... TargetArrays>
void field_utils::setValue (const SourceArray &src, Value1D value, TargetArray &trg, TargetArrays &... trgs)
 
void field_utils::copy (G4double dst[], const G4double src[], size_t size=G4FieldTrack::ncompSVEC)
 
G4double field_utils::inverseCurvatureRadius (G4double particleCharge, G4double momentum, G4double BField)
 
template<typename T >
field_utils::clamp (T value, T lo, T hi)