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());
Store parameters for running LArG4.
Utilities related to art service access.
double EFieldAtStep(double fEfield, const G4Step *step) const
Interface to algorithm class for a specific detector channel mapping.
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.