8 #ifndef SRC_INCLUDE_ISOPARTICLETYPE_H_ 9 #define SRC_INCLUDE_ISOPARTICLETYPE_H_ 12 #include <unordered_map> 109 static const IsoParticleTypeList &
list_all();
144 using std::runtime_error::runtime_error;
153 static bool exists(
const std::string &name);
256 #endif // SRC_INCLUDE_ISOPARTICLETYPE_H_ static const IsoParticleType & find(const std::string &name)
Returns the IsoParticleType object for the given name.
static IsoParticleType & find_private(const std::string &name)
Private version of the 'find' method that returns a non-const reference.
unsigned int spin() const
Returns twice the spin of the multiplet.
double get_integral_piR(double sqrts)
Look up the tabulated resonance integral for the XX -> piR cross section.
int isospin() const
Returns twice the total isospin of the multiplet.
double mass_
(average) mass of the multiplet
std::unordered_map< IsoParticleType *, TabulationPtr > XS_RR_tabulations
A tabulation list for the NN -> RR' cross sections, where R is this multiplet and R' is a baryon reso...
double get_integral_RR(const ParticleType &type_res_2, double sqrts)
Look up the tabulated resonance integral for the XX -> RR cross section.
Parity
Represent the parity of a particle type.
unsigned int spin_
twice the spin of the multiplet
double get_integral_NR(double sqrts)
Look up the tabulated resonance integral for the XX -> NR cross section.
double get_integral_RK(double sqrts)
Look up the tabulated resonance integral for the XX -> RK cross section.
double width() const
Returns the (average) multiplet width.
static bool exists(const std::string &name)
Returns whether the ParticleType with the given pdgcode exists.
IsoParticleType & operator=(const IsoParticleType &)=delete
Assignment is not allowed, see copy constructor above.
TabulationPtr XS_RK_tabulation_
A tabulation of the spectral integral for the NK -> RK cross sections.
Throw when requested particle could not be found.
ParticleTypePtrList states_
list of states that are contained in the multiplet
Particle type contains the static properties of a particle species.
IsoParticleType is a class to represent isospin multiplets.
double width_
(average) width of the multiplet
bool operator==(const IsoParticleType &rhs) const
Returns whether the two IsoParticleType objects have the same PDG code for their first state; if so...
std::string name_
name of the multiplet
static void create_multiplet(const ParticleType &type)
Add a new multiplet to the global list of IsoParticleTypes, which contains type.
const std::string & name() const
Returns the name of the multiplet.
TabulationPtr XS_DR_tabulation_
A tabulation for the NN -> DR cross sections, where R is a resonance from this multiplet.
void add_state(const ParticleType &type)
Add a new state to an existing multiplet (and check if isospin symmetry is fulfilled).
static const IsoParticleType * try_find(const std::string &name)
Returns the IsoParticleType pointer for the given name.
Parity parity_
parity of the multiplet
static const ParticleTypePtr find_state(const std::string &name)
Returns the ParticleType object for the given name, by first finding the correct multiplet and then l...
bool has_anti_multiplet() const
Check if there is a multiplet of antiparticles, which is different from the original multiplet...
TabulationPtr XS_NR_tabulation_
A tabulation for the NN -> NR cross sections, where R is a resonance from this multiplet.
TabulationPtr XS_piR_tabulation_
A tabulation of the spectral integral for the dpi -> d'pi cross sections.
IsoParticleType(const std::string &n, double m, double w, unsigned int s, Parity p)
Creates a fully initialized IsoParticleType object.
ParticleTypePtrList get_states() const
Returns list of states that form part of the multiplet.
A pointer-like interface to global references to ParticleType objects.
TabulationPtr integrate_RR(ParticleTypePtr &type_res_2)
Utility function to help compute various XX->RR spectral integrals.
static const IsoParticleTypeList & list_all()
Returns a list of all IsoParticleTypes.
double mass() const
Returns the (average) multiplet mass.