Version: SMASH-1.5
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_THERMALIZATIONACTION_H_
11 #define SRC_INCLUDE_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_THERMALIZATIONACTION_H_
ThermalizationAction implements forced thermalization as an Action class.
ParticleList outgoing_particles_
Initially this stores only the PDG codes of final-state particles.
Definition: action.h:311
ParticleList incoming_particles_
List with data of incoming particles.
Definition: action.h:303
double get_partial_weight() const
Return the specific weight for the chosen outgoing channel, which is mainly used for the partial weig...
double get_total_weight() const
Return the total weight value, which is mainly used for the weight output entry.
ThermalizationAction(const GrandCanThermalizer &gct, double absolute_labframe_time)
The inherited class.
The GrandCanThermalizer class implements the following functionality:
void format_debug_output(std::ostream &out) const
Function for debug output of incoming and outgoing particles from thermalization action.
bool any_particles_thermalized() const
This method checks, if there are particles in the region to be thermalized.
Action is the base class for a generic process that takes a number of incoming particles and transfor...
Definition: action.h:34
void generate_final_state()
No need to do anything, because outgoing particles are set in constructor.
Definition: action.h:24