cpixe_fif/cpixe_fif.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_fif.c:

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)


Detailed Description

This is a fortran interface, not properly part of the LibCPIXE lybrary.

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.


Function Documentation

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.

Here is the call graph for this function:

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().

Here is the caller graph for this function:

int translatesample ( int  NFoil,
int  Nels,
const int *  pFOILZ,
const float *  pFOILM,
const float *  pAMNT,
const float *  pFOILTHICK,
int *  MaxZinsample,
foil **  MatArray 
)

Todo:
IMPORTANT!! Some changes in the definitions of structures may affect the interface with NDF. The following is a list of things that I have changed in libcpixe that may have to be teaken care of in the fortran code:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


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