|
CORSIKA8
0.0.0
The framework to simulate particle cascades for astroparticle physics
|
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 projectile_id, HEPEnergyType lab_energy, HEPEnergyType mass_target, int A=0, int Z=0) |
| 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 | |
| InteractionHistogram & | operator+= (InteractionHistogram const &other) |
| InteractionHistogram | operator+ (InteractionHistogram other) const |
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.
| void corsika::InteractionHistogram::fill | ( | Code | projectile_id, |
| HEPEnergyType | lab_energy, | ||
| HEPEnergyType | mass_target, | ||
| int | A = 0, |
||
| int | Z = 0 |
||
| ) |
fill both CMS and lab histograms at the same time
| projectile_id | corsika::Code of particle |
| lab_energy | Energy in lab. frame |
| mass_target | Mass of target particle |
| A | if projectile_id is corsika::Nucleus : Mass of nucleus |
| Z | if projectile_id is corsika::Nucleus : Charge of nucleus |