OPAL (Object Oriented Parallel Accelerator Library)
2024.2
OPAL
src
Structure
MultiBunchDump.h
Go to the documentation of this file.
1
//
2
// Class MultiBunchDump
3
// This class writes a SDDS file of single bunch statistics in multibunch simulations.
4
//
5
// Copyright (c) 2018 - 2019, Matthias Frey, Paul Scherrer Institut, Villigen PSI, Switzerland
6
// All rights reserved
7
//
8
// Implemented as part of the PhD thesis
9
// "Precise Simulations of Multibunches in High Intensity Cyclotrons"
10
//
11
// This file is part of OPAL.
12
//
13
// OPAL is free software: you can redistribute it and/or modify
14
// it under the terms of the GNU General Public License as published by
15
// the Free Software Foundation, either version 3 of the License, or
16
// (at your option) any later version.
17
//
18
// You should have received a copy of the GNU General Public License
19
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
20
//
21
#ifndef OPAL_MULTI_BUNCH_DUMP_H
22
#define OPAL_MULTI_BUNCH_DUMP_H
23
24
#include "
StatBaseWriter.h
"
25
26
#include "
Algorithms/MultiBunchHandler.h
"
27
28
29
class
MultiBunchDump
:
public
StatBaseWriter
{
30
31
public
:
32
typedef
MultiBunchHandler::beaminfo_t
beaminfo_t
;
33
34
MultiBunchDump
(
const
std::string& fname,
bool
restart);
35
36
void
fillHeader
();
37
38
using
SDDSWriter::write
;
39
void
write
(
const
PartBunchBase<double, 3>
* beam,
const
beaminfo_t
& binfo);
40
};
41
42
#endif
StatBaseWriter.h
MultiBunchHandler.h
PartBunchBase
Definition
PartBunchBase.h:50
MultiBunchHandler::beaminfo_t
Definition
MultiBunchHandler.h:51
MultiBunchDump
Definition
MultiBunchDump.h:29
MultiBunchDump::beaminfo_t
MultiBunchHandler::beaminfo_t beaminfo_t
Definition
MultiBunchDump.h:32
MultiBunchDump::fillHeader
void fillHeader()
Definition
MultiBunchDump.cpp:38
MultiBunchDump::write
void write(const PartBunchBase< double, 3 > *beam, const beaminfo_t &binfo)
Definition
MultiBunchDump.cpp:96
SDDSWriter::write
virtual void write(PartBunchBase< double, 3 > *)
Definition
SDDSWriter.h:63
StatBaseWriter
Definition
StatBaseWriter.h:27
Generated on Tue Apr 14 2026 07:18:46 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.8