Version: SMASH-1.5
decayactionsfinder.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2014-2018
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_DECAYACTIONSFINDER_H_
11 #define SRC_INCLUDE_DECAYACTIONSFINDER_H_
12 
13 #include <vector>
14 
15 #include "actionfinderfactory.h"
16 
17 namespace smash {
18 
26  public:
29 
37  ActionList find_actions_in_cell(const ParticleList &search_list,
38  double dt) const override;
39 
41  ActionList find_actions_with_neighbors(const ParticleList &,
42  const ParticleList &,
43  double) const override {
44  return {};
45  }
46 
48  ActionList find_actions_with_surrounding_particles(const ParticleList &,
49  const Particles &,
50  double) const override {
51  return {};
52  }
53 
63  ActionList find_final_actions(const Particles &search_list,
64  bool only_res = false) const override;
65 };
66 
67 } // namespace smash
68 
69 #endif // SRC_INCLUDE_DECAYACTIONSFINDER_H_
ActionList find_final_actions(const Particles &search_list, bool only_res=false) const override
Force all resonances to decay at the end of the simulation.
ActionList find_actions_with_neighbors(const ParticleList &, const ParticleList &, double) const override
Ignore the neighbor searches for decays.
DecayActionsFinder()
Initialize the finder.
A simple decay finder: Just loops through all particles and checks if they can decay during the next ...
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
ActionList find_actions_with_surrounding_particles(const ParticleList &, const Particles &, double) const override
Ignore the surrounding searches for decays.
Definition: action.h:24
ActionList find_actions_in_cell(const ParticleList &search_list, double dt) const override
Check the whole particle list for decays.