#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 | cpixecalib (void) |
Variables | |
STATFILENAME | inputfilename = "input-cal.in" |
cpixe-calib uses also the LibCPIXE library
See the libcpixe.c file for more information.
Definition in file cpixe-calib.c.
|
Calculates the efficiency coefficient based on experimental data and (hopefully) accurate description of the sample. The efficiency coefs have the following meaning: "Number of counts that are expected in the detector for a given X-ray emission line induced by a 2MeV proton beam in an ideally thin target, per unit of irradiation charge (uC), per unit of solid angle (msr) and per 10^15 at/cm2 of the element"
Definition at line 81 of file cpixe-calib.c. References ELEMENT::A, EXTRAINFO::AreasFileNm, EXTRAINFO::AreasFormat, EXP_PARAM::BeamEner, SIM_PARAM::CalEner, FILTER::changes, SIM_PARAM::ColCharge, foil::comp, createPresentElems(), createSPTs(), EXTRAINFO::DBpath, DEG2RAD, EXP_PARAM::DetAng, EXP_PARAM::DetColFac, EXTRAINFO::DoCalibration, SIM_PARAM::DTCC, COMPOUND::elem, FILENMLENGTH, EXTRAINFO::FilterFileNm, FilterTrans(), FILTER::foil, fprintCALIBYLD(), 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, CPIXERESULTS::simareas, EXP_PARAM::simpar, STATFILENAME, foil::thick, COMPOUND::w, EXTRAINFO::WantOutputfile, COMPOUND::X, COMPOUND::xn, Xprod(), XrayYield::XYld, EXTRAINFO::XYldFileNm, ELEMENT::Z, and Z2mass(). Referenced by main(). |
|
Main program: The executable accepts 1 optional command line argument indicating the input file name (which defaults to "input.in").
Definition at line 57 of file cpixe-calib.c. References cpixecalib(), inputfilename, and STATFILENAME. |
|
Definition at line 48 of file cpixe-calib.c. Referenced by cpixecalib(), cpixemain(), and main(). |