Version: SMASH-2.0
wallcrossingaction.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2016-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_
smash
Definition: action.h:24
smash::Action::incoming_particles_
ParticleList incoming_particles_
List with data of incoming particles.
Definition: action.h:326
smash::WallCrossActionsFinder::find_actions_with_neighbors
ActionList find_actions_with_neighbors(const ParticleList &, const ParticleList &, double, const std::vector< FourVector > &) const override
Ignore the neighbor searches for wall crossing.
Definition: wallcrossingaction.h:71
smash::ParticleData
Definition: particledata.h:52
smash::WallCrossActionsFinder::find_actions_with_surrounding_particles
ActionList find_actions_with_surrounding_particles(const ParticleList &, const Particles &, double, const std::vector< FourVector > &) const override
Ignore the surrounding searches for wall crossing.
Definition: wallcrossingaction.h:78
smash::WallcrossingAction::format_debug_output
void format_debug_output(std::ostream &out) const override
Definition: wallcrossingaction.h:41
action.h
smash::WallcrossingAction::get_partial_weight
double get_partial_weight() const override
Return the specific weight for the chosen outgoing channel, which is mainly used for the partial weig...
Definition: wallcrossingaction.h:39
smash::ProcessType::Wall
box wall crossing
smash::WallcrossingAction::generate_final_state
void generate_final_state() override
Generate the final state for this action.
Definition: wallcrossingaction.h:40
actionfinderfactory.h
smash::ActionFinderInterface
Definition: actionfinderfactory.h:27
smash::WallCrossActionsFinder::find_final_actions
ActionList find_final_actions(const Particles &, bool) const override
No final actions for wall crossing.
Definition: wallcrossingaction.h:85
smash::WallCrossActionsFinder::l_
const std::array< double, 3 > l_
Periods in x,y,z directions in fm.
Definition: wallcrossingaction.h:91
smash::WallcrossingAction::WallcrossingAction
WallcrossingAction(const ParticleData &in_part, const ParticleData &out_part, const double time_until=0.0)
Construct wallcrossing action.
Definition: wallcrossingaction.h:35
smash::WallCrossActionsFinder
Definition: wallcrossingaction.h:52
smash::WallCrossActionsFinder::WallCrossActionsFinder
WallCrossActionsFinder(double l)
Construct wallcrossing actionfinder.
Definition: wallcrossingaction.h:58
smash::Particles
Definition: particles.h:33
smash::WallcrossingAction::get_total_weight
double get_total_weight() const override
Return the total weight value, which is mainly used for the weight output entry.
Definition: wallcrossingaction.h:38
smash::WallcrossingAction
Definition: wallcrossingaction.h:25
smash::Action
Definition: action.h:35
smash::ProcessType
ProcessType
Process Types are used to identify the type of the process.
Definition: processbranch.h:25
smash::WallCrossActionsFinder::find_actions_in_cell
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.
Definition: wallcrossingaction.cc:14