10 #ifndef SRC_INCLUDE_SCATTERACTION_H_ 11 #define SRC_INCLUDE_SCATTERACTION_H_ 43 double time,
bool isotropic =
false,
44 double string_formation_time = 1.0);
104 double kinetic_energy_cm)
override;
123 bool strings_switch,
bool use_AQM,
124 bool strings_with_probability,
141 using std::invalid_argument::invalid_argument;
255 #endif // SRC_INCLUDE_SCATTERACTION_H_ void add_collisions(CollisionBranchList pv)
Add several new collision channels at once.
double transverse_distance_sqr() const
Calculate the transverse distance of the two incoming particles in their local rest frame...
void add_collision(CollisionBranchPtr p)
Add a new collision channel.
double partial_cross_section_
Partial cross-section to the chosen outgoing channel.
The ThreeVector class represents a physical three-vector with the components .
void generate_final_state() override
Generate the final-state of the scattering process.
String excitation processes used in SMASH.
Thrown when ScatterAction is called to perform with unknown ProcessType.
double string_formation_time_
Time fragments take to be fully formed in hard string excitation.
StringProcess * string_process_
Pointer to interface class for strings.
double get_partial_weight() const override
Get the partial cross section of the chosen channel.
void resonance_formation()
Perform a 2->1 resonance-formation process.
NNbarTreatment
Treatment of N Nbar Annihilation.
void set_string_interface(StringProcess *str_proc)
Set the StringProcess object to be used.
void string_excitation()
Todo(ryu): document better - it is not really UrQMD-based, isn't it? Perform the UrQMD-based string e...
bool is_elastic() const
Check if the scattering is elastic.
ScatterAction(const ParticleData &in_part1, const ParticleData &in_part2, double time, bool isotropic=false, double string_formation_time=1.0)
Construct a ScatterAction object.
double total_cross_section_
Total hadronic cross section.
const CollisionBranchList & collision_channels()
Get list of possible collision channels.
double gamma_cm() const
Get the gamma factor corresponding to a boost to the center of mass frame of the colliding particles...
double cm_momentum_squared() const
Get the squared momentum of the center of mass of the incoming particles in the calculation frame...
void add_all_scatterings(double elastic_parameter, bool two_to_one, ReactionsBitSet included_2to2, double low_snn_cut, bool strings_switch, bool use_AQM, bool strings_with_probability, NNbarTreatment nnbar_treatment)
Add all possible scattering subprocesses for this action object.
void elastic_scattering()
Perform an elastic two-body scattering, i.e. just exchange momentum.
std::bitset< 6 > ReactionsBitSet
Container for the 2 to 2 reactions in the code.
Action is the base class for a generic process that takes a number of incoming particles and transfor...
bool isotropic_
Do this collision isotropically?
virtual double cross_section() const
Get the total cross section of the scattering particles.
ThreeVector beta_cm() const
Get the velocity of the center of mass of the scattering particles in the calculation frame...
CollisionBranchList collision_channels_
List of possible collisions.
double get_total_weight() const override
Get the total cross section of scattering particles.
ScatterAction is a special action which takes two incoming particles and performs a scattering...
void sample_angles(std::pair< double, double > masses, double kinetic_energy_cm) override
Sample final-state angles in a 2->2 collision (possibly anisotropic).
ParticleData contains the dynamic information of a certain particle.
double cm_momentum() const
Get the momentum of the center of mass of the incoming particles in the calculation frame...
double mandelstam_s() const
Determine the Mandelstam s variable,.
void format_debug_output(std::ostream &out) const override
Writes information about this scatter action to the out stream.
void inelastic_scattering()
Perform an inelastic two-body scattering, i.e. new particles are formed.