18#ifndef OPAL_DUMPFIELDS_HH
19#define OPAL_DUMPFIELDS_HH
25#include <unordered_set>
114 void print(std::ostream& os)
const;
119 static void checkInt(
double value, std::string name,
double tolerance = 1
e-9);
std::ostream & operator<<(std::ostream &os, const DumpFields &b)
constexpr double e
The value of.
Interface for a single beam element.
The base class for all OPAL actions.
DumpFields dumps the static magnetic field of a Ring in a user-defined grid.
static void checkInt(double value, std::string name, double tolerance=1e-9)
virtual void writeFieldThis(Component *field)
DumpFields(const DumpFields &dump)
void print(std::ostream &os) const
Print the attributes of DumpFields to standard out.
static void writeFields(Component *field)
Write the fields for all defined DumpFields objects.
DumpFields & operator=(const DumpFields &dump)
static std::unordered_set< DumpFields * > dumpsSet_m
interpolation::ThreeDGrid * grid_m
virtual void execute()
Builds the grid but does not write the field map.
virtual DumpFields * clone(const std::string &name)
Make a clone (overloadable copy-constructor).
virtual ~DumpFields()
Destructor deletes grid_m and if in the dumps set, take it out.
ThreeDGrid holds grid information for a rectangular grid used in e.g.