|
CORSIKA
@c8_version@
The framework to simulate particle cascades for astroparticle physics
|
Provides the SOPHIA photon-nucleon interaction model. More...
#include <InteractionModel.hpp>
Public Member Functions | |
| void | setVerbose (bool const flag) |
| Set the Verbose flag. More... | |
| bool constexpr | isValid (Code const projectileId, Code const targetId, HEPEnergyType const sqrtSnn) const |
| evaluated validity of collision system. More... | |
| CrossSectionType | getCrossSection ([[maybe_unused]] Code const projectile, [[maybe_unused]] Code const target, [[maybe_unused]] FourMomentum const &projectileP4, [[maybe_unused]] FourMomentum const &targetP4) const |
| Returns inelastic (production) cross section. More... | |
| template<typename TSecondaries > | |
| void | doInteraction (TSecondaries &view, Code const projectile, Code const target, FourMomentum const &projectileP4, FourMomentum const &targetP4) |
| In this function SOPHIA is called to produce one event. More... | |
Provides the SOPHIA photon-nucleon interaction model.
This is a TModel argument for InteractionProcess<TModel>.
Definition at line 26 of file InteractionModel.hpp.
| void corsika::sophia::InteractionModel::doInteraction | ( | TSecondaries & | view, |
| Code const | projectile, | ||
| Code const | target, | ||
| FourMomentum const & | projectileP4, | ||
| FourMomentum const & | targetP4 | ||
| ) |
In this function SOPHIA is called to produce one event.
The event is copied (and boosted) into the frame of the incoming particles.
| view | is the stack object for the secondaries |
| projectile | is the Code of the projectile |
| target | is the Code of the target |
| projectileP4 | four-momentum of projectile |
| targetP4 | four-momentum of target |
|
inline |
Returns inelastic (production) cross section.
This cross section must correspond to the process described in doInteraction. Allowed targets are: nuclei or single nucleons (p,n,hydrogen).
| projectile | is the Code of the projectile |
| target | is the Code of the target |
| projectileP4 | four-momentum of projectile |
| targetP4 | four-momentum of target |
Definition at line 65 of file InteractionModel.hpp.
| bool constexpr corsika::sophia::InteractionModel::isValid | ( | Code const | projectileId, |
| Code const | targetId, | ||
| HEPEnergyType const | sqrtSnn | ||
| ) | const |
evaluated validity of collision system.
SOPHIA only accepts nucleons as targets, that is protons (Hydrogen) or neutrons.
| void corsika::sophia::InteractionModel::setVerbose | ( | bool const | flag | ) |
Set the Verbose flag.
If flag is true, SOPHIA will printout additional secondary particle information lists, etc.
| flag | to switch. |