13 #include "Geant4/G4Step.hh" 20 auto const* SCE = lar::providerFrom<spacecharge::SpaceChargeService>();
21 if (!SCE->EnableSimEfieldSCE())
return efield;
23 (step->GetPreStepPoint()->GetPosition() + step->GetPostStepPoint()->GetPosition()) * 0.5 /
25 auto const eFieldOffsets = SCE->GetEfieldOffsets(midPoint);
26 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.