19#include "BDSFieldESinusoid.hh"
20#include "BDSMagnetStrength.hh"
21#include "BDSUtilities.hh"
24#include "G4ThreeVector.hh"
26#include "CLHEP/Units/SystemOfUnits.h"
33 (*strength)[
"frequency"],
36 G4int sign = BDS::Sign(brho);
42 G4double phaseOffsetIn):
43 eField(eFieldAmplitudeIn),
44 angularFrequency(CLHEP::twopi*frequencyIn),
51 const G4double t)
const
54 G4ThreeVector field = G4ThreeVector(0, 0, eZ);
A sinusoidal electric (only) field that doesn't vary with position. Uses cosine.
G4double angularFrequency
Angular frequency of field.
virtual G4ThreeVector GetField(const G4ThreeVector &position, const G4double t) const
Accessor for field value.
G4double eField
Amplitude of electric field in V/m.
G4double phase
Phase in radians.
BDSFieldESinusoid()=delete
Private default constructor to force use of supplied one.
G4bool finiteStrength
Flag to cache whether finite nor not.
Efficient storage of magnet strengths.
G4bool IsFinite(G4double value, G4double tolerance=std::numeric_limits< double >::epsilon())