cpixe/cpixe.c File Reference

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

Include dependency graph for cpixe.c:

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.

CPIXE-EFF is a small program for calculating efficiency curves from a detector.

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)

Todo:
maybe we want to re-implement support for the DEPRECATED DATTPIXE calibration method later?

Definition at line 77 of file cpixe.c.

References ELEMENT::A, EXTRAINFO::AreasFileNm, EXTRAINFO::AreasFormat, EXP_PARAM::BeamEner, EXTRAINFO::CalibFileNm, FILTER::changes, ChemicalSymbol, SIM_PARAM::ColCharge, foil::comp, createPresentElems(), createSPTs(), EXTRAINFO::DBpath, DEG2RAD, EXP_PARAM::DetAng, EXP_PARAM::DetColFac, SIM_PARAM::DTCC, COMPOUND::elem, CPIXERESULTS::err, FILENMLENGTH, EXTRAINFO::FilterFileNm, FilterTrans(), FILTER::foil, freeExtraInfo(), freeFilter(), freeReusable(), EXP_PARAM::IncAng, initlyrarray(), inputfilename, integrate_Simpson2(), EXP_PARAM::ion, CalibYld::K_, CalibYld::L_, LineNm, CalibYld::M_, SIM_PARAM::MaxZinsample, COMPOUND::nelem, foil::nfoilelm, FILTER::nlyr, EXTRAINFO::OutputFileNm, readAbsCoef(), readCalcFlags(), readEff3(), readFCK(), readFilter(), readINPUT(), readLinesEner(), readsample(), EXTRAINFO::SampleFileNm, EXP_PARAM::simpar, foil::thick, FILTER::Trans, EXTRAINFO::useefficiencies, COMPOUND::w, EXTRAINFO::WantOutputfile, COMPOUND::X, COMPOUND::xn, and ELEMENT::Z.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

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
Main program for cpixe-calib: The executable accepts a list of command line arguments indicating the input file names If none is specified, ("input-cal.in" is assumed).

Returns:
EXIT_SUCCESS if normal finishing
Main program:

Returns:
EXIT_SUCCESS if normal finishing

Definition at line 54 of file cpixe.c.

References cpixemain(), and inputfilename.

Here is the call graph for this function:


Variable Documentation

STATFILENAME inputfilename = "input.in"

Definition at line 46 of file cpixe.c.

Referenced by cpixecalib(), cpixemain(), and main().


Generated on Sat Dec 8 23:11:37 2007 for libCPIXE by  doxygen 1.5.4