1 #ifndef _io_AiresWrapper_h_
2 #define _io_AiresWrapper_h_
26 static void ciorinit(
int* inilevel,
int* codsys,
int* vrb,
int* irc);
30 static int crofieldindex(
int* channel,
int* rectype,
const char* fieldname,
31 int* vrb,
int* datype,
int* irc);
32 static void crofileinfo(
int* channel,
int* ouflag,
int*vrb,
int* irc);
34 static bool crogotorec(
int* channel,
int* recnumber,
int* vrb,
int* irc);
41 static void crooldata(
int* vrb,
int* nobslev,
45 static void croreccount(
int* channel,
int* vrb,
int* nrtype,
48 static bool crorecfind(
int* channel,
int* intype,
int* vrb,
49 int* infield1,
int* rectype);
50 static void crorecninfo(
int* channel,
int* poskey,
int* ouflag,
52 static int crorecnumber(
int* channel,
int* vrb,
int* irc);
53 static void crorewind(
int* channel,
int* vrb,
int* irc);
54 static bool crospcode(
int* pcode,
int* splabel);
55 static void crotaskidc(
char* taskname,
int* namelen,
int* taskversion,
57 static void fitghf(
int* bodata0,
int* eodata0,
61 int* ws,
double* minnmax,
double* nminratio,
62 int* bodataeff,
int* eodataeff,
double* nmax,
63 double* xmax,
double* x0,
double* lambda,
64 double* sqsum,
int* irc);
70 static bool getcrorectype(
int* channel,
int* vrb,
int* infield1,
74 static void getinpstringc(
char *dirname,
char *value,
int* slen);
77 static int nuclcode(
int* z,
int* n,
int* irc);
78 static void nucldecode(
int* ncode,
int* z,
int* n,
int*
a);
79 static void olcoord(
int* nobslev,
81 double* groundz,
double* injz,
82 double* zenith,
double* azimuth,
90 static void olcrossed(
int* olkey,
int* updown,
int* firstol,
int* lastol);
91 static void olcrossedu(
int* olkey,
double* ux,
double* uy,
double* uz,
92 int* firstol,
int* lastol);
93 static bool olsavemarked(
int* obslev,
int* vrb,
int* irc);
96 double* Xv0,
int* zendis,
97 double* zen1,
double* zen2,
double* groundz,
100 int* header1,
int* logbase,
int* vrb,
101 int* channel,
int* irc);
102 static void raninit(
double* seed);
106 bool *altrec,
int* vrb,
int* irc);
107 static void sp1stint(
int* csys,
double* x1,
double* y1,
double* z1,
109 static void spaddnull(
double* pener,
double* pwt,
int* irc);
110 static void spaddp0(
int* pcode,
double* pener,
int* csys,
111 double* ux,
double* uy,
double* uz,
double* pwt,
120 static void speiend(
int* retcode);
123 static void speigetparsc(
char *parstring,
int* pstrlen);
124 static void speimv(
int* mvnew,
int* mvold);
125 static void spinjpoint(
int* csys,
double* x0,
double* y0,
double* z0,
126 int* tsw,
double* t0beta,
int* irc);
127 static void speistart(
int* showerno,
double* primener,
130 double* zground,
double* xvground,
133 static void speitaskc(
char *taskn,
int* tasklen,
int* tver);
134 static void spnshowers(
int* totsh,
int* firstsh,
int* lastsh);
135 static void sprimname(
char *pname,
int* pnamelen);
138 static double xslant(
double* Xvert,
double* Xv0,
139 double* cozenith,
double* zground);
static void raninit(double *seed)
static void spaddp0(int *pcode, double *pener, int *csys, double *ux, double *uy, double *uz, double *pwt, int *irc)
static void crorecninfo(int *channel, int *poskey, int *ouflag, int *vrb, int *irc)
static double getinprealc(char *dirname)
static void getinpstringc(char *dirname, char *value, int *slen)
static void opencrofilec(const char *wdir, const char *filename, int *header1, int *logbase, int *vrb, int *channel, int *irc)
static int crorecnumber(int *channel, int *vrb, int *irc)
static void spnshowers(int *totsh, int *firstsh, int *lastsh)
static int thisairesversion()
static void crooldata(int *vrb, int *nobslev, double *olzv, double *oldepth, int *irc)
static void speistart(int *showerno, double *primener, double *injpos, double *xvinj, double *zground, double *xvground, double *dgroundinj, double *uprim)
static void olv2slant(int *nobslev, double *olxv, double *Xv0, int *zendis, double *zen1, double *zen2, double *groundz, double *olxs)
static void nucldecode(int *ncode, int *z, int *n, int *a)
static void spaddnull(double *pener, double *pwt, int *irc)
static bool getcrorectype(int *channel, int *vrb, int *infield1, int *rectype)
static void olcoord(int *nobslev, double *olzv, double *groundz, double *injz, double *zenith, double *azimuth, double *xaxis, double *yaxis, double *zaxis, double *tshift, double *mx, double *my, int *irc)
static void sprimname(char *pname, int *pnamelen)
static void crofileinfo(int *channel, int *ouflag, int *vrb, int *irc)
static int crofileversion(int *channel)
static void cioclose1(int *channel)
static int getinpintc(char *dirname)
static void crorewind(int *channel, int *vrb, int *irc)
static void spaddpn(int *n, int *pcode, double *pener, int *cys, int *ldu, double **uxyz, double *pwt, int *irc)
C++ wrapper for Aires C functions.
static void speimv(int *mvnew, int *mvold)
static bool olsavemarked(int *obslev, int *vrb, int *irc)
static void sp1stint(int *csys, double *x1, double *y1, double *z1, int *irc)
static void speigetmodnamec(char *mn, int *mnlen, char *mnfull, int *mnfullen)
static int nuclcode(int *z, int *n, int *irc)
static void fitghf(int *bodata0, int *eodata0, double *depths, double *nallch, double *weights, int *ws, double *minnmax, double *nminratio, int *bodataeff, int *eodataeff, double *nmax, double *xmax, double *x0, double *lambda, double *sqsum, int *irc)
static void olcrossed(int *olkey, int *updown, int *firstol, int *lastol)
static void ciorshutdown()
static int crofieldindex(int *channel, int *rectype, const char *fieldname, int *vrb, int *datype, int *irc)
static void croheader1info(int *ouflag)
static void croinputdata0(int *intdata, double *realdata, int *shprimcode, double *shprimwt)
static bool crorecfind(int *channel, int *intype, int *vrb, int *infield1, int *rectype)
static void croreccount(int *channel, int *vrb, int *nrtype, int *nrec, int *irc)
static bool crogotorec(int *channel, int *recnumber, int *vrb, int *irc)
static unsigned int fNumberOfOpenFiles
static void speiend(int *retcode)
static bool getinpswitchc(char *dirname)
static void croheaderinfo(int *ouflag, int *vrb, int *irc)
static void spinjpoint(int *csys, double *x0, double *y0, double *z0, int *tsw, double *t0beta, int *irc)
static void olcrossedu(int *olkey, double *ux, double *uy, double *uz, int *firstol, int *lastol)
static void speigetparsc(char *parstring, int *pstrlen)
static void ciorinit(int *inilevel, int *codsys, int *vrb, int *irc)
static double xslant(double *Xvert, double *Xv0, double *cozenith, double *zground)
static void crotaskidc(char *taskname, int *namelen, int *taskversion, char *startdate)
static bool crospcode(int *pcode, int *splabel)
static void speitaskc(char *taskn, int *tasklen, int *tver)
static bool regetcrorecord(int *channel, int *intfields, double *realfields, bool *altrec, int *vrb, int *irc)
static bool getcrorecord(int *channel, int *intfields, double *realfields, bool *altrec, int *vrb, int *irc)