#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 | translatesample (int NFoil, int Nels, const int *pFOILZ, const float *pFOILM, const float *pAMNT, const float *pFOILTHICK, int *MaxZinsample, foil **MatArray) |
int | translatesample2 (int NFoil, int MaxNels, const int *pNels, const int *pFOILZ, const float *pFOILM, const float *pAMNT, const float *pFOILTHICK, int *MaxZinsample, foil **MatArray) |
int | translateresults (int dimSums, int dimResults, const int *PresentElems, const CalibYld *XYldSums, CPIXERESULTS *pRESULTS) |
int | translateresultsNDF (int Nels, const int *pFOILZ, const CalibYld *XYldSums, CPIXERESULTS *pRESULTS) |
void | TESTFIF () |
void | CPIXEMAIN (int NCALL) |
I wrote it to facilitate the integration with the NDF program by N.P. Barradas but it might be useful as well in the case that other people wants to link libCPIXE to a Fortran program.
I try to maintain cpixe_fif.c with at least the same funcionalities available in the cpixe.c code.
Definition in file cpixe_fif.c.
void CPIXEMAIN | ( | int | NCALL | ) |
Definition at line 230 of file cpixe_fif.c.
References ELEMENT::A, EXP_PARAM::BeamEner, SIM_PARAM::CalEner, FILTER::changes, SIM_PARAM::ColCharge, foil::comp, createPresentElems(), createSPTs(), EXP_PARAM::DetAng, EXP_PARAM::DetColFac, SIM_PARAM::DTCC, COMPOUND::elem, FILTER::FilterElems, FILTER::foil, freeFilter(), freeReusable(), FILTER::geomcorr, EXP_PARAM::IncAng, integrate_Simpson(), EXP_PARAM::ion, CalibYld::K_, CalibYld::L_, LineNm, CalibYld::M_, FILTER::MaxZ, SIM_PARAM::MaxZinsample, COMPOUND::nelem, foil::nfoilelm, FILTER::nlyr, readAbsCoef(), readFCK(), readXYld(), safefree(), EXP_PARAM::simpar, XrayYield::symb, foil::thick, FILTER::Trans, translateresultsNDF(), translatesample(), translatesample2(), COMPOUND::w, COMPOUND::X, COMPOUND::xn, XrayYield::XYld, and ELEMENT::Z.
void TESTFIF | ( | ) |
Definition at line 225 of file cpixe_fif.c.
int translateresults | ( | int | dimSums, | |
int | dimResults, | |||
const int * | PresentElems, | |||
const CalibYld * | XYldSums, | |||
CPIXERESULTS * | pRESULTS | |||
) |
Definition at line 199 of file cpixe_fif.c.
References CPIXERESULTS::atnum, and CPIXERESULTS::simareas.
int translateresultsNDF | ( | int | Nels, | |
const int * | pFOILZ, | |||
const CalibYld * | XYldSums, | |||
CPIXERESULTS * | pRESULTS | |||
) |
IMPORTANT!!!!!!: Each isotope gets the FULL number of counts for the element!!!
Definition at line 214 of file cpixe_fif.c.
References CPIXERESULTS::atnum, and CPIXERESULTS::simareas.
Referenced by CPIXEMAIN().
int translatesample | ( | int | NFoil, | |
int | Nels, | |||
const int * | pFOILZ, | |||
const float * | pFOILM, | |||
const float * | pAMNT, | |||
const float * | pFOILTHICK, | |||
int * | MaxZinsample, | |||
foil ** | MatArray | |||
) |
Added "SAngFract" to the EXP_PARAM structure (and needed for deNormalize2() )
Added "Fluence" to the EXP_PARAM structure (and needed for deNormalize2() )
Definition at line 71 of file cpixe_fif.c.
References ELEMENT::A, foil::comp, COMPOUND::elem, ELEMENT::IM, ELEMENT::M, COMPOUND::nelem, foil::nfoilelm, COMPOUND::sumX, foil::thick, COMPOUND::w, COMPOUND::X, COMPOUND::xn, ELEMENT::Z, and Z2mass().
Referenced by CPIXEMAIN().
int translatesample2 | ( | int | NFoil, | |
int | MaxNels, | |||
const int * | pNels, | |||
const int * | pFOILZ, | |||
const float * | pFOILM, | |||
const float * | pAMNT, | |||
const float * | pFOILTHICK, | |||
int * | MaxZinsample, | |||
foil ** | MatArray | |||
) |
Definition at line 132 of file cpixe_fif.c.
References ELEMENT::A, foil::comp, COMPOUND::elem, ELEMENT::IM, ELEMENT::M, COMPOUND::nelem, foil::nfoilelm, COMPOUND::sumX, foil::thick, COMPOUND::w, COMPOUND::X, COMPOUND::xn, ELEMENT::Z, and Z2mass().
Referenced by CPIXEMAIN().