CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
Random.hpp File Reference

This file is an integral part of the epos interface. More...

#include <corsika/framework/random/RNGManager.hpp>
#include <random>
Include dependency graph for Random.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

float conex::rndm_interface ()
 This is the random number hook to external packages. More...
 
double conex::double_rndm_interface ()
 This is the random number hook to external packages. More...
 

Detailed Description

This file is an integral part of the epos interface.

It must be linked to the executable linked to epos exactly once.

Note, that the fortran random numbe interface functions are all defined in the epos corsika 8 interface:

ranfst, ranfgt, rmmaqd, ranfini, ranfcv, rmmard, rangen, drangen

All of them use the epos_random_interface registered as "epos" stream.

Thus, the fortran part of CONEX will use the "epos" CORSIKA 8 random stream, only the CONEX c++ part will use the "conex" random stream.

Since EPOS and CONEX use the same fortran symbols for access to random numbers this can only be changed by renaming inside the fortran part.

Definition in file Random.hpp.

Function Documentation

◆ double_rndm_interface()

double conex::double_rndm_interface ( )

This is the random number hook to external packages.

CORSIKA8, for example, has to provide an implementation of this.

Definition at line 45 of file Random.hpp.

◆ rndm_interface()

float conex::rndm_interface ( )

This is the random number hook to external packages.

CORSIKA8, for example, has to provide an implementation of this.

Definition at line 38 of file Random.hpp.