OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
StatWriter.h
Go to the documentation of this file.
1 #ifndef OPAL_STAT_WRITER_H
2 #define OPAL_STAT_WRITER_H
3 
4 #include "StatBaseWriter.h"
5 
7 
8 class StatWriter : public StatBaseWriter {
9 
10 public:
11  typedef std::vector<std::pair<std::string, unsigned int> > losses_t;
12 
13  StatWriter(const std::string& fname, bool restart);
14 
15  using SDDSWriter::write;
32  void write(PartBunchBase<double, 3> *beam, Vector_t FDext[],
33  const losses_t &losses = losses_t(), const double& azimuth = -1);
34 
38  void write(EnvelopeBunch &beam, Vector_t FDext[],
39  double sposHead, double sposRef, double sposTail);
40 
41 private:
42  void fillHeader(const losses_t &losses = losses_t());
43 };
44 
45 #endif
core of the envelope tracker based on Rene Bakkers BET implementation
Definition: EnvelopeBunch.h:60
void write(PartBunchBase< double, 3 > *beam, Vector_t FDext[], const losses_t &losses=losses_t(), const double &azimuth=-1)
Write statistical data.
Definition: StatWriter.cpp:119
void fillHeader(const losses_t &losses=losses_t())
Definition: StatWriter.cpp:12
StatWriter(const std::string &fname, bool restart)
Definition: StatWriter.cpp:7
std::vector< std::pair< std::string, unsigned int > > losses_t
Definition: StatWriter.h:11
virtual void write(PartBunchBase< double, 3 > *beam)
Definition: SDDSWriter.h:49