7 #ifndef SRC_INCLUDE_OUTPUTPARAMETERS_H_ 8 #define SRC_INCLUDE_OUTPUTPARAMETERS_H_ 44 const auto& log = logger<LogArea::Experiment>();
47 if (conf.has_value({
"Thermodynamics"})) {
48 auto subcon = conf[
"Thermodynamics"];
49 if (subcon.has_value({
"Position"})) {
50 const std::array<double, 3> a = subcon.take({
"Position"});
53 std::set<ThermodynamicQuantity> quan = subcon.take({
"Quantities"});
62 log.warn(
"Requested Thermodynamics output with Density type None. ",
63 "Change the density type to avoid output being dropped.");
68 if (conf.has_value({
"Particles"})) {
73 if (conf.has_value({
"Collisions"})) {
78 if (conf.has_value({
"Dileptons"})) {
79 dil_extended = conf.take({
"Dileptons",
"Extended"},
false);
82 if (conf.has_value({
"Photons"})) {
93 if (name ==
"Collisions") {
95 }
else if (name ==
"Dileptons") {
97 }
else if (name ==
"Photons") {
155 #endif // SRC_INCLUDE_OUTPUTPARAMETERS_H_ The ThreeVector class represents a physical three-vector with the components .
DensityType td_dens_type
Type (e.g., baryon/pion/hadron) of thermodynamic quantity.
ThreeVector td_position
Point, where thermodynamic quantities are calculated.
bool part_extended
Extended format for particles output.
bool td_jQBS
Print out QBS 4-currents or not?
OutputParameters()
Default constructor, useful for tests.
Interface to the SMASH configuration files.
bool td_tmn_landau
Print out energy-momentum tensor in Landau rest frame (of type td_dens_type) or not?
OutputParameters(Configuration &&conf)
Constructor from configuration.
bool td_smearing
Whether smearing is on or off; WARNING : if smearing is off, then final result is in GeV instead of G...
bool coll_printstartend
Print initial and final particles in event into collision output.
#define source_location
Hackery that is required to output the location in the source code where the log statement occurs...
bool photons_extended
Extended format for photon output.
bool part_only_final
Print only final particles in event.
bool coll_extended
Extended format for collisions output.
bool td_rho_eckart
Print out Eckart rest frame density of type td_dens_type or not?
Helper structure for Experiment to hold output options and parameters.
bool dil_extended
Extended format for dilepton output.
bool get_coll_extended(std::string name) const
Pass correct extended flag to binary collision output constructor.
bool td_tmn
Print out energy-momentum tensor of type td_dens_type or not?
bool td_v_landau
Print out Landau velocity of type td_dens_type or not?
DensityType
Allows to choose which kind of density to calculate.