ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MCGIDI_misc.h File Reference
+ Include dependency graph for MCGIDI_misc.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MCGIDI_misc_pointerToTOMAttributeIfAllOk2(smr, required, attributes, name)   MCGIDI_misc_pointerToTOMAttributeIfAllOk( smr, NULL, required, attributes, name, __FILE__, __LINE__ )
 
#define MCGIDI_misc_pointerToTOMAttributeIfAllOk3(smr, path, required, attributes, name)   MCGIDI_misc_pointerToTOMAttributeIfAllOk( smr, path, required, attributes, name, __FILE__, __LINE__ )
 
#define MCGIDI_misc_pointerToAttributeIfAllOk2(smr, element, required, attributes, name)   MCGIDI_misc_pointerToAttributeIfAllOk( smr, element, NULL, required, attributes, name, __FILE__, __LINE__ )
 
#define MCGIDI_misc_pointerToAttributeIfAllOk3(smr, path, required, attributes, name)   MCGIDI_misc_pointerToAttributeIfAllOk( smr, NULL, path, required, attributes, name, __FILE__, __LINE__ )
 

Functions

char const * MCGIDI_misc_pointerToTOMAttributeIfAllOk (statusMessageReporting *smr, char const *path, int required, xDataTOM_attributionList *attributes, char const *name, char const *file, int line)
 
char const * MCGIDI_misc_pointerToAttributeIfAllOk (statusMessageReporting *smr, xDataXML_element *element, char const *path, int required, xDataTOM_attributionList *attributes, char const *name, char const *file, int line)
 
int MCGIDI_misc_setMessageError_Element (statusMessageReporting *smr, void *userInterface, xDataXML_element *element, char const *file, int line, int code, char const *fmt,...)
 
char * MCGIDI_misc_getAbsPath (statusMessageReporting *smr, char const *fileName)
 
int MCGIDI_misc_copyXMLAttributesToTOM (statusMessageReporting *smr, xDataTOM_attributionList *TOM, xDataXML_attributionList *XML)
 
enum xDataTOM_frame MCGIDI_misc_getProductFrame (statusMessageReporting *smr, xDataTOM_element *frameElement)
 
double MCGIDI_misc_getUnitConversionFactor (statusMessageReporting *smr, char const *fromUnit, char const *toUnit)
 
ptwXYPointsMCGIDI_misc_dataFromXYs2ptwXYPointsInUnitsOf (statusMessageReporting *smr, xDataTOM_XYs *XYs, ptwXY_interpolation interpolation, char const *units[2])
 
ptwXYPointsMCGIDI_misc_dataFromElement2ptwXYPointsInUnitsOf (statusMessageReporting *smr, xDataTOM_element *linear, char const *toUnits[2])
 

Macro Definition Documentation

#define MCGIDI_misc_pointerToAttributeIfAllOk2 (   smr,
  element,
  required,
  attributes,
  name 
)    MCGIDI_misc_pointerToAttributeIfAllOk( smr, element, NULL, required, attributes, name, __FILE__, __LINE__ )

Definition at line 31 of file MCGIDI_misc.h.

View newest version in sPHENIX GitHub at line 31 of file MCGIDI_misc.h

#define MCGIDI_misc_pointerToAttributeIfAllOk3 (   smr,
  path,
  required,
  attributes,
  name 
)    MCGIDI_misc_pointerToAttributeIfAllOk( smr, NULL, path, required, attributes, name, __FILE__, __LINE__ )

Definition at line 33 of file MCGIDI_misc.h.

View newest version in sPHENIX GitHub at line 33 of file MCGIDI_misc.h

#define MCGIDI_misc_pointerToTOMAttributeIfAllOk2 (   smr,
  required,
  attributes,
  name 
)    MCGIDI_misc_pointerToTOMAttributeIfAllOk( smr, NULL, required, attributes, name, __FILE__, __LINE__ )

Definition at line 26 of file MCGIDI_misc.h.

View newest version in sPHENIX GitHub at line 26 of file MCGIDI_misc.h

#define MCGIDI_misc_pointerToTOMAttributeIfAllOk3 (   smr,
  path,
  required,
  attributes,
  name 
)    MCGIDI_misc_pointerToTOMAttributeIfAllOk( smr, path, required, attributes, name, __FILE__, __LINE__ )

Definition at line 28 of file MCGIDI_misc.h.

View newest version in sPHENIX GitHub at line 28 of file MCGIDI_misc.h

Referenced by MCGIDI_target_heated_read().

Function Documentation

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

+ Here is the call graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ptwXYPoints* MCGIDI_misc_dataFromXYs2ptwXYPointsInUnitsOf ( statusMessageReporting smr,
xDataTOM_XYs XYs,
ptwXY_interpolation  interpolation,
char const *  units[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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

char* MCGIDI_misc_getAbsPath ( statusMessageReporting smr,
char const *  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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

char const* MCGIDI_misc_pointerToAttributeIfAllOk ( statusMessageReporting smr,
xDataXML_element element,
char const *  path,
int  required,
xDataTOM_attributionList attributes,
char const *  name,
char const *  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().

+ Here is the call graph for this function:

char const* MCGIDI_misc_pointerToTOMAttributeIfAllOk ( statusMessageReporting smr,
char const *  path,
int  required,
xDataTOM_attributionList attributes,
char const *  name,
char const *  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().

+ Here is the call graph for this function:

int MCGIDI_misc_setMessageError_Element ( statusMessageReporting smr,
void userInterface,
xDataXML_element element,
char const *  file,
int  line,
int  code,
char const *  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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: