List of all members | Static Public Member Functions | Private Member Functions | Static Private Attributes
io::AiresWrapper Class Reference

C++ wrapper for Aires C functions. More...

#include <AiresWrapper.h>

Static Public Member Functions

static void cioclose ()
 
static void cioclose1 (int *channel)
 
static void ciorinit (int *inilevel, int *codsys, int *vrb, int *irc)
 
static void ciorshutdown ()
 
static int crofieldindex (int *channel, int *rectype, const char *fieldname, int *vrb, int *datype, int *irc)
 
static void crofileinfo (int *channel, int *ouflag, int *vrb, int *irc)
 
static int crofileversion (int *channel)
 
static bool crogotorec (int *channel, int *recnumber, int *vrb, int *irc)
 
static void croheader1info (int *ouflag)
 
static void croheaderinfo (int *ouflag, int *vrb, int *irc)
 
static void croinputdata0 (int *intdata, double *realdata, int *shprimcode, double *shprimwt)
 
static void crooldata (int *vrb, int *nobslev, double *olzv, double *oldepth, int *irc)
 
static void croreccount (int *channel, int *vrb, int *nrtype, int *nrec, int *irc)
 
static bool crorecfind (int *channel, int *intype, int *vrb, int *infield1, int *rectype)
 
static void crorecninfo (int *channel, int *poskey, int *ouflag, int *vrb, int *irc)
 
static int crorecnumber (int *channel, int *vrb, int *irc)
 
static void crorewind (int *channel, int *vrb, int *irc)
 
static bool crospcode (int *pcode, int *splabel)
 
static void crotaskidc (char *taskname, int *namelen, int *taskversion, char *startdate)
 
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 bool getcrorecord (int *channel, int *intfields, double *realfields, bool *altrec, int *vrb, int *irc)
 
static bool getcrorectype (int *channel, int *vrb, int *infield1, int *rectype)
 
static int getinpintc (char *dirname)
 
static double getinprealc (char *dirname)
 
static void getinpstringc (char *dirname, char *value, int *slen)
 
static bool getinpswitchc (char *dirname)
 
static double grandom ()
 
static int nuclcode (int *z, int *n, int *irc)
 
static void nucldecode (int *ncode, int *z, int *n, int *a)
 
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 olcrossed (int *olkey, int *updown, int *firstol, int *lastol)
 
static void olcrossedu (int *olkey, double *ux, double *uy, double *uz, int *firstol, int *lastol)
 
static bool olsavemarked (int *obslev, int *vrb, int *irc)
 
static void olv2slant (int *nobslev, double *olxv, double *Xv0, int *zendis, double *zen1, double *zen2, double *groundz, double *olxs)
 
static void opencrofilec (const char *wdir, const char *filename, int *header1, int *logbase, int *vrb, int *channel, int *irc)
 
static void raninit (double *seed)
 
static bool regetcrorecord (int *channel, int *intfields, double *realfields, bool *altrec, int *vrb, int *irc)
 
static void sp1stint (int *csys, double *x1, double *y1, double *z1, int *irc)
 
static void spaddnull (double *pener, double *pwt, int *irc)
 
static void spaddp0 (int *pcode, double *pener, int *csys, double *ux, double *uy, double *uz, double *pwt, int *irc)
 
static void spaddpn (int *n, int *pcode, double *pener, int *cys, int *ldu, double **uxyz, double *pwt, int *irc)
 
static void speiend (int *retcode)
 
static void speigetmodnamec (char *mn, int *mnlen, char *mnfull, int *mnfullen)
 
static void speigetparsc (char *parstring, int *pstrlen)
 
static void speimv (int *mvnew, int *mvold)
 
static void speistart (int *showerno, double *primener, double *injpos, double *xvinj, double *zground, double *xvground, double *dgroundinj, double *uprim)
 
static void speitaskc (char *taskn, int *tasklen, int *tver)
 
static void spinjpoint (int *csys, double *x0, double *y0, double *z0, int *tsw, double *t0beta, int *irc)
 
static void spnshowers (int *totsh, int *firstsh, int *lastsh)
 
static void sprimname (char *pname, int *pnamelen)
 
static int thisairesversion ()
 
static double urandom ()
 
static double xslant (double *Xvert, double *Xv0, double *cozenith, double *zground)
 

Private Member Functions

 AiresWrapper ()
 
 ~AiresWrapper ()
 

Static Private Attributes

static bool fInitialised = false
 
static unsigned int fNumberOfOpenFiles = 0
 

Detailed Description

C++ wrapper for Aires C functions.

Author
Troy Porter

Definition at line 23 of file AiresWrapper.h.

Constructor & Destructor Documentation

io::AiresWrapper::AiresWrapper ( )
private
io::AiresWrapper::~AiresWrapper ( )
private

Member Function Documentation

void AiresWrapper::cioclose ( )
static

Definition at line 177 of file AiresWrapper.cc.

References AiresF77Mapping::cioclose_().

void AiresWrapper::cioclose1 ( int *  channel)
static

Definition at line 185 of file AiresWrapper.cc.

References AiresF77Mapping::cioclose1_().

Referenced by io::AiresShowerFile::Close().

void AiresWrapper::ciorinit ( int *  inilevel,
int *  codsys,
int *  vrb,
int *  irc 
)
static

Definition at line 156 of file AiresWrapper.cc.

References AiresF77Mapping::ciorinit_().

Referenced by io::AiresShowerFile::Open().

void AiresWrapper::ciorshutdown ( )
static

Definition at line 170 of file AiresWrapper.cc.

References AiresF77Mapping::ciorshutdown_().

Referenced by io::AiresShowerFile::Close().

int AiresWrapper::crofieldindex ( int *  channel,
int *  rectype,
const char *  fieldname,
int *  vrb,
int *  datype,
int *  irc 
)
static

Definition at line 196 of file AiresWrapper.cc.

References AiresF77Mapping::crofieldindexc().

Referenced by io::AiresShowerFile::SetRecordIndices().

void AiresWrapper::crofileinfo ( int *  channel,
int *  ouflag,
int *  vrb,
int *  irc 
)
static

Definition at line 207 of file AiresWrapper.cc.

References AiresF77Mapping::crofileinfo_().

int AiresWrapper::crofileversion ( int *  channel)
static

Definition at line 215 of file AiresWrapper.cc.

References AiresF77Mapping::crofileversion_().

bool AiresWrapper::crogotorec ( int *  channel,
int *  recnumber,
int *  vrb,
int *  irc 
)
static
void AiresWrapper::croheader1info ( int *  ouflag)
static

Definition at line 232 of file AiresWrapper.cc.

References AiresF77Mapping::croheader1info_().

void AiresWrapper::croheaderinfo ( int *  ouflag,
int *  vrb,
int *  irc 
)
static

Definition at line 240 of file AiresWrapper.cc.

References AiresF77Mapping::croheaderinfo_().

void AiresWrapper::croinputdata0 ( int *  intdata,
double *  realdata,
int *  shprimcode,
double *  shprimwt 
)
static

Definition at line 248 of file AiresWrapper.cc.

References AiresF77Mapping::croinputdata0_().

Referenced by io::AiresShowerFile::Open().

void AiresWrapper::crooldata ( int *  vrb,
int *  nobslev,
double *  olzv,
double *  oldepth,
int *  irc 
)
static

Definition at line 258 of file AiresWrapper.cc.

References AiresF77Mapping::crooldata_().

void AiresWrapper::croreccount ( int *  channel,
int *  vrb,
int *  nrtype,
int *  nrec,
int *  irc 
)
static
bool AiresWrapper::crorecfind ( int *  channel,
int *  intype,
int *  vrb,
int *  infield1,
int *  rectype 
)
static
void AiresWrapper::crorecninfo ( int *  channel,
int *  poskey,
int *  ouflag,
int *  vrb,
int *  irc 
)
static

Definition at line 288 of file AiresWrapper.cc.

References AiresF77Mapping::crorecninfo_().

int AiresWrapper::crorecnumber ( int *  channel,
int *  vrb,
int *  irc 
)
static
void AiresWrapper::crorewind ( int *  channel,
int *  vrb,
int *  irc 
)
static

Definition at line 306 of file AiresWrapper.cc.

References AiresF77Mapping::crorewind_().

Referenced by io::AiresShowerFile::SetRecordInformation().

bool AiresWrapper::crospcode ( int *  pcode,
int *  splabel 
)
static

Definition at line 314 of file AiresWrapper.cc.

References AiresF77Mapping::crospcode_().

void AiresWrapper::crotaskidc ( char *  taskname,
int *  namelen,
int *  taskversion,
char *  startdate 
)
static

Definition at line 322 of file AiresWrapper.cc.

References AiresF77Mapping::crotaskidc().

Referenced by io::AiresShowerFile::Read().

void AiresWrapper::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

Definition at line 332 of file AiresWrapper.cc.

References AiresF77Mapping::fitghf_().

Referenced by io::AiresShowerFile::Read().

bool AiresWrapper::getcrorecord ( int *  channel,
int *  intfields,
double *  realfields,
bool *  altrec,
int *  vrb,
int *  irc 
)
static
bool AiresWrapper::getcrorectype ( int *  channel,
int *  vrb,
int *  infield1,
int *  rectype 
)
static

Definition at line 363 of file AiresWrapper.cc.

References AiresF77Mapping::getcrorectype_().

int AiresWrapper::getinpintc ( char *  dirname)
static

Definition at line 373 of file AiresWrapper.cc.

References AiresF77Mapping::getinpintc().

double AiresWrapper::getinprealc ( char *  dirname)
static

Definition at line 381 of file AiresWrapper.cc.

References AiresF77Mapping::getinprealc().

void AiresWrapper::getinpstringc ( char *  dirname,
char *  value,
int *  slen 
)
static

Definition at line 389 of file AiresWrapper.cc.

References AiresF77Mapping::getinpstringc().

bool AiresWrapper::getinpswitchc ( char *  dirname)
static

Definition at line 397 of file AiresWrapper.cc.

References AiresF77Mapping::getinpswitchc().

double AiresWrapper::grandom ( )
static

Definition at line 405 of file AiresWrapper.cc.

References AiresF77Mapping::grandom_().

int AiresWrapper::nuclcode ( int *  z,
int *  n,
int *  irc 
)
static

Definition at line 411 of file AiresWrapper.cc.

References AiresF77Mapping::nuclcode_().

void AiresWrapper::nucldecode ( int *  ncode,
int *  z,
int *  n,
int *  a 
)
static

Definition at line 419 of file AiresWrapper.cc.

References AiresF77Mapping::nucldecode_().

void AiresWrapper::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

Definition at line 427 of file AiresWrapper.cc.

References AiresF77Mapping::olcoord_().

void AiresWrapper::olcrossed ( int *  olkey,
int *  updown,
int *  firstol,
int *  lastol 
)
static

Definition at line 442 of file AiresWrapper.cc.

References AiresF77Mapping::olcrossed_().

void AiresWrapper::olcrossedu ( int *  olkey,
double *  ux,
double *  uy,
double *  uz,
int *  firstol,
int *  lastol 
)
static

Definition at line 451 of file AiresWrapper.cc.

References AiresF77Mapping::olcrossedu_().

bool AiresWrapper::olsavemarked ( int *  obslev,
int *  vrb,
int *  irc 
)
static

Definition at line 461 of file AiresWrapper.cc.

References AiresF77Mapping::olsavemarked_().

void AiresWrapper::olv2slant ( int *  nobslev,
double *  olxv,
double *  Xv0,
int *  zendis,
double *  zen1,
double *  zen2,
double *  groundz,
double *  olxs 
)
static

Definition at line 469 of file AiresWrapper.cc.

References AiresF77Mapping::olv2slant_().

void AiresWrapper::opencrofilec ( const char *  wdir,
const char *  filename,
int *  header1,
int *  logbase,
int *  vrb,
int *  channel,
int *  irc 
)
static

Definition at line 481 of file AiresWrapper.cc.

References ERROR, and AiresF77Mapping::opencrofilec().

Referenced by io::AiresShowerFile::Open().

void AiresWrapper::raninit ( double *  seed)
static

Definition at line 505 of file AiresWrapper.cc.

References AiresF77Mapping::raninit_().

bool AiresWrapper::regetcrorecord ( int *  channel,
int *  intfields,
double *  realfields,
bool *  altrec,
int *  vrb,
int *  irc 
)
static
void AiresWrapper::sp1stint ( int *  csys,
double *  x1,
double *  y1,
double *  z1,
int *  irc 
)
static

Definition at line 525 of file AiresWrapper.cc.

References AiresF77Mapping::sp1stint_().

void AiresWrapper::spaddnull ( double *  pener,
double *  pwt,
int *  irc 
)
static

Definition at line 535 of file AiresWrapper.cc.

References AiresF77Mapping::spaddnull_().

void AiresWrapper::spaddp0 ( int *  pcode,
double *  pener,
int *  csys,
double *  ux,
double *  uy,
double *  uz,
double *  pwt,
int *  irc 
)
static

Definition at line 543 of file AiresWrapper.cc.

References AiresF77Mapping::spaddp0_().

void AiresWrapper::spaddpn ( int *  n,
int *  pcode,
double *  pener,
int *  cys,
int *  ldu,
double **  uxyz,
double *  pwt,
int *  irc 
)
static

Definition at line 555 of file AiresWrapper.cc.

References AiresF77Mapping::spaddpn_().

void AiresWrapper::speiend ( int *  retcode)
static

Definition at line 565 of file AiresWrapper.cc.

References AiresF77Mapping::speiend_().

void AiresWrapper::speigetmodnamec ( char *  mn,
int *  mnlen,
char *  mnfull,
int *  mnfullen 
)
static

Definition at line 573 of file AiresWrapper.cc.

References AiresF77Mapping::speigetmodnamec().

void AiresWrapper::speigetparsc ( char *  parstring,
int *  pstrlen 
)
static

Definition at line 582 of file AiresWrapper.cc.

References AiresF77Mapping::speigetparsc().

void AiresWrapper::speimv ( int *  mvnew,
int *  mvold 
)
static

Definition at line 590 of file AiresWrapper.cc.

References AiresF77Mapping::speimv_().

void AiresWrapper::speistart ( int *  showerno,
double *  primener,
double *  injpos,
double *  xvinj,
double *  zground,
double *  xvground,
double *  dgroundinj,
double *  uprim 
)
static

Definition at line 608 of file AiresWrapper.cc.

References AiresF77Mapping::speistart_().

void AiresWrapper::speitaskc ( char *  taskn,
int *  tasklen,
int *  tver 
)
static

Definition at line 622 of file AiresWrapper.cc.

References AiresF77Mapping::speitaskc().

void AiresWrapper::spinjpoint ( int *  csys,
double *  x0,
double *  y0,
double *  z0,
int *  tsw,
double *  t0beta,
int *  irc 
)
static

Definition at line 598 of file AiresWrapper.cc.

References AiresF77Mapping::spinjpoint_().

void AiresWrapper::spnshowers ( int *  totsh,
int *  firstsh,
int *  lastsh 
)
static

Definition at line 630 of file AiresWrapper.cc.

References AiresF77Mapping::spnshowers_().

void AiresWrapper::sprimname ( char *  pname,
int *  pnamelen 
)
static

Definition at line 638 of file AiresWrapper.cc.

References AiresF77Mapping::sprimname_().

int AiresWrapper::thisairesversion ( )
static

Definition at line 646 of file AiresWrapper.cc.

References AiresF77Mapping::thisairesversion_().

double AiresWrapper::urandom ( )
static

Definition at line 652 of file AiresWrapper.cc.

References AiresF77Mapping::urandom_().

double AiresWrapper::xslant ( double *  Xvert,
double *  Xv0,
double *  cozenith,
double *  zground 
)
static

Definition at line 658 of file AiresWrapper.cc.

References AiresF77Mapping::xslant_().

Member Data Documentation

bool AiresWrapper::fInitialised = false
staticprivate

Definition at line 146 of file AiresWrapper.h.

unsigned int AiresWrapper::fNumberOfOpenFiles = 0
staticprivate

Definition at line 147 of file AiresWrapper.h.


The documentation for this class was generated from the following files:

, generated on Tue Sep 26 2023.