IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 52625005 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

brief documentation

parent 9f45dc69
No related branches found
No related tags found
No related merge requests found
......@@ -15,11 +15,16 @@
#include <corsika/modules/sibyll/NuclearInteractionModel.hpp>
namespace corsika::sibyll {
/**
* This class combines sibyll::HadronInteractionModel, which can only handle hadron
* projectiles, and sibyll::NuclearInteractionModel, which can handle only nucleus
* projectile, into a single process. The getCrossSection() and doInteraction() methods
* forward to the underlying models, depending on the projectile type.
*/
class InteractionModel {
public:
using nuclear_model_type =
NuclearInteractionModel<HadronInteractionModel>;
using nuclear_model_type = NuclearInteractionModel<HadronInteractionModel>;
template <typename TEnvironment>
InteractionModel(TEnvironment const&);
......@@ -32,7 +37,7 @@ namespace corsika::sibyll {
HadronInteractionModel& getHadronInteractionModel();
HadronInteractionModel const& getHadronInteractionModel() const;
nuclear_model_type& getNuclearInteractionModel();
nuclear_model_type& getNuclearInteractionModel();
nuclear_model_type const& getNuclearInteractionModel() const;
private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment