Version: SMASH-2.2
hypersurfacecrossingaction.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2019-2022
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_SMASH_HYPERSURFACECROSSINGACTION_H_
11 #define SRC_INCLUDE_SMASH_HYPERSURFACECROSSINGACTION_H_
12 
13 #include <vector>
14 
15 #include "action.h"
16 #include "actionfinderfactory.h"
17 
18 namespace smash {
19 
28  public:
36  const ParticleData &out_part,
37  const double time_until)
38  : Action(in_part, out_part, time_until,
40  double get_total_weight() const override { return 0.0; };
41  double get_partial_weight() const override { return 0.0; };
42  void format_debug_output(std::ostream &out) const override {
43  out << "Hypersurface crossing of " << incoming_particles_;
44  }
45 
50  void generate_final_state() override;
51 
52  void check_conservation(const uint32_t id_process) const override;
53 };
54 
62  public:
73  explicit HyperSurfaceCrossActionsFinder(double tau, double y, double pT)
74  : prop_time_{tau}, rap_cut_{y}, pT_cut_{pT} {};
75 
86  ActionList find_actions_in_cell(
87  const ParticleList &plist, double dt, const double,
88  const std::vector<FourVector> &beam_momentum) const override;
89 
92  const ParticleList &, const ParticleList &, double,
93  const std::vector<FourVector> &) const override {
94  return {};
95  }
96 
99  const ParticleList &, const Particles &, double,
100  const std::vector<FourVector> &) const override {
101  return {};
102  }
103 
105  ActionList find_final_actions(const Particles &, bool) const override {
106  return {};
107  }
108 
109  private:
111  const double prop_time_;
112 
119  const double rap_cut_;
120 
128  const double pT_cut_;
129 
140  bool crosses_hypersurface(ParticleData &pdata_before_propagation,
141  ParticleData &pdata_after_propagation,
142  const double tau) const;
143 
153  FourVector coordinates_on_hypersurface(ParticleData &pdata_before_propagation,
154  ParticleData &pdata_after_propagation,
155  const double tau) const;
156 };
157 
158 } // namespace smash
159 
160 #endif // SRC_INCLUDE_SMASH_HYPERSURFACECROSSINGACTION_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:340
The FourVector class holds relevant values in Minkowski spacetime with (+, −, −, −) metric signature.
Definition: fourvector.h:33
Finder for hypersurface crossing actions.
const double prop_time_
Proper time of the hypersurface in fm.
FourVector coordinates_on_hypersurface(ParticleData &pdata_before_propagation, ParticleData &pdata_after_propagation, const double tau) const
Find the coordinates where particle crosses hypersurface.
const double rap_cut_
Rapidity (momentum space) cut for the particles contributing to the initial conditions for hydrodynam...
HyperSurfaceCrossActionsFinder(double tau, double y, double pT)
Construct hypersurfacecrossing action finder.
ActionList find_final_actions(const Particles &, bool) const override
No final actions for hypersurface crossing.
const double pT_cut_
Transverse momentum cut for the particles contributing to the initial conditions for hydrodynamics.
ActionList find_actions_in_cell(const ParticleList &plist, double dt, const double, const std::vector< FourVector > &beam_momentum) const override
Find the next hypersurface crossings for each particle that occur within the timestepless propagation...
bool crosses_hypersurface(ParticleData &pdata_before_propagation, ParticleData &pdata_after_propagation, const double tau) const
Determine whether particle crosses hypersurface within next timestep during propagation.
ActionList find_actions_with_neighbors(const ParticleList &, const ParticleList &, double, const std::vector< FourVector > &) const override
Ignore the neighbor searches for hypersurface crossing.
ActionList find_actions_with_surrounding_particles(const ParticleList &, const Particles &, double, const std::vector< FourVector > &) const override
Ignore the surrounding searches for hypersurface crossing.
Hypersurfacecrossingaction is a special action which indicates that a particle has crossed a hypersur...
double get_partial_weight() const override
Return the specific weight for the chosen outgoing channel, which is mainly used for the partial weig...
void generate_final_state() override
Generate the final state of the hypersurface crossing particles.
void format_debug_output(std::ostream &out) const override
Writes information about this action to the out stream.
HypersurfacecrossingAction(const ParticleData &in_part, const ParticleData &out_part, const double time_until)
Construct hypersurfacecrossing action.
double get_total_weight() const override
Return the total weight value, which is mainly used for the weight output entry.
void check_conservation(const uint32_t id_process) const override
Check various conservation laws.
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
Definition: action.h:24
static constexpr int HyperSurfaceCrossing
Definition: binaryoutput.cc:22
ProcessType
Process Types are used to identify the type of the process.
Definition: processbranch.h:25