19#include "BDSFieldESinusoid.hh"
20#include "BDSMagnetStrength.hh"
21#include "BDSUtilities.hh"
23#include "G4ThreeVector.hh"
26#include "CLHEP/Units/SystemOfUnits.h"
32 G4ThreeVector( (*strength)[
"ex"], (*strength)[
"ey"], (*strength)[
"ez"]),
33 (*strength)[
"frequency"],
35 (*strength)[
"synchronousT0"])
38BDSFieldESinusoid::BDSFieldESinusoid(G4double eFieldAmplitudeIn,
39 const G4ThreeVector& unitDirectionIn,
42 G4double synchronousTIn):
43 eField(eFieldAmplitudeIn),
44 unitDirection(unitDirectionIn.unit()),
45 angularFrequency(CLHEP::twopi*frequencyIn),
47 synchronousT(synchronousTIn)
53 const G4double t)
const
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.
const G4ThreeVector unitDirection
Peak amplitude of electric field.
G4double synchronousT
Global T offset for 0 phase.
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())