18 columns_m.
addColumn(
"s",
"double",
"m",
"longitudinal position", std::ios_base::fixed, 10);
19 columns_m.
addColumn(
"dipole",
"float",
"1",
"dipole field present", std::ios_base::fixed, 4);
21 "quadrupole",
"float",
"1",
"quadrupole field present", std::ios_base::fixed, 0);
23 "sextupole",
"float",
"1",
"sextupole field present", std::ios_base::fixed, 1);
25 "octupole",
"float",
"1",
"octupole field present", std::ios_base::fixed, 2);
27 "decapole",
"float",
"1",
"decapole field present", std::ios_base::fixed, 0);
29 "multipole",
"float",
"1",
"higher multipole field present", std::ios_base::fixed, 0);
31 "solenoid",
"float",
"1",
"solenoid field present", std::ios_base::fixed, 0);
32 columns_m.
addColumn(
"rfcavity",
"float",
"1",
"RF field present", std::ios_base::fixed, 4);
33 columns_m.
addColumn(
"monitor",
"float",
"1",
"monitor present", std::ios_base::fixed, 0);
34 columns_m.
addColumn(
"other",
"float",
"1",
"other element present", std::ios_base::fixed, 0);
41 double spos,
const std::vector<double>& row,
const std::string&
elements) {
42 if (ippl::Comm->rank() != 0)
return;
50 static const std::vector<double> typeMultipliers = {3.3333e-1, 1.0, 0.5, 0.25, 1.0,
51 1.0, 1.0, 1.0, 1.0, 1.0};
53 static const std::vector<std::string> columnNames = {
54 "dipole",
"quadrupole",
"sextupole",
"octupole",
"decapole",
55 "multipole",
"solenoid",
"rfcavity",
"monitor",
"other"};
58 for (
unsigned int i = 0; i < columnNames.size(); ++i) {
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)