Version: SMASH-2.0
decayactionsfinder.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2014-2020
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_SMASH_DECAYACTIONSFINDER_H_
11 #define SRC_INCLUDE_SMASH_DECAYACTIONSFINDER_H_
12 
13 #include <vector>
14 
15 #include "actionfinderfactory.h"
16 
17 namespace smash {
18 
26  public:
33  explicit DecayActionsFinder(double res_lifetime_factor)
34  : res_lifetime_factor_(res_lifetime_factor) {}
35 
43  ActionList find_actions_in_cell(
44  const ParticleList &search_list, double dt, const double,
45  const std::vector<FourVector> &) const override;
46 
49  const ParticleList &, const ParticleList &, double,
50  const std::vector<FourVector> &) const override {
51  return {};
52  }
53 
56  const ParticleList &, const Particles &, double,
57  const std::vector<FourVector> &) const override {
58  return {};
59  }
60 
70  ActionList find_final_actions(const Particles &search_list,
71  bool only_res = false) const override;
72 
74  const double res_lifetime_factor_ = 1.;
75 };
76 
77 } // namespace smash
78 
79 #endif // SRC_INCLUDE_SMASH_DECAYACTIONSFINDER_H_
smash
Definition: action.h:24
smash::DecayActionsFinder
Definition: decayactionsfinder.h:25
smash::DecayActionsFinder::res_lifetime_factor_
const double res_lifetime_factor_
Multiplicative factor to be applied to resonance lifetimes.
Definition: decayactionsfinder.h:74
smash::DecayActionsFinder::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 decays.
Definition: decayactionsfinder.h:55
smash::DecayActionsFinder::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 decays.
Definition: decayactionsfinder.h:48
smash::DecayActionsFinder::DecayActionsFinder
DecayActionsFinder(double res_lifetime_factor)
Initialize the finder.
Definition: decayactionsfinder.h:33
smash::DecayActionsFinder::find_actions_in_cell
ActionList find_actions_in_cell(const ParticleList &search_list, double dt, const double, const std::vector< FourVector > &) const override
Check the whole particle list for decays.
Definition: decayactionsfinder.cc:20
smash::DecayActionsFinder::find_final_actions
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.
Definition: decayactionsfinder.cc:71
actionfinderfactory.h
smash::ActionFinderInterface
Definition: actionfinderfactory.h:27
smash::Particles
Definition: particles.h:33