24 "longitudinal position",
30 "dipole field present",
36 "quadrupole field present",
42 "sextupole field present",
48 "octupole field present",
54 "decapole field present",
60 "higher multipole field present",
66 "solenoid field present",
84 "other element present",
97 const std::vector<double> &row,
110 static const std::vector<double> typeMultipliers = {3.3333e-1,
121 static const std::vector<std::string> columnNames = {
"dipole",
133 for (
unsigned int i = 0; i < columnNames.size(); ++ i) {
static OpalData * getInstance()
void addRow(double spos, const std::vector< double > &row, const std::string &elements)
ElementPositionWriter(const std::string &fname)
void addColumn(const std::string &name, const std::string &type, const std::string &unit, const std::string &desc, std::ios_base::fmtflags flags=std::ios_base::scientific, unsigned short precision=15)
void addColumnValue(const std::string &name, const T &val)
void addDefaultParameters()
void addDescription(const std::string &text, const std::string &content)
void writeHeader()
Write SDDS header.
void addInfo(const std::string &mode, const size_t &no_row_counts)