19#ifndef BDSFIELDESINUSOID_H
20#define BDSFIELDESINUSOID_H
22#include "BDSFieldE.hh"
25#include "G4ThreeVector.hh"
48 const G4ThreeVector& unitDirectionIn,
50 G4double phaseOffsetIn);
57 virtual G4ThreeVector
GetField(
const G4ThreeVector& position,
58 const G4double t)
const;
Holder for all Geometrical information required to create an RF cavity.
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.
virtual G4bool TimeVarying() const
G4double eField
Amplitude of electric field in V/m.
const G4ThreeVector unitDirection
Unit vector for direction of field.
G4double phase
Phase in radians.
Interface for BDSIM electric fields that may or may not be local.
Efficient storage of magnet strengths.