Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

cpixe_fif.c File Reference

#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 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 226 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, FilterTrans(), FILTER::foil, freeFilter(), freeReusable(), FILTER::geomcorr, EXP_PARAM::IncAng, initlyrarray(), integrate_Simpson(), EXP_PARAM::ion, CalibYld::K_, CalibYld::L_, CalibYld::M_, FILTER::MaxZ, SIM_PARAM::MaxZinsample, COMPOUND::nelem, foil::nfoilelm, FILTER::nlyr, readAbsCoef(), readFCK(), readXYld(), safefree(), EXP_PARAM::simpar, STATFILENAME, foil::thick, FILTER::Trans, translateresultsNDF(), translatesample(), translatesample2(), COMPOUND::w, COMPOUND::X, COMPOUND::xn, XrayYield::XYld, and ELEMENT::Z.

void TESTFIF  ) 
 

Definition at line 221 of file cpixe_fif.c.

int translateresults int  dimSums,
int  dimResults,
const int *  PresentElems,
const CalibYld XYldSums,
CPIXERESULTS pRESULTS
 

Definition at line 195 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 210 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
 

Definition at line 67 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 128 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().


Generated on Fri Jul 15 20:43:49 2005 for LibCPIXE API by  doxygen 1.3.9.1