Version: SMASH-1.8
icoutput.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2019-2019
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_ICOUTPUT_H_
11 #define SRC_INCLUDE_ICOUTPUT_H_
12 
13 #include <string>
14 
15 #include <boost/filesystem.hpp>
16 
17 #include "file.h"
18 #include "outputinterface.h"
19 #include "outputparameters.h"
20 #include "smash/config.h"
21 
22 namespace smash {
23 
31 class ICOutput : public OutputInterface {
32  public:
40  ICOutput(const bf::path &path, const std::string &name,
41  const OutputParameters &out_par);
42  ~ICOutput();
43 
48  void at_eventstart(const Particles &, const int event_number) override;
49 
55  void at_eventend(const Particles &particles, const int event_number, double,
56  bool) override;
57 
61  void at_intermediate_time(const Particles &, const std::unique_ptr<Clock> &,
62  const DensityParameters &) override;
68  void at_interaction(const Action &action, const double) override;
69 
70  private:
75 
85  double IC_proper_time_ = -1.0;
86 };
87 
88 } // namespace smash
89 
90 #endif // SRC_INCLUDE_ICOUTPUT_H_
smash
Definition: action.h:24
outputparameters.h
smash::ICOutput::at_interaction
void at_interaction(const Action &action, const double) override
Write particle data at the hypersurface crossing point to the IC output.
Definition: icoutput.cc:138
smash::DensityParameters
A class to pre-calculate and store parameters relevant for density calculation.
Definition: density.h:107
smash::ICOutput::ICOutput
ICOutput(const bf::path &path, const std::string &name, const OutputParameters &out_par)
Create a new IC output.
Definition: icoutput.cc:99
smash::ICOutput::at_eventstart
void at_eventstart(const Particles &, const int event_number) override
Write event start line.
Definition: icoutput.cc:114
smash::ICOutput::at_eventend
void at_eventend(const Particles &particles, const int event_number, double, bool) override
Write event end line.
Definition: icoutput.cc:118
outputinterface.h
smash::OutputParameters
Helper structure for Experiment to hold output options and parameters.
Definition: outputparameters.h:25
smash::ICOutput
Definition: icoutput.h:31
smash::OutputInterface
Abstraction of generic output.
Definition: outputinterface.h:35
smash::ICOutput::at_intermediate_time
void at_intermediate_time(const Particles &, const std::unique_ptr< Clock > &, const DensityParameters &) override
Unused, but needed since virtually declared in mother class.
Definition: icoutput.cc:132
smash::ICOutput::IC_proper_time_
double IC_proper_time_
Proper time of the particles removed when extracting initial conditions.
Definition: icoutput.h:85
smash::ICOutput::out_par_
const OutputParameters out_par_
Structure that holds all the information about what to printout.
Definition: icoutput.h:74
smash::ICOutput::file_
RenamingFilePtr file_
Pointer to output file.
Definition: icoutput.h:72
smash::Particles
Definition: particles.h:33
smash::Action
Definition: action.h:35
smash::RenamingFilePtr
A RAII type to replace std::FILE *.
Definition: file.h:73
file.h
smash::ICOutput::~ICOutput
~ICOutput()
Definition: icoutput.cc:112