Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

cpixe.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "libcpixe.h"
#include "compilopt.h"

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
int cpixemain (int NCALL)

Variables

STATFILENAME inputfilename = "input.in"


Detailed Description

CPIXE is a small program for demonstrating (and testing) the capabilities of the LibCPIXE library.

See the libcpixe.c file for more information.

Definition in file cpixe.c.


Function Documentation

int cpixemain int  NCALL  ) 
 

Simulates PIXE yields. See NCALL for mode of opertaion.

Parameters:
NCALL (I) Flag controlling the mode of operation of cpixemain:
If NCALL = 0, initialization is done
If NCALL > 0, the calculations are done
If NCALL < 0, cleaning of memory is performed
Returns:
EXIT_SUCCESS if no error ocurred and "-1" if some error happened.

Todo:
This indicates that the filter is not going to be varied (Provisional)

Definition at line 78 of file cpixe.c.

References ELEMENT::A, SIM_PARAM::AllowSXFCorr, EXTRAINFO::AreasFileNm, EXTRAINFO::AreasFormat, EXP_PARAM::BeamEner, SIM_PARAM::CalEner, FILTER::changes, SIM_PARAM::ColCharge, foil::comp, createPresentElems(), createSFCList(), createSPTs(), EXTRAINFO::DBpath, DEG2RAD, EXP_PARAM::DetAng, EXP_PARAM::DetColFac, SIM_PARAM::DTCC, COMPOUND::elem, CPIXERESULTS::err, FILENMLENGTH, EXTRAINFO::FilterFileNm, FilterTrans(), FILTER::foil, freeFilter(), freeReusable(), EXP_PARAM::IncAng, initlyrarray(), inputfilename, integrate_Simpson(), EXP_PARAM::ion, CalibYld::K_, CalibYld::L_, CalibYld::M_, SIM_PARAM::MaxZinsample, COMPOUND::nelem, foil::nfoilelm, FILTER::nlyr, EXTRAINFO::OutputFileNm, readAbsCoef(), readCalcFlags(), readFCK(), readFilter(), readINPUT(), readsample(), readXYld(), EXTRAINFO::SampleFileNm, EXP_PARAM::simpar, STATFILENAME, foil::thick, FILTER::Trans, COMPOUND::w, EXTRAINFO::WantOutputfile, COMPOUND::X, COMPOUND::xn, XrayYield::XYld, EXTRAINFO::XYldFileNm, and ELEMENT::Z.

int main int  argc,
char *  argv[]
 

Main program: The executable accepts 1 optional command line argument indicating the input file name (which defaults to "input.in").

Returns:
EXIT_SUCCESS if normal finishing


Variable Documentation

STATFILENAME inputfilename = "input.in"
 

Definition at line 47 of file cpixe.c.


Generated on Fri Jul 15 20:43:50 2005 for LibCPIXE API by  doxygen 1.3.9.1