4 : H5PartTimer_m(
IpplTimings::getTimer(
"Write H5-File"))
5 , h5wrapper_m(h5wrapper)
17 std::map<std::string, double> additionalAttributes = {
18 std::make_pair(
"B-ref_x", FDext[0](0)),
19 std::make_pair(
"B-ref_z", FDext[0](1)),
20 std::make_pair(
"B-ref_y", FDext[0](2)),
21 std::make_pair(
"E-ref_x", FDext[1](0)),
22 std::make_pair(
"E-ref_z", FDext[1](1)),
23 std::make_pair(
"E-ref_y", FDext[1](2))};
31 double refPr,
double refPt,
double refPz,
32 double refR,
double refTheta,
double refZ,
33 double azimuth,
double elevation,
bool local) {
38 std::map<std::string, double> additionalAttributes = {
39 std::make_pair(
"REFPR", refPr),
40 std::make_pair(
"REFPT", refPt),
41 std::make_pair(
"REFPZ", refPz),
42 std::make_pair(
"REFR", refR),
43 std::make_pair(
"REFTHETA", refTheta),
44 std::make_pair(
"REFZ", refZ),
45 std::make_pair(
"AZIMUTH", azimuth),
46 std::make_pair(
"ELEVATION", elevation),
47 std::make_pair(
"B-head_x", FDext[0](0)),
48 std::make_pair(
"B-head_z", FDext[0](1)),
49 std::make_pair(
"B-head_y", FDext[0](2)),
50 std::make_pair(
"E-head_x", FDext[1](0)),
51 std::make_pair(
"E-head_z", FDext[1](1)),
52 std::make_pair(
"E-head_y", FDext[1](2)),
53 std::make_pair(
"B-ref_x", FDext[2](0)),
54 std::make_pair(
"B-ref_z", FDext[2](1)),
55 std::make_pair(
"B-ref_y", FDext[2](2)),
56 std::make_pair(
"E-ref_x", FDext[3](0)),
57 std::make_pair(
"E-ref_z", FDext[3](1)),
58 std::make_pair(
"E-ref_y", FDext[3](2)),
59 std::make_pair(
"B-tail_x", FDext[4](0)),
60 std::make_pair(
"B-tail_z", FDext[4](1)),
61 std::make_pair(
"B-tail_y", FDext[4](2)),
62 std::make_pair(
"E-tail_x", FDext[5](0)),
63 std::make_pair(
"E-tail_z", FDext[5](1)),
64 std::make_pair(
"E-tail_y", FDext[5](2))};
75 double sposHead,
double sposRef,
81 std::map<std::string, double> additionalAttributes = {
82 std::make_pair(
"sposHead", sposHead),
83 std::make_pair(
"sposRef", sposRef),
84 std::make_pair(
"sposTail", sposTail),
85 std::make_pair(
"B-head_x", FDext[0](0)),
86 std::make_pair(
"B-head_z", FDext[0](1)),
87 std::make_pair(
"B-head_y", FDext[0](2)),
88 std::make_pair(
"E-head_x", FDext[1](0)),
89 std::make_pair(
"E-head_z", FDext[1](1)),
90 std::make_pair(
"E-head_y", FDext[1](2)),
91 std::make_pair(
"B-ref_x", FDext[2](0)),
92 std::make_pair(
"B-ref_z", FDext[2](1)),
93 std::make_pair(
"B-ref_y", FDext[2](2)),
94 std::make_pair(
"E-ref_x", FDext[3](0)),
95 std::make_pair(
"E-ref_z", FDext[3](1)),
96 std::make_pair(
"E-ref_y", FDext[3](2)),
97 std::make_pair(
"B-tail_x", FDext[4](0)),
98 std::make_pair(
"B-tail_z", FDext[4](1)),
99 std::make_pair(
"B-tail_y", FDext[4](2)),
100 std::make_pair(
"E-tail_x", FDext[5](0)),
101 std::make_pair(
"E-tail_z", FDext[5](1)),
102 std::make_pair(
"E-tail_y", FDext[5](2))};
virtual void writeStep(PartBunchBase< double, 3 > *, const std::map< std::string, double > &)=0
core of the envelope tracker based on Rene Bakkers BET implementation
H5PartWrapper * h5wrapper_m
size_t getTotalNum() const
static void startTimer(TimerRef t)
virtual void writeHeader()=0
IpplTimings::TimerRef H5PartTimer_m
Timer to track particle data/H5 file write time.
H5Writer(H5PartWrapper *h5wrapper, bool restart)
static void stopTimer(TimerRef t)
int H5call_m
Current record, or time step, of H5 file.
void writePhaseSpace(PartBunchBase< double, 3 > *beam, Vector_t FDext[])
Dumps Phase Space to H5 file.