Version: SMASH-2.0
smash::Test Namespace Reference

Classes

struct  Momentum
 A FourVector that is marked as a momentum vector. More...
 
struct  Position
 A FourVector that is marked as a position 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...
 
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...
 
Configuration configuration (std::string overrides={})
 Return a configuration object filled with data from src/config.yaml. More...
 
std::unique_ptr< ExperimentBaseexperiment (const Configuration &c=configuration())
 Create an experiment. More...
 
std::unique_ptr< ExperimentBaseexperiment (const char *configOverrides)
 Creates an experiment using the default config and the specified configOverrides. 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...
 
EventInfo default_event_info (double impact_parameter=0.0, bool empty_event=false)
 Creates default EventInfo object for testing purposes. 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...