CORSIKA add-on package IACT/ATMO:  Version 1.63 (November 2020)
sampling.h
Go to the documentation of this file.
1 /* ============================================================================
2 
3  Copyright (C) 1997, 1998, ..., 2010 Konrad Bernloehr
4 
5  This file is part of sim_telarray (also known as sim_hessarray).
6 
7  The software in this file is free software: you can redistribute it
8  and/or modify it under the terms of the GNU General Public License
9  as published by the Free Software Foundation, either version 3 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>.
19 
20 ============================================================================ */
21 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 void sample_offset (const char *sampling_fname, double core_range,
29  double theta, double phi,
30  double thetaref, double phiref, double offax,
31  double E, int primary,
32  double *xoff, double *yoff, double *sampling_area);
33 
34 #ifdef __cplusplus
35 }
36 #endif
static char * sampling_fname
The name of the file providing parameters for importance sampling.
Definition: iact.c:373
void sample_offset(const char *sampling_fname, double core_range, double theta, double phi, double thetaref, double phiref, double offax, double E, int primary, double *xoff, double *yoff, double *sampling_area)
Get uniformly sampled or importance sampled offset of array with respect to core, in the plane perpen...
Definition: sampling.c:325
static double core_range
The maximum core offset of array centres in circular distribution.
Definition: iact.c:342