CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
corsika::IMediumModel Class Referenceabstract

Public Member Functions

virtual MassDensityType getMassDensity (Point const &) const =0
 
virtual GrammageType getIntegratedGrammage (BaseTrajectory const &) const =0
 Integrate the matter density along trajectory. More...
 
virtual LengthType getArclengthFromGrammage (BaseTrajectory const &, GrammageType) const =0
 Calculates the length along the trajectory. More...
 
virtual NuclearComposition const & getNuclearComposition () const =0
 

Detailed Description

Definition at line 18 of file IMediumModel.hpp.

Member Function Documentation

◆ getArclengthFromGrammage()

virtual LengthType corsika::IMediumModel::getArclengthFromGrammage ( BaseTrajectory const &  ,
GrammageType   
) const
pure virtual

Calculates the length along the trajectory.

The length along the trajectory is determined at which the integrated matter density is reached. If the specified matter density cannot be reached (is too large) the result becomes meaningless and could be "infinity" (discuss this).

Returns
LengthType the length corresponding to grammage.

◆ getIntegratedGrammage()

virtual GrammageType corsika::IMediumModel::getIntegratedGrammage ( BaseTrajectory const &  ) const
pure virtual

Integrate the matter density along trajectory.

Returns
GrammageType as integrated matter density along the BaseTrajectory
Todo:
think about the mixin inheritance of the trajectory vs the BaseTrajectory approach; for now, only lines are supported (?).

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