ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cmath>
#include <ctype.h>
#include <unistd.h>
#include <ptwXY.h>
#include <xDataTOM_importXML_private.h>
#include "MCGIDI.h"
#include "MCGIDI_misc.h"
#include "MCGIDI_fromTOM.h"
Go to the source code of this file.
Classes | |
struct | ZSymbol |
Variables | |
static struct ZSymbol | ZSymbols [] |
xDataTOM_Int MCGIDI_misc_binarySearch | ( | xDataTOM_Int | n, |
double * | ds, | ||
double | d | ||
) |
Definition at line 228 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 228 of file MCGIDI_misc.cc
References imax.
Referenced by MCGIDI_sampling_doubleDistribution(), MCGIDI_sampling_sampleX_from_pdfOfX(), and MCGIDI_sampling_sampleX_from_pdfsOfXGivenW().
int MCGIDI_misc_copyXMLAttributesToTOM | ( | statusMessageReporting * | smr, |
xDataTOM_attributionList * | TOM, | ||
xDataXML_attributionList * | XML | ||
) |
Definition at line 296 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 296 of file MCGIDI_misc.cc
References check_license::err(), xDataXML_attribute_s::name, xDataXML_attribute_s::value, xDataTOMAL_addAttribute(), xDataTOMAL_initial(), xDataTOMAL_release(), and xDataXML_attributeByIndex().
|
static |
Definition at line 447 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 447 of file MCGIDI_misc.cc
References e, check_license::err(), MCGIDI_misc_getUnitConversionFactor(), nfu_Okay, nfu_statusMessage(), ptwXY_create(), ptwXY_free(), ptwXY_scaleOffsetXAndY(), smr_isOk(), smr_setReportError2, and smr_unknownID.
Referenced by MCGIDI_misc_dataFromElement2ptwXYPointsInUnitsOf(), and MCGIDI_misc_dataFromXYs2ptwXYPointsInUnitsOf().
ptwXYPoints* MCGIDI_misc_dataFromElement2ptwXYPointsInUnitsOf | ( | statusMessageReporting * | smr, |
xDataTOM_element * | linear, | ||
char const * | toUnits[2] | ||
) |
Definition at line 424 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 424 of file MCGIDI_misc.cc
References xDataTOM_xDataInfo_s::axes, xDataTOM_axes_s::axis, BTOF::length, MCGIDI_fromTOM_interpolation(), MCGIDI_misc_Data2ptwXYPointsInUnitsOf(), xDataTOM_axes_s::numberOfAxes, smr_setReportError2, smr_unknownID, xDataTOM_axis_s::unit, xDataTOM_element_s::xDataInfo, and xDataTOM_XYs_getDataFromXDataInfo().
Referenced by MCGIDI_energy_parseEvaporationFromTOM(), MCGIDI_energy_parseGeneralEvaporationFromTOM(), MCGIDI_energy_parseSimpleMaxwellianFissionFromTOM(), MCGIDI_energy_parseWattFromTOM(), MCGIDI_energy_parseWeightFromTOM(), MCGIDI_product_parseFromTOM(), MCGIDI_product_parseWeightedReferenceMultiplicityFromTOM(), and MCGIDI_reaction_parseFromTOM().
ptwXYPoints* MCGIDI_misc_dataFromXYs2ptwXYPointsInUnitsOf | ( | statusMessageReporting * | smr, |
xDataTOM_XYs * | XYs, | ||
ptwXY_interpolation | interpolation, | ||
char const * | toUnits[2] | ||
) |
Definition at line 405 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 405 of file MCGIDI_misc.cc
References BTOF::length, MCGIDI_misc_Data2ptwXYPointsInUnitsOf(), smr_isOk(), xDataTOM_XYs_s::subAxes, xDataTOM_subAxes_getUnit(), and xDataTOM_XYs_getData().
Referenced by MCGIDI_angular_parseFromTOM(), MCGIDI_angularEnergy_parsePointwiseFromTOM(), MCGIDI_energy_parseMadlandNixFromTOM(), MCGIDI_energyAngular_linear_parseFromTOM(), MCGIDI_fromTOM_pdfsOfXGivenW(), and MCGIDI_LLNL_angularEnergy_parsePointwiseFromTOM().
char* MCGIDI_misc_getAbsPath | ( | statusMessageReporting * | smr, |
const char * | fileName | ||
) |
Definition at line 250 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 250 of file MCGIDI_misc.cc
References g4zmq::cwd(), int(), n, smr_malloc2, smr_setReportError2p, and smr_unknownID.
Referenced by MCGIDI_target_read().
enum xDataTOM_frame MCGIDI_misc_getProductFrame | ( | statusMessageReporting * | smr, |
xDataTOM_element * | frameElement | ||
) |
Definition at line 315 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 315 of file MCGIDI_misc.cc
References MCGIDI_token_productFrame, smr_setReportError2, smr_unknownID, xDataTOM_axis_stringToFrame(), xDataTOM_frame_invalid, and xDataTOM_getAttributesValueInElement().
Referenced by MCGIDI_angular_parseFromTOM(), MCGIDI_angularEnergy_parsePointwiseFromTOM(), MCGIDI_energy_parseFromTOM(), MCGIDI_energyAngular_linear_parseFromTOM(), MCGIDI_KalbachMann_parseFromTOM(), and MCGIDI_LLNL_angularEnergy_parsePointwiseFromTOM().
double MCGIDI_misc_getUnitConversionFactor | ( | statusMessageReporting * | smr, |
char const * | fromUnit, | ||
char const * | toUnit | ||
) |
Definition at line 381 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 381 of file MCGIDI_misc.cc
References e, smr_setReportError2, and smr_unknownID.
Referenced by MCGIDI_angular_parseFromTOM(), MCGIDI_angularEnergy_parsePointwiseFromTOM(), MCGIDI_energyAngular_linear_parseFromTOM(), MCGIDI_fromTOM_pdfsOfXGivenW(), MCGIDI_KalbachMann_parseFromTOM(), MCGIDI_misc_Data2ptwXYPointsInUnitsOf(), MCGIDI_misc_PQUStringToDoubleInUnitOf(), MCGIDI_product_parsePolynomialMultiplicity(), and MCGIDI_target_heated_read().
Definition at line 54 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 54 of file MCGIDI_misc.cc
References ZSymbols.
Referenced by MCGIDI_misc_symbolToZ(), and MCGIDI_misc_ZToSymbol().
char const* MCGIDI_misc_pointerToAttributeIfAllOk | ( | statusMessageReporting * | smr, |
xDataXML_element * | element, | ||
const char * | path, | ||
int | required, | ||
xDataTOM_attributionList * | attributes, | ||
const char * | name, | ||
const char * | file, | ||
int | line | ||
) |
Definition at line 184 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 184 of file MCGIDI_misc.cc
References MCGIDI_misc_setMessageError_Element(), smr_isOk(), smr_setReportError(), smr_unknownID, and xDataTOMAL_getAttributesValue().
char const* MCGIDI_misc_pointerToTOMAttributeIfAllOk | ( | statusMessageReporting * | smr, |
const char * | path, | ||
int | required, | ||
xDataTOM_attributionList * | attributes, | ||
const char * | name, | ||
const char * | file, | ||
int | line | ||
) |
Definition at line 168 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 168 of file MCGIDI_misc.cc
References smr_isOk(), smr_setReportError(), smr_unknownID, and xDataTOMAL_getAttributesValue().
int MCGIDI_misc_PQUStringToDouble | ( | statusMessageReporting * | smr, |
char const * | str, | ||
char const * | unit, | ||
double | conversion, | ||
double * | value | ||
) |
Definition at line 330 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 330 of file MCGIDI_misc.cc
References e, smr_setReportError2, and smr_unknownID.
Referenced by MCGIDI_energy_parseNBodyPhaseSpaceFromTOM(), and MCGIDI_target_heated_parseParticle().
int MCGIDI_misc_PQUStringToDoubleInUnitOf | ( | statusMessageReporting * | smr, |
char const * | str, | ||
char const * | toUnit, | ||
double * | value | ||
) |
Definition at line 356 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 356 of file MCGIDI_misc.cc
References e1, MCGIDI_misc_getUnitConversionFactor(), s1, smr_isOk(), smr_setReportError2, and smr_unknownID.
Referenced by MCGIDI_distribution_parseFromTOM(), MCGIDI_energy_parseEvaporationFromTOM(), MCGIDI_energy_parseMadlandNixFromTOM(), MCGIDI_energy_parseSimpleMaxwellianFissionFromTOM(), MCGIDI_energy_parseWattFromTOM(), MCGIDI_outputChannel_parseFromTOM(), MCGIDI_product_parseFromTOM(), and MCGIDI_target_heated_parseParticleLevel().
int MCGIDI_misc_setMessageError_Element | ( | statusMessageReporting * | smr, |
void * | userInterface, | ||
xDataXML_element * | element, | ||
const char * | file, | ||
int | line, | ||
int | code, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 204 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 204 of file MCGIDI_misc.cc
References xDataXML_element_s::name, smr_freeMemory(), smr_setReportError(), smr_unknownID, smr_vallocateFormatMessage(), and smr_vsetReportError().
Referenced by MCGIDI_misc_pointerToAttributeIfAllOk(), and MCGIDI_target_read().
int MCGIDI_misc_symbolToZ | ( | const char * | Z | ) |
Definition at line 69 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 69 of file MCGIDI_misc.cc
References MCGIDI_misc_NumberOfZSymbols(), n, ZSymbol::symbol, and ZSymbols.
Referenced by MCGIDI_miscNameToZAm().
void MCGIDI_misc_updateTransportabilitiesMap | ( | transportabilitiesMap * | transportabilities, |
int | PoPID, | ||
enum MCGIDI_transportability | transportability | ||
) |
Definition at line 482 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 482 of file MCGIDI_misc.cc
References MCGIDI_transportability_full, MCGIDI_transportability_none, MCGIDI_transportability_partial, and MCGIDI_transportability_unknown.
Referenced by MCGIDI_misc_updateTransportabilitiesMap2(), and MCGIDI_target_heated_read().
void MCGIDI_misc_updateTransportabilitiesMap2 | ( | transportabilitiesMap * | transportabilities, |
int | PoPID, | ||
int | transportable | ||
) |
Definition at line 524 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 524 of file MCGIDI_misc.cc
References MCGIDI_misc_updateTransportabilitiesMap(), MCGIDI_transportability_full, and MCGIDI_transportability_none.
Referenced by MCGIDI_reaction_addReturnProduct().
const char* MCGIDI_misc_ZToSymbol | ( | int | iZ | ) |
Definition at line 61 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 61 of file MCGIDI_misc.cc
References MCGIDI_misc_NumberOfZSymbols(), ZSymbol::symbol, and ZSymbols.
Referenced by G4GIDI_Misc_Z_A_m_ToName().
int MCGIDI_miscNameToZAm | ( | statusMessageReporting * | smr, |
const char * | name, | ||
int * | Z, | ||
int * | A, | ||
int * | m, | ||
int * | level | ||
) |
Definition at line 81 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 81 of file MCGIDI_misc.cc
References e, int(), MCGIDI_misc_symbolToZ(), MCGIDI_miscNameToZAm_getLevel(), smr_isOk(), smr_setReportError2, and smr_unknownID.
Referenced by G4GIDI_Misc_channelCompound(), MCGIDI_particle_getInternalID(), and MCGIDI_POP_new().
|
static |
Definition at line 138 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 138 of file MCGIDI_misc.cc
References e, int(), MCGIDI_particleLevel_continuum, MCGIDI_particleLevel_sum, smr_setReportError2, and smr_unknownID.
Referenced by MCGIDI_miscNameToZAm().
|
static |
Definition at line 34 of file MCGIDI_misc.cc.
View newest version in sPHENIX GitHub at line 34 of file MCGIDI_misc.cc
Referenced by MCGIDI_misc_NumberOfZSymbols(), MCGIDI_misc_symbolToZ(), and MCGIDI_misc_ZToSymbol().