Version: SMASH-3.1
wallcrossingaction.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2015-2020
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_SMASH_WALLCROSSINGACTION_H_
11 #define SRC_INCLUDE_SMASH_WALLCROSSINGACTION_H_
12 
13 #include <vector>
14 
15 #include "action.h"
16 #include "actionfinderfactory.h"
17 
18 namespace smash {
19 
25 class WallcrossingAction : public Action {
26  public:
35  WallcrossingAction(const ParticleData &in_part, const ParticleData &out_part,
36  const double time_until = 0.0)
37  : Action(in_part, out_part, time_until, ProcessType::Wall) {}
38  double get_total_weight() const override { return 0.0; };
39  double get_partial_weight() const override { return 0.0; };
40  void generate_final_state() override{};
41  void format_debug_output(std::ostream &out) const override {
42  out << "Wall crossing of " << incoming_particles_;
43  }
44 };
45 
53  public:
58  explicit WallCrossActionsFinder(double l) : l_{l, l, l} {};
59 
66  ActionList find_actions_in_cell(
67  const ParticleList &plist, double t_max, const double,
68  const std::vector<FourVector> &) const override;
69 
72  const ParticleList &, const ParticleList &, double,
73  const std::vector<FourVector> &) const override {
74  return {};
75  }
76 
79  const ParticleList &, const Particles &, double,
80  const std::vector<FourVector> &) const override {
81  return {};
82  }
83 
85  ActionList find_final_actions(const Particles &, bool) const override {
86  return {};
87  }
88 
89  private:
91  const std::array<double, 3> l_;
92 };
93 
94 } // namespace smash
95 
96 #endif // SRC_INCLUDE_SMASH_WALLCROSSINGACTION_H_
ActionFinderInterface is the abstract base class for all action finders, i.e.
Action is the base class for a generic process that takes a number of incoming particles and transfor...
Definition: action.h:35
ParticleList incoming_particles_
List with data of incoming particles.
Definition: action.h:355
ParticleData contains the dynamic information of a certain particle.
Definition: particledata.h:58
The Particles class abstracts the storage and manipulation of particles.
Definition: particles.h:33
Finder for wall crossing actions, when using peridic boundary conditons.
WallCrossActionsFinder(double l)
Construct wallcrossing actionfinder.
ActionList find_actions_with_surrounding_particles(const ParticleList &, const Particles &, double, const std::vector< FourVector > &) const override
Ignore the surrounding searches for wall crossing.
ActionList find_actions_in_cell(const ParticleList &plist, double t_max, const double, const std::vector< FourVector > &) const override
Find the next wall crossings for every particle before time t_max.
const std::array< double, 3 > l_
Periods in x,y,z directions in fm.
ActionList find_actions_with_neighbors(const ParticleList &, const ParticleList &, double, const std::vector< FourVector > &) const override
Ignore the neighbor searches for wall crossing.
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.
double get_partial_weight() const override
Return the specific weight for the chosen outgoing channel, which is mainly used for the partial weig...
WallcrossingAction(const ParticleData &in_part, const ParticleData &out_part, const double time_until=0.0)
Construct wallcrossing action.
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.
void format_debug_output(std::ostream &out) const override
Writes information about this action to the out stream.
Definition: action.h:24
ProcessType
ProcessTypes are used to identify the type of the process.
Definition: processbranch.h:39
@ Wall
See here for a short description.