CORSIKA add-on package IACT/ATMO:  Version 1.63 (November 2020)
Data Structures | Macros | Functions | Variables
The sim_skeleton program

Data Structures

struct  camera_electronics
 Parameters of the electronics of a telescope. More...
 
struct  mc_options
 Options of the simulation passed through to low-level functions. More...
 
struct  mc_run
 Basic parameters of the CORSIKA run. More...
 
struct  pm_camera
 Parameters of a telescope camera (pixels, ...) More...
 
struct  simulated_shower_parameters
 Basic parameters of a simulated shower. More...
 
struct  telescope_array
 Description of telescope position, array offets and shower parameters. More...
 
struct  telescope_optics
 Parameters describing the telescope optics. More...
 

Macros

#define MAX_ARRAY   100
 The largest no. More...
 
#define MAX_BUNCHES   2500000
 

Change the following limits as appropriate <<<<

More...
 
#define MAX_PHOTOELECTRONS   1000000 /** The largest number of photo-electrons. */
 
#define MAX_PIXELS   1024
 The largest no. More...
 
#define MAX_TEL   16
 The largest no. More...
 
#define Nair(hkm)   (1.+0.0002814*exp(-0.0947982*(hkm)-0.00134614*(hkm)*(hkm)))
 Refraction index of air as a function of height in km (0km<=h<=8km)
 

Functions

double atmospheric_transmission (int iwl, double zem, double airmass)
 
void atmset_ (int *iatmo, double *obslev)
 Set number of atmospheric model profile to be used. More...
 
double find_max_pos (double *y, int n)
 
double heigh_ (double *x)
 The CORSIKA built-in function for the height as a function of overburden. More...
 
double line_point_distance (double x1, double y1, double z1, double cx, double cy, double cz, double x, double y, double z)
 Distance between a straight line and a point in space. More...
 
int main (int argc, char **argv)
 Main program of Cherenkov telescope simulation.
 
double RandFlat (void)
 
double rhof_ (double *h)
 The CORSIKA built-in density lookup function. More...
 
double thick_ (double *h)
 The CORSIKA built-in function for vertical atmospheric thickness (overburden). More...
 

Variables

static double airlightspeed = 29.9792458/1.0002256
 
struct linked_string corsika_inputs
 

Detailed Description

Macro Definition Documentation

◆ MAX_ARRAY

#define MAX_ARRAY   100

of arrays to be handled

◆ MAX_BUNCHES

#define MAX_BUNCHES   2500000

The largest no. of bunches that can be handled.

◆ MAX_PIXELS

#define MAX_PIXELS   1024

of pixels per camers

◆ MAX_TEL

#define MAX_TEL   16

of telescopes/array.

Function Documentation

◆ atmset_()

void atmset_ ( int *  iatmo,
double *  obslev 
)

The atmospheric model is initialized first before the interpolating functions can be used. For efficiency reasons, the functions rhofx_(), thickx_(), ... don't check if the initialisation was done.

This function is called if the 'ATMOSPHERE' keyword is present in the CORSIKA input file.

The function may be called from CORSIKA to initialize the atmospheric model via 'CALL ATMSET(IATMO,OBSLEV)' or such.

Parameters
iatmo(pointer to) atmospheric profile number; negative for CORSIKA built-in profiles.
obslev(pointer to) altitude of observation level [cm]
Returns
(none)

◆ heigh_()

double heigh_ ( double *  thick)

References heighx_().

Here is the caller graph for this function:

◆ line_point_distance()

double line_point_distance ( double  x1,
double  y1,
double  z1,
double  cx,
double  cy,
double  cz,
double  x,
double  y,
double  z 
)
Parameters
x1,y1,z1reference point on the line
cx,cy,czdirection cosines of the line
x,y,zpoint in space
Returns
distance

◆ rhof_()

double rhof_ ( double *  height)

References rhofx_().

◆ thick_()

double thick_ ( double *  height)