CORSIKA add-on package IACT/ATMO:
Version 1.63 (November 2020)
|
A (non-functional) skeleton program for reading CORSIKA IACT data. More...
#include "initial.h"
#include "io_basic.h"
#include "mc_tel.h"
#include "fileopen.h"
#include "atmo.h"
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 |
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 |
This file contains a (non-functional) skeleton of the telescope simulation. It serves only as an illustration of the essential usage of CORSIKA related eventio functions to read CORSIKA data in eventio format and how some of the required values are extracted. Comment lines with '...' usually indicate that you should fill in relevant code yourself.
This file comes with no warranties.
If you want a working program using the same interfaces, look for sim_telarray.