OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
H5Writer.h
Go to the documentation of this file.
1 #ifndef OPAL_H5_WRITER_H
2 #define OPAL_H5_WRITER_H
3 
6 #include "H5hut.h"
7 
8 class H5Writer {
9 
10 public:
11 
12  H5Writer(H5PartWrapper* h5wrapper, bool restart);
13 
14  void close();
15 
16  void changeH5Wrapper(H5PartWrapper *h5wrapper);
17 
18 
20 
21  double getLastPosition();
22 
36 
51  int writePhaseSpace(PartBunchBase<double, 3> *beam, Vector_t FDext[], double E,
52  double refPr, double refPt, double refPz,
53  double refR, double refTheta, double refZ,
54  double azimuth, double elevation, bool local);
55 
73  void writePhaseSpace(EnvelopeBunch &beam, Vector_t FDext[], double sposHead, double sposRef, double sposTail);
74 // void stashPhaseSpaceEnvelope(EnvelopeBunch &beam, Vector_t FDext[], double sposHead, double sposRef, double sposTail);
75 // void dumpStashedPhaseSpaceEnvelope();
76 
77 private:
80 
82 
84  int H5call_m;
85 };
86 
87 
88 inline
90  h5wrapper_m->close();
91 }
92 
93 
94 inline
96  h5wrapper_m = h5wrapper;
97 }
98 
99 
100 inline
103 }
104 
105 
106 inline
108  return h5wrapper_m->getLastPosition();
109 }
110 
111 #endif
double getLastPosition()
Definition: H5PartWrapper.h:85
core of the envelope tracker based on Rene Bakkers BET implementation
Definition: EnvelopeBunch.h:60
H5PartWrapper * h5wrapper_m
Definition: H5Writer.h:81
void close()
Definition: H5Writer.h:89
void changeH5Wrapper(H5PartWrapper *h5wrapper)
Definition: H5Writer.h:95
double getLastPosition()
Definition: H5Writer.h:107
void storeCavityInformation()
void storeCavityInformation()
Definition: H5Writer.h:101
IpplTimings::TimerRef H5PartTimer_m
Timer to track particle data/H5 file write time.
Definition: H5Writer.h:79
H5Writer(H5PartWrapper *h5wrapper, bool restart)
Definition: H5Writer.cpp:3
Timing::TimerRef TimerRef
Definition: IpplTimings.h:176
int H5call_m
Current record, or time step, of H5 file.
Definition: H5Writer.h:84
void writePhaseSpace(PartBunchBase< double, 3 > *beam, Vector_t FDext[])
Dumps Phase Space to H5 file.
Definition: H5Writer.cpp:15