Version: SMASH-3.0
forwarddeclarations.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2014-2023
4  * SMASH Team
5  *
6  * GNU General Public License (GPLv3 or later)
7  *
8  */
9 
10 #ifndef SRC_INCLUDE_SMASH_FORWARDDECLARATIONS_H_
11 #define SRC_INCLUDE_SMASH_FORWARDDECLARATIONS_H_
12 
14 // exclude most content here from documentation
15 
16 #include <iosfwd>
17 #include <memory>
18 #include <vector>
19 
20 #ifdef _LIBCPP_BEGIN_NAMESPACE_STD
21 _LIBCPP_BEGIN_NAMESPACE_STD
22 #else
23 namespace std {
24 #endif
25 
26 template <typename T>
27 class allocator;
28 template <typename T, typename A>
29 class vector;
30 
31 template <typename T>
32 struct default_delete;
33 template <typename T, typename Deleter>
34 class unique_ptr;
35 
36 template <std::size_t N>
37 class bitset;
38 
39 #ifdef _LIBCPP_END_NAMESPACE_STD
40 _LIBCPP_END_NAMESPACE_STD
41 #else
42 } // namespace std
43 #endif
44 
45 namespace smash {
46 
47 template <typename T>
48 using build_unique_ptr_ = std::unique_ptr<T, std::default_delete<T>>;
49 template <typename T>
50 using build_vector_ = std::vector<T, std::allocator<T>>;
51 
52 class Action;
53 class ScatterAction;
54 class ScatterActionMulti;
55 class BoxModus;
56 class Clock;
57 class Configuration;
58 class CrossSections;
59 class DecayModes;
60 class DecayType;
61 class FourVector;
62 class ThreeVector;
63 class ModusDefault;
64 class OutputInterface;
65 class ParticleData;
66 class Particles;
67 class ParticleType;
68 class ParticleTypePtr;
69 class IsoParticleType;
70 class PdgCode;
71 class DecayBranch;
72 class CollisionBranch;
73 class Tabulation;
74 class ExperimentBase;
75 struct ExperimentParameters;
76 struct ScatterActionsFinderParameters;
77 struct StringTransitionParameters;
78 struct Nucleoncorr;
79 
81 
83 enum class CalculationFrame {
87 };
88 
90 enum class FermiMotion {
92  Off,
94  On,
96  Frozen,
97 };
98 
100 enum class Sampling {
102  Uniform,
104  Quadratic,
106  Custom,
107 };
108 
110 enum class DerivativesMode {
113  Off,
114 };
115 
121  On,
122  Off,
123 };
124 
130  ChainRule,
131  Direct,
132 };
133 
135 enum class SmearingMode {
137  Discrete,
138  Triangular,
139 };
140 
142 enum class TimeStepMode : char {
144  None,
146  Fixed,
147 };
148 
164 };
165 
182  IC_ES,
183  IC_1M,
184  IC_2M,
185  IC_Massive,
186 };
187 
196 enum class ExpansionMode {
197  NoExpansion,
198  MasslessFRW,
199  MassiveFRW,
200  Exponential,
201 };
202 
204 enum class NNbarTreatment {
208  Resonances,
210  TwoToFive,
212  Strings,
213 };
214 
218 enum class ThermodynamicQuantity : char {
220  Tmn,
221  TmnLandau,
223  j_QBS
224 };
225 
227 enum class CollisionCriterion {
229  Geometric,
231  Stochastic,
233  Covariant
234 };
235 
237 enum class OutputOnlyFinal {
239  Yes,
241  No,
244  IfNotEmpty,
245 };
246 
249  All = 50,
250  Elastic = 0,
251  NN_to_NR = 1,
252  NN_to_DR = 2,
253  KN_to_KN = 3,
256  NNbar = 6,
260 };
261 
263 typedef std::bitset<10> ReactionsBitSet;
264 
271 };
272 
274 typedef std::bitset<4> MultiParticleReactionsBitSet;
275 
286  ModeSampling,
287  BiasedBF,
288  UnbiasedBF,
289 };
290 
298 enum class EventCounting {
299  FixedNumber,
301  Invalid,
302 };
303 
305 using ActionPtr = build_unique_ptr_<Action>;
306 using ScatterActionPtr = build_unique_ptr_<ScatterAction>;
307 using ScatterActionMultiPtr = build_unique_ptr_<ScatterActionMulti>;
308 using ActionList = build_vector_<ActionPtr>;
309 
310 using OutputPtr = build_unique_ptr_<OutputInterface>;
311 using OutputsList = build_vector_<OutputPtr>;
312 
313 using ParticleList = build_vector_<ParticleData>;
314 using ParticleTypeList = build_vector_<ParticleType>;
315 using ParticleTypePtrList = build_vector_<ParticleTypePtr>;
316 using IsoParticleTypeList = build_vector_<IsoParticleType>;
317 
318 template <typename T>
319 using ProcessBranchPtr = build_unique_ptr_<T>;
320 template <typename T>
321 using ProcessBranchList = build_vector_<ProcessBranchPtr<T>>;
322 using DecayBranchPtr = build_unique_ptr_<DecayBranch>;
323 using DecayBranchList = build_vector_<DecayBranchPtr>;
324 using CollisionBranchPtr = build_unique_ptr_<CollisionBranch>;
325 using CollisionBranchList = build_vector_<CollisionBranchPtr>;
326 
327 using TabulationPtr = build_unique_ptr_<Tabulation>;
328 using ExperimentPtr = build_unique_ptr_<ExperimentBase>;
329 using DecayTypePtr = build_unique_ptr_<DecayType>;
330 
332 
333 } // namespace smash
334 
335 #endif // SRC_INCLUDE_SMASH_FORWARDDECLARATIONS_H_
SmearingMode
Modes of smearing.
FermiMotion
Option to use Fermi Motion.
@ On
Use fermi motion in combination with potentials.
@ Frozen
Use fermi motion without potentials.
@ Off
Don't use fermi motion.
std::bitset< 10 > ReactionsBitSet
Container for the 2 to 2 reactions in the code.
ThermalizationAlgorithm
Defines the algorithm used for the forced thermalization.
NNbarTreatment
Treatment of N Nbar Annihilation.
@ NoAnnihilation
No Annihilation.
@ TwoToFive
Directly create 5 pions, use with multi-particle reactions.
@ Resonances
Use intermediate Resonances.
@ Strings
Use string fragmentation.
RestFrameDensityDerivativesMode
Modes of calculating the gradients: whether to calculate the rest frame density derivatives.
TimeStepMode
The time step mode.
@ Fixed
Use fixed time step.
ThermodynamicQuantity
Represents thermodynamic quantities that can be printed out.
Sampling
Possible methods of impact parameter sampling.
@ Quadratic
Sample from areal / quadratic distribution.
@ Custom
Sample from custom, user-defined distribution.
@ Uniform
Sample from uniform distribution.
std::bitset< 4 > MultiParticleReactionsBitSet
Container for the n to m reactions in the code.
CalculationFrame
The calculation frame.
IncludedMultiParticleReactions
The different groups of multi-particle reactions that one can include.
@ NNbar_5to2
@ A3_Nuclei_4to2
@ Deuteron_3to2
@ Meson_3to1
DerivativesMode
Modes of calculating the gradients.
CollisionCriterion
Criteria used to check collisions.
@ Stochastic
Stochastic Criteiron.
@ Geometric
(Default) geometric criterion.
@ Covariant
Covariant Criterion.
FieldDerivativesMode
Modes of calculating the field gradients: chain rule or direct.
SphereInitialCondition
Initial condition for a particle in a sphere.
EventCounting
Defines how the number of events is determined.
IncludedReactions
The different groups of 2 to 2 reactions that one can include.
@ KN_to_KDelta
@ KN_to_KN
@ NN_to_NR
@ PiDeuteron_to_pidprime
@ NDeuteron_to_Ndprime
@ Strangeness_exchange
@ PiDeuteron_to_NN
@ NN_to_DR
OutputOnlyFinal
Whether and when only final state particles should be printed.
@ IfNotEmpty
Print only final-state particles, and those only if the event is not empty.
@ Yes
Print only final-state particles.
@ No
Print initial, intermediate and final-state particles.
BoxInitialCondition
Initial condition for a particle in a box.
ExpansionMode
Defines properties of expansion for the metric (e.g.
Definition: action.h:24