OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
H5Writer.h
Go to the documentation of this file.
1//
2// Class H5Writer
3// Interface for H5 writers.
4//
5// Copyright (c) 2019-2020, Matthias Frey, Paul Scherrer Institut, Villigen PSI, Switzerland
6// All rights reserved
7//
8// This file is part of OPAL.
9//
10// OPAL is free software: you can redistribute it and/or modify
11// it under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// You should have received a copy of the GNU General Public License
16// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
17//
18#ifndef OPAL_H5_WRITER_H
19#define OPAL_H5_WRITER_H
20
23#include "H5hut.h"
24
25class H5Writer {
26
27public:
28
29 H5Writer(H5PartWrapper* h5wrapper, bool restart);
30
31 void close();
32
33 void changeH5Wrapper(H5PartWrapper *h5wrapper);
34
35
37
38 double getLastPosition();
39
53
71 int writePhaseSpace(PartBunchBase<double, 3> *beam, Vector_t FDext[], double E,
72 int refSource,
73 double refPr, double refPt, double refPz,
74 double refR, double refTheta, double refZ,
75 double azimuth, double elevation, bool local);
76
77private:
80
82
85};
86
87
88inline
91}
92
93
94inline
96 h5wrapper_m = h5wrapper;
97}
98
99
100inline
104
105
106inline
110
111#endif
void storeCavityInformation()
double getLastPosition()
void close()
Definition H5Writer.h:89
IpplTimings::TimerRef H5PartTimer_m
Timer to track particle data/H5 file write time.
Definition H5Writer.h:79
void storeCavityInformation()
Definition H5Writer.h:101
H5PartWrapper * h5wrapper_m
Definition H5Writer.h:81
void writePhaseSpace(PartBunchBase< double, 3 > *beam, Vector_t FDext[])
Dumps Phase Space to H5 file.
Definition H5Writer.cpp:32
double getLastPosition()
Definition H5Writer.h:107
int H5call_m
Current record, or time step, of H5 file.
Definition H5Writer.h:84
void changeH5Wrapper(H5PartWrapper *h5wrapper)
Definition H5Writer.h:95
Timing::TimerRef TimerRef