CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
corsika::InteractionHistogram Class Reference

Class that creates and stores histograms of collisions \(dN/dE_{lab}\), \(dN/d\sqrt{s}\) which is used by class InteractionCounter. More...

#include <InteractionHistogram.hpp>

Public Member Functions

void fill (Code const projectile_id, HEPEnergyType const lab_energy, HEPEnergyType const mass_target)
 fill both CMS and lab histograms at the same time More...
 
hist_type const & CMSHist () const
 return histogram in c.m.s. frame
 
hist_type const & labHist () const
 return histogram in laboratory frame
 
InteractionHistogramoperator+= (InteractionHistogram const &other)
 
InteractionHistogram operator+ (InteractionHistogram other) const
 

Detailed Description

Class that creates and stores histograms of collisions \(dN/dE_{lab}\), \(dN/d\sqrt{s}\) which is used by class InteractionCounter.

Histograms are of type boost::histogram

Definition at line 37 of file InteractionHistogram.hpp.

Member Function Documentation

◆ fill()

void corsika::InteractionHistogram::fill ( Code const  projectile_id,
HEPEnergyType const  lab_energy,
HEPEnergyType const  mass_target 
)

fill both CMS and lab histograms at the same time

Parameters
projectile_idcorsika::Code of particle
lab_energyEnergy in lab. frame
mass_targetMass of target particle
Aif projectile_id is Nucleus : Mass of nucleus
Zif projectile_id is Nucleus : Charge of nucleus

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