CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
corsika::InteractionCounter< TCountedProcess > Class Template Reference

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. More...

#include <InteractionCounter.hpp>

Inheritance diagram for corsika::InteractionCounter< TCountedProcess >:

Public Member Functions

 InteractionCounter (TCountedProcess &process)
 
template<typename TSecondaryView >
void doInteraction (TSecondaryView &view, Code const, Code const, FourMomentum const &, FourMomentum const &)
 Wrapper around internal process doInteraction.
 
CrossSectionType getCrossSection (Code const, Code const, FourMomentum const &, FourMomentum const &) const
 Wrapper around internal process getCrossSection.
 
InteractionHistogram const & getHistogram () const
 returns the filles histograms. More...
 

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 > & getRef ()
 
const InteractionCounter< TCountedProcess > & getRef () 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 33 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: