CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
corsika::qgsjetII::InteractionModel Class Reference
Inheritance diagram for corsika::qgsjetII::InteractionModel:

Public Member Functions

 InteractionModel (boost::filesystem::path dataPath=corsika_data("QGSJetII"))
 
bool isValid (Code const beamId, Code const targetId, HEPEnergyType const sqrtS) const
 Throws exception if invalid system is passed. More...
 
CrossSectionType getCrossSection (Code const projectile, Code const target, FourMomentum const &projectileP4, FourMomentum const &targetP4) const
 Return the QGSJETII inelastic/production cross section. More...
 
template<typename TSecondaries >
void doInteraction (TSecondaries &, Code const projectile, Code const target, FourMomentum const &projectileP4, FourMomentum const &targetP4)
 In this function QGSJETII is called to produce one event. More...
 

Detailed Description

Definition at line 26 of file InteractionModel.hpp.

Member Function Documentation

◆ doInteraction()

template<typename TSecondaries >
void corsika::qgsjetII::InteractionModel::doInteraction ( TSecondaries &  ,
Code const  projectile,
Code const  target,
FourMomentum const &  projectileP4,
FourMomentum const &  targetP4 
)

In this function QGSJETII is called to produce one event.

The event is copied (and boosted) into the shower lab frame.

◆ getCrossSection()

CrossSectionType corsika::qgsjetII::InteractionModel::getCrossSection ( Code const  projectile,
Code const  target,
FourMomentum const &  projectileP4,
FourMomentum const &  targetP4 
) const

Return the QGSJETII 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).

Parameters
projectileis the Code of the projectile
targetis the Code of the target
sqrtSnnis the center-of-mass energy (per nucleon pair)
Aprojectileis the mass number of the projectils, if it is a nucleus
Atargetis the mass number of the target, if it is a nucleus
Returns
inelastic cross section.

◆ isValid()

bool corsika::qgsjetII::InteractionModel::isValid ( Code const  beamId,
Code const  targetId,
HEPEnergyType const  sqrtS 
) const

Throws exception if invalid system is passed.

Parameters
beamId
targetId

The documentation for this class was generated from the following file: