Version: SMASH-2.0
thermalizationaction.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2017-
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_SMASH_THERMALIZATIONACTION_H_
11 #define SRC_INCLUDE_SMASH_THERMALIZATIONACTION_H_
12 
13 #include "action.h"
14 #include "grandcan_thermalizer.h"
15 
16 namespace smash {
17 
24 class ThermalizationAction : public Action {
25  public:
33  double absolute_labframe_time);
36  double get_total_weight() const { return 0.0; }
37  double get_partial_weight() const { return 0.0; }
40  return (incoming_particles_.size() > 0);
41  }
47  void format_debug_output(std::ostream& out) const {
48  out << " Thermalization action of " << incoming_particles_.size() << " to "
49  << outgoing_particles_.size() << " particles.";
50  }
51 };
52 
53 } // namespace smash
54 
55 #endif // SRC_INCLUDE_SMASH_THERMALIZATIONACTION_H_
smash
Definition: action.h:24
smash::Action::incoming_particles_
ParticleList incoming_particles_
List with data of incoming particles.
Definition: action.h:326
action.h
grandcan_thermalizer.h
smash::ThermalizationAction::get_total_weight
double get_total_weight() const
Return the total weight value, which is mainly used for the weight output entry.
Definition: thermalizationaction.h:36
smash::ThermalizationAction::ThermalizationAction
ThermalizationAction(const GrandCanThermalizer &gct, double absolute_labframe_time)
The inherited class.
Definition: thermalizationaction.cc:12
smash::ThermalizationAction::any_particles_thermalized
bool any_particles_thermalized() const
This method checks, if there are particles in the region to be thermalized.
Definition: thermalizationaction.h:39
smash::ThermalizationAction
Definition: thermalizationaction.h:24
smash::Action::outgoing_particles_
ParticleList outgoing_particles_
Initially this stores only the PDG codes of final-state particles.
Definition: action.h:334
smash::ThermalizationAction::get_partial_weight
double get_partial_weight() const
Return the specific weight for the chosen outgoing channel, which is mainly used for the partial weig...
Definition: thermalizationaction.h:37
smash::ThermalizationAction::generate_final_state
void generate_final_state()
No need to do anything, because outgoing particles are set in constructor.
Definition: thermalizationaction.h:35
smash::ThermalizationAction::format_debug_output
void format_debug_output(std::ostream &out) const
Function for debug output of incoming and outgoing particles from thermalization action.
Definition: thermalizationaction.h:47
smash::Action
Definition: action.h:35
smash::GrandCanThermalizer
The GrandCanThermalizer class implements the following functionality:
Definition: grandcan_thermalizer.h:227