#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "../libcpixe/libcpixe.h"
#include "../libcpixe/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" |
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.
int cpixemain | ( | int | NCALL | ) |
Simulates PIXE yields. See NCALL for mode of opertaion.
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 |
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().
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").
Definition at line 54 of file cpixe.c.
References cpixemain(), and inputfilename.
STATFILENAME inputfilename = "input.in" |