 |
Version: SMASH-1.8
|
|
Go to the documentation of this file.
10 #ifndef SRC_INCLUDE_ROOTOUTPUT_H_
11 #define SRC_INCLUDE_ROOTOUTPUT_H_
17 #include <boost/filesystem.hpp>
106 RootOutput(
const bf::path &path,
const std::string &name,
118 const int event_number)
override;
129 double impact_parameter,
bool empty_event)
override;
138 const std::unique_ptr<Clock> &clock,
173 template <
typename T>
183 const ParticleList &outgoing,
const double weight,
184 const double partial_weight);
197 std::array<double, max_buffer_size_>
p0,
px,
py,
pz,
t,
x,
y,
z,
246 #endif // SRC_INCLUDE_ROOTOUTPUT_H_
int npart
Property that is written to ROOT output.
bf::path filename_unfinished_
Filename of output as long as simulation is still running.
std::array< int, max_buffer_size_ > pdgcode
Property that is written to ROOT output.
const bool coll_extended_
Whether extended collisions output is on.
A class to pre-calculate and store parameters relevant for density calculation.
double impact_b
Property that is written to ROOT output.
int ev
Property that is written to ROOT output.
OutputOnlyFinal
Whether and when only final state particles should be printed.
int nout
Property that is written to ROOT output.
std::array< double, max_buffer_size_ > z
Property that is written to ROOT output.
std::array< double, max_buffer_size_ > y
Property that is written to ROOT output.
std::array< double, max_buffer_size_ > formation_time_
Property that is written to ROOT output.
RootOutput(const bf::path &path, const std::string &name, const OutputParameters &out_par)
Construct ROOT output.
const bf::path filename_
Filename of output.
bool write_initial_conditions_
Option to write particles tree for initial conditions.
void init_trees()
Basic initialization routine, creating the TTree objects for particles and collisions.
void at_interaction(const Action &action, const double density) override
Writes collisions to a tree defined by treename.
int output_counter_
Number of output in a given event.
double wgt
Property that is written to ROOT output.
int autosave_frequency_
Root file cannot be read if it was not properly closed and finalized.
bool empty_event_
Property that is written to ROOT output.
Helper structure for Experiment to hold output options and parameters.
std::array< int, max_buffer_size_ > coll_per_part_
Property that is written to ROOT output.
void at_eventend(const Particles &particles, const int event_number, double impact_parameter, bool empty_event) override
update event number and impact parameter, and writes intermediate particles to a tree.
bool write_particles_
Option to write particles tree.
Abstraction of generic output.
std::array< int, max_buffer_size_ > charge
Property that is written to ROOT output.
std::array< double, max_buffer_size_ > x
Property that is written to ROOT output.
TTree * collisions_tree_
TTree for collision output.
std::array< double, max_buffer_size_ > px
Property that is written to ROOT output.
int nin
Property that is written to ROOT output.
std::array< double, max_buffer_size_ > py
Property that is written to ROOT output.
bool write_collisions_
Option to write collisions tree.
int current_event_
Number of current event.
std::array< double, max_buffer_size_ > xsec_factor_
Property that is written to ROOT output.
double par_wgt
Property that is written to ROOT output.
std::array< int, max_buffer_size_ > pdg_mother1_
Property that is written to ROOT output.
std::unique_ptr< TFile > root_out_file_
Pointer to root output file.
void at_intermediate_time(const Particles &particles, const std::unique_ptr< Clock > &clock, const DensityParameters &dens_param) override
Writes intermediate particles to a tree defined by treename, if it is allowed (i.e....
TTree * particles_tree_
TTree for particles output.
void collisions_to_tree(const ParticleList &incoming, const ParticleList &outgoing, const double weight, const double partial_weight)
Writes collisions to a tree defined by treename.
std::array< double, max_buffer_size_ > p0
Property that is written to ROOT output.
const bool part_extended_
Whether extended particle output is on.
static const int max_buffer_size_
Maximal buffer size.
std::array< double, max_buffer_size_ > time_last_coll_
Property that is written to ROOT output.
void particles_to_tree(T &particles)
Writes particles to a tree defined by treename.
int tcounter
Property that is written to ROOT output.
OutputOnlyFinal particles_only_final_
Print only final particles in the event, no intermediate output.
void at_eventstart(const Particles &particles, const int event_number) override
update event number and writes intermediate particles to a tree.
std::array< int, max_buffer_size_ > proc_id_origin_
Property that is written to ROOT output.
std::array< double, max_buffer_size_ > pz
Property that is written to ROOT output.
const bool ic_extended_
Whether extended ic output is on.
std::array< double, max_buffer_size_ > t
Property that is written to ROOT output.
std::array< int, max_buffer_size_ > proc_type_origin_
Property that is written to ROOT output.
std::array< int, max_buffer_size_ > pdg_mother2_
Property that is written to ROOT output.