AiresWrapper.h
Go to the documentation of this file.
1 #ifndef _io_AiresWrapper_h_
2 #define _io_AiresWrapper_h_
3 
4 /***************************************************************************
5  AiresWrapper.h - description
6  -------------------
7  begin : Mon Jun 02 2003
8  author : Troy Porter
9  email : tporter@lsu.edu
10  ***************************************************************************/
11 
12 
13 namespace io {
14 
23  class AiresWrapper {
24 
25  public:
26  static void ciorinit(int* inilevel, int* codsys, int* vrb, int* irc);
27  static void ciorshutdown();
28  static void cioclose();
29  static void cioclose1(int* channel);
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);
33  static int crofileversion(int* channel);
34  static bool crogotorec(int* channel, int* recnumber, int* vrb, int* irc);
35  static void croheader1info(int* ouflag);
36  static void croheaderinfo(int* ouflag, int* vrb, int* irc);
37  static void croinputdata0(int* intdata, // array
38  double* realdata, // array
39  int* shprimcode, // array
40  double* shprimwt); // array
41  static void crooldata(int* vrb, int* nobslev,
42  double* olzv, // array
43  double* oldepth, // array
44  int* irc);
45  static void croreccount(int* channel, int* vrb, int* nrtype,
46  int* nrec, // array
47  int* irc);
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,
51  int* vrb, int* irc);
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,
56  char* startdate);
57  static void fitghf(int* bodata0, int* eodata0,
58  double* depths, // array
59  double* nallch, // array
60  double* weights, // array
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);
65  static bool getcrorecord(int* channel,
66  int* intfields, // array
67  double* realfields, // array
68  bool *altrec,
69  int* vrb, int* irc);
70  static bool getcrorectype(int* channel, int* vrb, int* infield1,
71  int* rectype);
72  static int getinpintc(char *dirname);
73  static double getinprealc(char *dirname);
74  static void getinpstringc(char *dirname, char *value, int* slen);
75  static bool getinpswitchc(char *dirname);
76  static double grandom();
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,
80  double* olzv, // array
81  double* groundz, double* injz,
82  double* zenith, double* azimuth,
83  double* xaxis, // array
84  double* yaxis, // array
85  double* zaxis, // array
86  double* tshift, // array
87  double* mx, // array
88  double* my, // array
89  int* irc);
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);
94  static void olv2slant(int* nobslev,
95  double* olxv, // array
96  double* Xv0, int* zendis,
97  double* zen1, double* zen2, double* groundz,
98  double* olxs); // array
99  static void opencrofilec(const char *wdir, const char *filename,
100  int* header1, int* logbase, int* vrb,
101  int* channel, int* irc);
102  static void raninit(double* seed);
103  static bool regetcrorecord(int* channel,
104  int* intfields, // array
105  double* realfields, // array
106  bool *altrec, int* vrb, int* irc);
107  static void sp1stint(int* csys, double* x1, double* y1, double* z1,
108  int* irc);
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,
112  int* irc);
113  static void spaddpn(int* n,
114  int* pcode, // array
115  double* pener, // array
116  int* cys, int* ldu,
117  double* *uxyz, // array of vectors
118  double* pwt, // array
119  int* irc);
120  static void speiend(int* retcode);
121  static void speigetmodnamec(char *mn, int* mnlen, char *mnfull,
122  int* mnfullen);
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,
128  double* injpos, // 3 element array
129  double* xvinj,
130  double* zground, double* xvground,
131  double* dgroundinj,
132  double* uprim); // 3 element array
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);
136  static int thisairesversion();
137  static double urandom();
138  static double xslant(double* Xvert, double* Xv0,
139  double* cozenith, double* zground);
140 
141 
142  private:
143  AiresWrapper();
144  ~AiresWrapper();
145 
146  static bool fInitialised;
147  static unsigned int fNumberOfOpenFiles;
148 
149  };
150 
151 }
152 
153 #endif
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.
Definition: AiresWrapper.h:23
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 void cioclose()
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 fInitialised
Definition: AiresWrapper.h:146
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
Definition: AiresWrapper.h:147
static void speiend(int *retcode)
static bool getinpswitchc(char *dirname)
static double grandom()
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)
char * filename
Definition: dump1090.h:266
static double urandom()
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)

, generated on Tue Sep 26 2023.