CORSIKA8  0.0.0
The framework to simulate particle cascades for astroparticle physics
corsika::InteractionCounter< TCountedProcess > Class Template Reference

#include <InteractionCounter.hpp>

Inheritance diagram for corsika::InteractionCounter< TCountedProcess >:

Public Member Functions

 InteractionCounter (TCountedProcess &process)
 
template<typename TSecondaryView >
void doInteraction (TSecondaryView &view)
 wrapper around internall process doInteraction
 
template<typename TParticle >
GrammageType getInteractionLength (TParticle const &particle) const
 ! returns internal process getInteractionLength
 
InteractionHistogram const & getHistogram () const
 returns the filles histograms More...
 
- Public Member Functions inherited from corsika::InteractionProcess< InteractionCounter< TCountedProcess > >
InverseGrammageType getInverseInteractionLength (TParticle const &particle)
 

Additional Inherited Members

- Public Types inherited from corsika::BaseProcess< InteractionCounter< TCountedProcess > >
using process_type = InteractionCounter< TCountedProcess >
 Base processor type for use in other template classes.
 
- Static Public Attributes inherited from corsika::BaseProcess< InteractionCounter< TCountedProcess > >
static bool const is_process_sequence
 
static bool const is_switch_process_sequence
 
- Protected Member Functions inherited from corsika::BaseProcess< InteractionCounter< TCountedProcess > >
InteractionCounter< TCountedProcess > & ref ()
 
const InteractionCounter< TCountedProcess > & ref () const
 
- Protected Attributes inherited from corsika::BaseProcess< InteractionCounter< TCountedProcess > >
friend TDerived
 

Detailed Description

template<class TCountedProcess>
class corsika::InteractionCounter< TCountedProcess >

Wrapper around an InteractionProcess that fills histograms of the number of calls to doInteraction() binned in projectile energy (both in lab and center-of-mass frame) and species

Use by wrapping a normal InteractionProcess

InteractionProcess collision1;
InteractionClounter<collision1> counted_collision1;

Definition at line 32 of file InteractionCounter.hpp.

Member Function Documentation

◆ getHistogram()

template<class TCountedProcess >
InteractionHistogram const& corsika::InteractionCounter< TCountedProcess >::getHistogram ( ) const

returns the filles histograms

Returns
InteractionHistogram, which contains the histogram data

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