CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
corsika::CONEXhybrid< TOutputE, TOutputN > Class Template Reference

Access to the CONEX model. More...

#include <CONEXhybrid.hpp>

Inheritance diagram for corsika::CONEXhybrid< TOutputE, TOutputN >:

Public Member Functions

 CONEXhybrid (Point const &center, ShowerAxis const &showerAxis, LengthType groundDist, LengthType injectionHeight, HEPEnergyType primaryEnergy, PDGCode pdg, TOutputE &outputE, TOutputN &outputN)
 Constructor with output sink specified. More...
 
template<typename TStackView >
void doSecondaries (TStackView &)
 
void initCascadeEquations ()
 init currently needs to be called to initializa a new event. More...
 
template<typename TStack >
void doCascadeEquations (TStack &stack)
 Cascade equations are solved basoned on the data in the tables.
 
bool addParticle (Code pid, HEPEnergyType energy, HEPEnergyType mass, Point const &position, Vector< dimensionless_d > const &direction, TimeType t, double weight=1)
 Internal function to fill particle data inside CONEX tables. More...
 
CoordinateSystemPtr const & getObserverCS () const
 
YAML::Node getConfig () const final override
 Provide YAML configuration for this BaseOutput.
 
- Public Member Functions inherited from corsika::SubWriter< TOutputE >
 SubWriter (TOutputE &output)
 
void write (TArgs &&... args)
 
- Public Member Functions inherited from corsika::SubWriter< TOutputN >
 SubWriter (TOutputN &output)
 
void write (TArgs &&... args)
 

Additional Inherited Members

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

Detailed Description

template<typename TOutputE, typename TOutputN>
class corsika::CONEXhybrid< TOutputE, TOutputN >

Access to the CONEX model.

The fortran version of CONEX is interfaced. This is a SecondariesProcess since it skims the Stack for input particles (specific energies, or types) in order to fill internal CONEX source tables. CONEX is the called after the Cascade is finished to do a CascadeEquations step. This typically produces output data, and in addition can even generate new secondaries on the main Stack.

Note that the output is processed by SubWriter<TOutputE/N>. The SubWriters have to be initialized with valid objects of type TOutputE/N at construction time.If no output is wished, WriterOff can be used for this purpose.

Template Parameters
TOutputE– Output writer for dEdX data.
TOutputN– Output writer for particle number profile data.

Definition at line 53 of file CONEXhybrid.hpp.

Constructor & Destructor Documentation

◆ CONEXhybrid()

template<typename TOutputE , typename TOutputN >
corsika::CONEXhybrid< TOutputE, TOutputN >::CONEXhybrid ( Point const &  center,
ShowerAxis const &  showerAxis,
LengthType  groundDist,
LengthType  injectionHeight,
HEPEnergyType  primaryEnergy,
PDGCode  pdg,
TOutputE &  outputE,
TOutputN &  outputN 
)

Constructor with output sink specified.

The output will be generated by the output sink.

Parameters
centercenter of earth.
showerAxisshower axis to convert geometry to grammage.
groundDistdistance to ground.
injectionHeightheight of injection.
primaryEnergyenergy of primary particle
pdgtype of primary particle.
outputEobject to initialized SubWriter<TOutputE>
outputNobject to initialized SubWriter<TOutputN>

Member Function Documentation

◆ addParticle()

template<typename TOutputE , typename TOutputN >
bool corsika::CONEXhybrid< TOutputE, TOutputN >::addParticle ( Code  pid,
HEPEnergyType  energy,
HEPEnergyType  mass,
Point const &  position,
Vector< dimensionless_d > const &  direction,
TimeType  t,
double  weight = 1 
)

Internal function to fill particle data inside CONEX tables.

Only e.m. particles are selected right now.

◆ initCascadeEquations()

template<typename TOutputE , typename TOutputN >
void corsika::CONEXhybrid< TOutputE, TOutputN >::initCascadeEquations ( )

init currently needs to be called to initializa a new event.

All tables are cleared, etc.


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