13 #include "Geant4/G4Step.hh" 21 auto const* SCE = lar::providerFrom<spacecharge::SpaceChargeService>();
22 if (!SCE->EnableSimEfieldSCE())
return efield;
24 (step->GetPreStepPoint()->GetPosition() + step->GetPostStepPoint()->GetPosition()) * 0.5 /
26 auto const eFieldOffsets = SCE->GetEfieldOffsets(midPoint);
27 return efield *
std::hypot(1 + eFieldOffsets.X(), eFieldOffsets.Y(), eFieldOffsets.Z());
static constexpr double cm
Store parameters for running LArG4.
double EFieldAtStep(double fEfield, const G4Step *step) const
std::enable_if_t< std::is_arithmetic_v< T >, T > hypot(T x, T y)
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.