28#ifndef _OPAL_DATA_SINK_H
29#define _OPAL_DATA_SINK_H
42template <
class T,
unsigned Dim>
69 double refPr,
double refPt,
double refPz,
70 double refR,
double refTheta,
double refZ,
71 double azimuth,
double elevation,
bool local)
const;
74 const double& azimuth = -1)
const;
105 size_t numberOfFieldEmittedParticles,
129 void init(
bool restart =
false,
155 std::stringstream ss;
156 ss << std::setw(setw) << std::setfill(
'0') << number;
void setMultiBunchInitialPathLengh(MultiBunchHandler *mbhandler_p)
std::unique_ptr< MultiBunchDump > mbWriter_t
void writeImpactStatistics(const PartBunchBase< double, 3 > *beam, long long int &step, size_t &impact, double &sey_num, size_t numberOfFieldEmittedParticles, bool nEmissionMode, std::string fn)
std::vector< sddsWriter_t > sddsWriter_m
void changeH5Wrapper(H5PartWrapper *h5wrapper)
const bool isMultiBunch_m
StatWriter::losses_t losses_t
void initMultiBunchDump(short numBunch)
DataSink & operator=(const DataSink &)=delete
void dumpSDDS(PartBunchBase< double, 3 > *beam, Vector_t FDext[], const double &azimuth=-1) const
void init(bool restart=false, H5PartWrapper *h5wrapper=nullptr, short numBunch=1)
void writeGeomToVtk(BoundaryGeometry &bg, std::string fn)
std::unique_ptr< SDDSWriter > sddsWriter_t
static std::string convertToString(int number, int setw=5)
std::vector< mbWriter_t > mbWriter_m
void storeCavityInformation()
Write cavity information from H5 file.
void dumpH5(PartBunchBase< double, 3 > *beam, Vector_t FDext[]) const
IpplTimings::TimerRef StatMarkerTimer_m
Timer to track statistics write time.
std::unique_ptr< H5Writer > h5Writer_t
unsigned int lossWrCounter_m
needed to create index for vtk file
DataSink(const DataSink &ds)=delete
statWriter_t statWriter_m
void writeMultiBunchStatistics(PartBunchBase< double, 3 > *beam, MultiBunchHandler *mbhandler)
DataSink()
Default constructor.
std::unique_ptr< StatWriter > statWriter_t
std::vector< std::pair< std::string, unsigned int > > losses_t
Timing::TimerRef TimerRef