Version: SMASH-1.5
wallcrossingaction.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2016-2018
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_WALLCROSSINGACTION_H_
11 #define SRC_INCLUDE_WALLCROSSINGACTION_H_
12 
13 #include "action.h"
14 #include "actionfinderfactory.h"
15 
16 namespace smash {
17 
23 class WallcrossingAction : public Action {
24  public:
33  WallcrossingAction(const ParticleData &in_part, const ParticleData &out_part,
34  const double time_until = 0.0)
35  : Action(in_part, out_part, time_until, ProcessType::Wall) {}
36  double get_total_weight() const override { return 0.0; };
37  double get_partial_weight() const override { return 0.0; };
38  void generate_final_state() override{};
39  void format_debug_output(std::ostream &out) const override {
40  out << "Wall crossing of " << incoming_particles_;
41  }
42 };
43 
51  public:
56  explicit WallCrossActionsFinder(double l) : l_{l, l, l} {};
57 
64  ActionList find_actions_in_cell(const ParticleList &plist,
65  double t_max) const override;
66 
68  ActionList find_actions_with_neighbors(const ParticleList &,
69  const ParticleList &,
70  double) const override {
71  return {};
72  }
73 
75  ActionList find_actions_with_surrounding_particles(const ParticleList &,
76  const Particles &,
77  double) const override {
78  return {};
79  }
80 
82  ActionList find_final_actions(const Particles &, bool) const override {
83  return {};
84  }
85 
86  private:
88  const std::array<double, 3> l_;
89 };
90 
91 } // namespace smash
92 
93 #endif // SRC_INCLUDE_WALLCROSSINGACTION_H_
const std::array< double, 3 > l_
Periods in x,y,z directions in fm.
void format_debug_output(std::ostream &out) const override
Writes information about this action to the out stream.
ActionList find_actions_with_surrounding_particles(const ParticleList &, const Particles &, double) const override
Ignore the surrounding searches for wall crossing.
ProcessType
Process Types are used to identify the type of the process.
Definition: processbranch.h:25
void generate_final_state() override
Generate the final state for this action.
double get_total_weight() const override
Return the total weight value, which is mainly used for the weight output entry.
ActionList find_actions_with_neighbors(const ParticleList &, const ParticleList &, double) const override
Ignore the neighbor searches for wall crossing.
ParticleList incoming_particles_
List with data of incoming particles.
Definition: action.h:303
box wall crossing
ActionList find_actions_in_cell(const ParticleList &plist, double t_max) const override
Find the next wall crossings for every particle before time t_max.
Action is the base class for a generic process that takes a number of incoming particles and transfor...
Definition: action.h:34
WallcrossingAction(const ParticleData &in_part, const ParticleData &out_part, const double time_until=0.0)
Construct wallcrossing action.
ActionList find_final_actions(const Particles &, bool) const override
No final actions for wall crossing.
WallcrossingAction is a special action which indicates that a particle has crossed a box wall...
WallCrossActionsFinder(double l)
Construct wallcrossing actionfinder.
ActionFinderInterface is the abstract base class for all action finders, i.e.
The Particles class abstracts the storage and manipulation of particles.
Definition: particles.h:33
double get_partial_weight() const override
Return the specific weight for the chosen outgoing channel, which is mainly used for the partial weig...
ParticleData contains the dynamic information of a certain particle.
Definition: particledata.h:52
Finder for wall crossing actions, when using peridic boundary conditons.
Definition: action.h:24