Version: SMASH-3.3
hypersurfacecrossingfinder.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2019-2020,2022-2025
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_SMASH_HYPERSURFACECROSSINGFINDER_H_
11 #define SRC_INCLUDE_SMASH_HYPERSURFACECROSSINGFINDER_H_
12 
13 #include <vector>
14 
15 #include "action.h"
16 #include "actionfinderfactory.h"
17 
18 namespace smash {
19 
27  public:
38  explicit HyperSurfaceCrossActionsFinder(double tau, double y, double pT)
39  : prop_time_{tau}, rap_cut_{y}, pT_cut_{pT} {};
40 
51  ActionList find_actions_in_cell(
52  const ParticleList &plist, double dt, const double,
53  const std::vector<FourVector> &beam_momentum) const override;
54 
57  const ParticleList &, const ParticleList &, double,
58  const std::vector<FourVector> &) const override {
59  return {};
60  }
61 
64  const ParticleList &, const Particles &, double,
65  const std::vector<FourVector> &) const override {
66  return {};
67  }
68 
70  ActionList find_final_actions(const Particles &) const override { return {}; }
71 
81  const size_t number_of_particles, bool impose_kinematic_cut);
82 
83  private:
85  const double prop_time_;
86 
93  const double rap_cut_;
94 
102  const double pT_cut_;
103 
114  bool crosses_hypersurface(ParticleData &pdata_before_propagation,
115  ParticleData &pdata_after_propagation,
116  const double tau) const;
117 
127  FourVector coordinates_on_hypersurface(ParticleData &pdata_before_propagation,
128  ParticleData &pdata_after_propagation,
129  const double tau) const;
130 };
131 
132 } // namespace smash
133 
134 #endif // SRC_INCLUDE_SMASH_HYPERSURFACECROSSINGFINDER_H_
ActionFinderInterface is the abstract base class for all action finders, i.e.
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...
ActionList find_final_actions(const Particles &) const override
No final actions for hypersurface crossing.
HyperSurfaceCrossActionsFinder(double tau, double y, double pT)
Construct hypersurfacecrossing action finder.
static void warn_if_some_particles_did_not_cross(const size_t number_of_particles, bool impose_kinematic_cut)
Gives a warning if number_of_particles is not 0 and there are no kinematic cuts.
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.
ParticleData contains the dynamic information of a certain particle.
Definition: particledata.h:59
The Particles class abstracts the storage and manipulation of particles.
Definition: particles.h:33
Definition: action.h:24