19#ifndef BDSFIELDMAGVECTORSUM_H
20#define BDSFIELDMAGVECTORSUM_H
22#include "BDSFieldMag.hh"
24#include "G4ThreeVector.hh"
40 const std::vector<G4ThreeVector>& fieldOffsetsIn);
44 virtual G4ThreeVector
GetField(
const G4ThreeVector& position,
45 const G4double t = 0)
const;
48 std::vector<BDSFieldMag*> fields;
49 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.