76 if (
mode_m == std::ios::app )
80 std::string dateStr(simtimer.
date());
81 std::string timeStr(simtimer.
time());
84 ss <<
"Multi Bunch Statistics data '"
86 <<
"' " << dateStr <<
" " << timeStr;
std::string getInputFn()
get opals input filename
static OpalData * getInstance()
long unsigned int nParticles
virtual void write(const PartBunchBase< double, 3 > *)
MultiBunchDump(const std::string &fname, bool restart)
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.
std::ios_base::openmode mode_m
First write to the statistics output file.
void addInfo(const std::string &mode, const size_t &no_row_counts)
std::string date() const
Return date.
std::string time() const
Return time.