18#ifndef BDSFIELDMAGVECTORSUM_H
19#define BDSFIELDMAGVECTORSUM_H
21#include "BDSFieldMag.hh"
23#include "G4ThreeVector.hh"
39 const std::vector<G4ThreeVector>& fieldOffsetsIn);
43 virtual G4ThreeVector
GetField(
const G4ThreeVector& position,
44 const G4double t = 0)
const;
47 std::vector<BDSFieldMag*> fields;
48 std::vector<G4ThreeVector> fieldOffsets;
A vector sum of multiple displaced magnetic fields.
virtual G4ThreeVector GetField(const G4ThreeVector &position, const G4double t=0) const
Calculate the field value.
Interface for static magnetic fields that may or may not be local.