|
Simulates PIXE yields. See NCALL for mode of opertaion.
- Parameters:
-
| 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 |
- Returns:
- EXIT_SUCCESS if no error ocurred and "-1" if some error happened.
- Todo:
- This indicates that the filter is not going to be varied (Provisional)
Definition at line 78 of file cpixe.c.
References ELEMENT::A, SIM_PARAM::AllowSXFCorr, EXTRAINFO::AreasFileNm, EXTRAINFO::AreasFormat, EXP_PARAM::BeamEner, SIM_PARAM::CalEner, FILTER::changes, SIM_PARAM::ColCharge, foil::comp, createPresentElems(), createSFCList(), createSPTs(), EXTRAINFO::DBpath, DEG2RAD, EXP_PARAM::DetAng, EXP_PARAM::DetColFac, SIM_PARAM::DTCC, COMPOUND::elem, CPIXERESULTS::err, FILENMLENGTH, EXTRAINFO::FilterFileNm, FilterTrans(), FILTER::foil, 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, EXP_PARAM::simpar, STATFILENAME, foil::thick, FILTER::Trans, COMPOUND::w, EXTRAINFO::WantOutputfile, COMPOUND::X, COMPOUND::xn, XrayYield::XYld, EXTRAINFO::XYldFileNm, and ELEMENT::Z. |