Version: SMASH-3.1
smash::Test Namespace Reference

Classes

struct  Position
 A FourVector that is marked as a position vector. More...
 
struct  Momentum
 A FourVector that is marked as a momentum vector. More...
 

Typedefs

using ParticlesPtr = std::unique_ptr< Particles >
 A type alias for a unique_ptr of Particles. More...
 

Functions

void create_actual_particletypes ()
 Creates the ParticleType list containing the actual particles that SMASH uses. More...
 
void create_actual_decaymodes ()
 Creates the DecayModes list containing the actual decay modes that SMASH uses. More...
 
void create_smashon_particletypes ()
 Creates a ParticleType list containing only the smashon test particle. More...
 
void create_stable_smashon_particletypes ()
 Creates a ParticleType list containing only the smashon test particle with width 0 (stable). More...
 
ParticleData smashon (int id=-1)
 Create a particle with 0 position and momentum vectors and optionally a given id. More...
 
ParticleData smashon (const Position &position, int id=-1)
 Create a particle with 0 momentum vector, the given position, and optionally a given id. More...
 
ParticleData smashon (const Momentum &momentum, int id=-1)
 Create a particle with 0 position vector, the given momentum, and optionally a given id. More...
 
ParticleData smashon (const Position &position, const Momentum &momentum, int id=-1)
 Create a particle with the given position and momentum vectors, and optionally a given id. More...
 
ParticleData smashon (const Momentum &momentum, const Position &position, int id=-1)
 Create a particle with the given position and momentum vectors, and optionally a given id. More...
 
ParticleData smashon_random (int id=-1)
 Create a particle with random position and momentum vectors and optionally a given id. More...
 
std::unique_ptr< ExperimentBaseexperiment (Configuration c)
 Create an experiment given an input configuration. More...
 
template<typename G >
ParticleList create_particle_list (std::size_t n, G &&generator)
 Generate a list of particles from the given generator function. More...
 
template<typename G >
ParticlesPtr create_particles (int n, G &&generator)
 Creates a Particles object and fills it with n particles generated by the generator function. More...
 
ParticlesPtr create_particles (const std::initializer_list< ParticleData > &init)
 Creates a Particles object and fills it with the particles passed as initializer_list to this function. More...
 
ReactionsBitSet all_reactions_included ()
 returns BitSet of 2->2 reactions, where everything is on More...
 
MultiParticleReactionsBitSet no_multiparticle_reactions ()
 returns BitSet for multi-particle reactions, where everything is off More...
 
ExperimentParameters default_parameters (int testparticles=1, double dt=0.1, CollisionCriterion crit=CollisionCriterion::Geometric)
 Creates a standard ExperimentParameters object which works for almost all testing purposes. More...
 
ScatterActionsFinderParameters default_finder_parameters (double elastic_parameter=10, NNbarTreatment nnbar_treatment=NNbarTreatment::NoAnnihilation, ReactionsBitSet included_2to2=all_reactions_included(), bool strings_switch=true, bool use_AQM=false, bool strings_with_probability=false, TotalCrossSectionStrategy xs_strategy=TotalCrossSectionStrategy::BottomUp)
 Creates a standard ScatterActionsFinderParameters object which works for almost all testing purposes. More...
 
EventInfo default_event_info (double impact_parameter=0.0, bool empty_event=false)
 Creates default EventInfo object for testing purposes. More...
 
std::unique_ptr< StringProcessdefault_string_process_interface ()
 Creates a default StringProcessInterface object for testing. More...
 

Variables

static constexpr double smashon_mass = 0.123
 The mass of the smashon particle. More...
 
static constexpr double smashon_width = 1.2
 The decay width of the smashon particle. More...
 
static constexpr const char smashon_pdg_string [] = "661"
 The PDG code of the smashon particle. More...