ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
xDataTOM.cc File Reference
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include "xDataTOM_importXML_private.h"
#include "xDataTOM_private.h"
+ Include dependency graph for xDataTOM.cc:

Go to the source code of this file.

Macros

#define PATH_MAX   4096
 

Functions

static int xDataTOME_initializeElement (statusMessageReporting *smr, xDataTOM_element *element, xDataTOM_element *parent, int ordinal, int index, char const *name)
 
static void xDataTOME_displayTree (statusMessageReporting *smr, xDataTOM_element *element, int printAttributes, int level)
 
static int xDataTOM_initialize_xData (statusMessageReporting *smr, xDataTOM_xDataInfo *xDataInfo)
 
xDataTOM_TOMxDataTOM_importFile (statusMessageReporting *smr, const char *fileName)
 
xDataTOM_TOMxDataTOM_mallocTOM (statusMessageReporting *smr)
 
int xDataTOM_initializeTOM (statusMessageReporting *smr, xDataTOM_TOM *TOM)
 
voidxDataTOM_freeTOM (statusMessageReporting *, xDataTOM_TOM **TOM)
 
int xDataTOM_setFileNameTOM (statusMessageReporting *smr, xDataTOM_TOM *TOM, const char *fileName)
 
void xDataTOM_displayTree (statusMessageReporting *smr, xDataTOM_TOM *TOM, int printAttributes)
 
xDataTOM_elementxDataTOM_mallocElement (statusMessageReporting *smr, xDataTOM_element *parent, int ordinal, int index, char const *name)
 
void xDataTOM_freeElement (xDataTOM_element **element)
 
void xDataTOM_releaseElement (xDataTOM_element *element)
 
xDataTOM_elementxDataTOM_addElementInElement (statusMessageReporting *smr, xDataTOM_element *parent, int index, char const *name)
 
xDataTOM_elementxDataTOM_getDocumentsElement (xDataTOM_TOM *TOM)
 
xDataTOM_elementxDataTOME_getFirstElement (xDataTOM_element *element)
 
xDataTOM_elementxDataTOME_getNextElement (xDataTOM_element *element)
 
xDataTOM_elementxDataTOME_getOneElementByName (statusMessageReporting *smr, xDataTOM_element *element, char const *name, int required)
 
int xDataTOM_numberOfElementsByName (statusMessageReporting *, xDataTOM_element *element, char const *name)
 
int xDataTOME_addAttribute (statusMessageReporting *smr, xDataTOM_element *element, char const *name, char const *value)
 
char const * xDataTOM_getAttributesValueInElement (xDataTOM_element *element, char const *name)
 
int xDataTOME_copyAttributionList (statusMessageReporting *smr, xDataTOM_attributionList *desc, xDataTOM_element *element)
 
int xDataTOME_convertAttributeToInteger (statusMessageReporting *smr, xDataTOM_element *element, char const *name, int *n)
 
int xDataTOME_convertAttributeToDouble (statusMessageReporting *smr, xDataTOM_element *element, char const *name, double *d)
 
int xDataTOME_getInterpolation (statusMessageReporting *smr, xDataTOM_element *element, int index, enum xDataTOM_interpolationFlag *independent, enum xDataTOM_interpolationFlag *dependent, enum xDataTOM_interpolationQualifier *qualifier)
 
void xDataTOMAL_initial (statusMessageReporting *, xDataTOM_attributionList *attributes)
 
void xDataTOMAL_release (xDataTOM_attributionList *attributes)
 
int xDataTOMAL_addAttribute (statusMessageReporting *smr, xDataTOM_attributionList *attributes, char const *name, char const *value)
 
char const * xDataTOMAL_getAttributesValue (xDataTOM_attributionList *attributes, char const *name)
 
int xDataTOMAL_copyAttributionList (statusMessageReporting *smr, xDataTOM_attributionList *desc, xDataTOM_attributionList *src)
 
int xDataTOMAL_convertAttributeToInteger (statusMessageReporting *smr, xDataTOM_attributionList *attributes, char const *name, int *n)
 
int xDataTOMAL_convertAttributeToDouble (statusMessageReporting *smr, xDataTOM_attributionList *attributes, char const *name, double *d)
 
voidxData_initializeData (statusMessageReporting *smr, xDataTOM_element *TE, char const *ID, size_t size)
 
int xDataTOM_isXDataID (xDataTOM_element *TE, char const *ID)
 
xDataTOM_xDataInfoxDataTOME_getXData (xDataTOM_element *TE)
 
voidxDataTOME_getXDataIfID (statusMessageReporting *smr, xDataTOM_element *TE, char const *ID)
 

Variables

int xDataTOM_smrLibraryID = smr_unknownID
 

Macro Definition Documentation

#define PATH_MAX   4096

Definition at line 31 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 31 of file xDataTOM.cc

Referenced by xDataTOM_setFileNameTOM().

Function Documentation

void* xData_initializeData ( statusMessageReporting smr,
xDataTOM_element TE,
char const *  ID,
size_t  size 
)

Definition at line 479 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 479 of file xDataTOM.cc

References xDataTOM_xDataInfo_s::data, xDataTOM_xDataInfo_s::element, xDataTOM_xDataInfo_s::ID, smr_malloc2, and xDataTOM_element_s::xDataInfo.

Referenced by xDataXML_initializeData().

+ Here is the caller graph for this function:

xDataTOM_element* xDataTOM_addElementInElement ( statusMessageReporting smr,
xDataTOM_element parent,
int  index,
char const *  name 
)

Definition at line 188 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 188 of file xDataTOM.cc

References xDataTOM_element_s::children, xDataTOM_element_s::next, xDataTOM_element_s::numberOfChildren, and xDataTOM_mallocElement().

Referenced by xDataXML_constructTOM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void xDataTOM_displayTree ( statusMessageReporting smr,
xDataTOM_TOM TOM,
int  printAttributes 
)

Definition at line 114 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 114 of file xDataTOM.cc

References xDataTOM_element_s::children, xDataTOM_TOM_s::root, and xDataTOME_displayTree().

+ Here is the call graph for this function:

void xDataTOM_freeElement ( xDataTOM_element **  element)

Definition at line 139 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 139 of file xDataTOM.cc

References smr_freeMemory(), and xDataTOM_releaseElement().

Referenced by xDataTOM_releaseElement().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void* xDataTOM_freeTOM ( statusMessageReporting ,
xDataTOM_TOM **  TOM 
)

Definition at line 78 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 78 of file xDataTOM.cc

References xDataTOM_TOM_s::fileName, xDataTOM_TOM_s::realFileName, xDataTOM_TOM_s::root, smr_freeMemory(), and xDataTOM_releaseElement().

Referenced by MCGIDI_target_heated_read(), and xDataXML_importFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

xDataTOM_element* xDataTOM_getDocumentsElement ( xDataTOM_TOM TOM)

Definition at line 223 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 223 of file xDataTOM.cc

References xDataTOM_element_s::children, and xDataTOM_TOM_s::root.

Referenced by MCGIDI_target_heated_read().

+ Here is the caller graph for this function:

xDataTOM_TOM* xDataTOM_importFile ( statusMessageReporting smr,
const char *  fileName 
)

Definition at line 44 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 44 of file xDataTOM.cc

References xDataXML_importFile().

Referenced by MCGIDI_target_heated_read().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int xDataTOM_initialize_xData ( statusMessageReporting smr,
xDataTOM_xDataInfo xDataInfo 
)
static

Definition at line 472 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 472 of file xDataTOM.cc

Referenced by xDataTOME_initializeElement().

+ Here is the caller graph for this function:

int xDataTOM_initializeTOM ( statusMessageReporting smr,
xDataTOM_TOM TOM 
)

Definition at line 68 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 68 of file xDataTOM.cc

References xDataTOM_TOM_s::fileName, xDataTOM_TOM_s::realFileName, xDataTOM_TOM_s::root, smr_isOk(), and xDataTOME_initializeElement().

Referenced by xDataTOM_mallocTOM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOM_isXDataID ( xDataTOM_element TE,
char const *  ID 
)

Definition at line 491 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 491 of file xDataTOM.cc

References xDataTOM_xDataInfo_s::ID, and xDataTOM_element_s::xDataInfo.

xDataTOM_element* xDataTOM_mallocElement ( statusMessageReporting smr,
xDataTOM_element parent,
int  ordinal,
int  index,
char const *  name 
)

Definition at line 125 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 125 of file xDataTOM.cc

References smr_freeMemory(), smr_malloc2, and xDataTOME_initializeElement().

Referenced by xDataTOM_addElementInElement().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

xDataTOM_TOM* xDataTOM_mallocTOM ( statusMessageReporting smr)

Definition at line 54 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 54 of file xDataTOM.cc

References smr_freeMemory(), smr_malloc2, and xDataTOM_initializeTOM().

Referenced by xDataXML_importFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOM_numberOfElementsByName ( statusMessageReporting ,
xDataTOM_element element,
char const *  name 
)

Definition at line 268 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 268 of file xDataTOM.cc

References n, xDataTOM_element_s::name, xDataTOME_getFirstElement(), and xDataTOME_getNextElement().

Referenced by MCGIDI_outputChannel_parseFromTOM(), and MCGIDI_target_heated_read().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOM_setFileNameTOM ( statusMessageReporting smr,
xDataTOM_TOM TOM,
const char *  fileName 
)

Definition at line 94 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 94 of file xDataTOM.cc

References xDataTOM_TOM_s::fileName, PATH_MAX, xDataTOM_TOM_s::realFileName, smr_allocateCopyString2, and smr_freeMemory().

Referenced by xDataXML_importFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOMAL_addAttribute ( statusMessageReporting smr,
xDataTOM_attributionList attributes,
char const *  name,
char const *  value 
)

Definition at line 376 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 376 of file xDataTOM.cc

References xDataTOM_attributionList_s::attributes, check_license::err(), xDataTOM_attribute_s::name, xDataTOM_attribute_s::next, xDataTOM_attributionList_s::number, smr_allocateCopyString2, smr_freeMemory(), smr_malloc2, and xDataTOM_attribute_s::value.

Referenced by MCGIDI_misc_copyXMLAttributesToTOM(), xDataTOMAL_copyAttributionList(), and xDataTOME_addAttribute().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOMAL_convertAttributeToDouble ( statusMessageReporting smr,
xDataTOM_attributionList attributes,
char const *  name,
double *  d 
)

Definition at line 450 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 450 of file xDataTOM.cc

References e, smr_setReportError2, xDataTOM_smrLibraryID, and xDataTOMAL_getAttributesValue().

Referenced by xDataTOME_convertAttributeToDouble().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOMAL_convertAttributeToInteger ( statusMessageReporting smr,
xDataTOM_attributionList attributes,
char const *  name,
int n 
)

Definition at line 433 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 433 of file xDataTOM.cc

References e, int(), smr_setReportError2, xDataTOM_smrLibraryID, and xDataTOMAL_getAttributesValue().

Referenced by xDataTOME_convertAttributeToInteger().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOMAL_copyAttributionList ( statusMessageReporting smr,
xDataTOM_attributionList desc,
xDataTOM_attributionList src 
)

Definition at line 415 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 415 of file xDataTOM.cc

References xDataTOM_attributionList_s::attributes, check_license::err(), xDataTOM_attribute_s::name, xDataTOM_attribute_s::next, xDataTOM_attribute_s::value, xDataTOMAL_addAttribute(), xDataTOMAL_initial(), and xDataTOMAL_release().

Referenced by MCGIDI_target_heated_read(), and xDataTOME_copyAttributionList().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

char const* xDataTOMAL_getAttributesValue ( xDataTOM_attributionList attributes,
char const *  name 
)

Definition at line 403 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 403 of file xDataTOM.cc

References xDataTOM_attributionList_s::attributes, xDataTOM_attribute_s::name, xDataTOM_attribute_s::next, and xDataTOM_attribute_s::value.

Referenced by MCGIDI_misc_pointerToAttributeIfAllOk(), MCGIDI_misc_pointerToTOMAttributeIfAllOk(), MCGIDI_target_getAttributesValue(), xDataTOM_getAttributesValueInElement(), xDataTOMAL_convertAttributeToDouble(), and xDataTOMAL_convertAttributeToInteger().

+ Here is the caller graph for this function:

void xDataTOMAL_initial ( statusMessageReporting ,
xDataTOM_attributionList attributes 
)

Definition at line 353 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 353 of file xDataTOM.cc

References xDataTOM_attributionList_s::attributes, and xDataTOM_attributionList_s::number.

Referenced by MCGIDI_misc_copyXMLAttributesToTOM(), MCGIDI_reaction_initialize2(), xDataTOMAL_copyAttributionList(), xDataTOMAL_release(), and xDataTOME_initializeElement().

+ Here is the caller graph for this function:

void xDataTOMAL_release ( xDataTOM_attributionList attributes)

Definition at line 361 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 361 of file xDataTOM.cc

References xDataTOM_attributionList_s::attributes, xDataTOM_attribute_s::name, xDataTOM_attribute_s::next, smr_freeMemory(), xDataTOM_attribute_s::value, and xDataTOMAL_initial().

Referenced by MCGIDI_misc_copyXMLAttributesToTOM(), MCGIDI_reaction_release(), MCGIDI_target_heated_release(), MCGIDI_target_release(), xDataTOM_releaseElement(), and xDataTOMAL_copyAttributionList().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOME_addAttribute ( statusMessageReporting smr,
xDataTOM_element element,
char const *  name,
char const *  value 
)

Definition at line 279 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 279 of file xDataTOM.cc

References xDataTOM_element_s::attributes, and xDataTOMAL_addAttribute().

Referenced by xDataXML_constructTOM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOME_convertAttributeToDouble ( statusMessageReporting smr,
xDataTOM_element element,
char const *  name,
double *  d 
)

Definition at line 307 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 307 of file xDataTOM.cc

References xDataTOM_element_s::attributes, and xDataTOMAL_convertAttributeToDouble().

Referenced by MCGIDI_target_heated_parseParticleGammas().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOME_convertAttributeToInteger ( statusMessageReporting smr,
xDataTOM_element element,
char const *  name,
int n 
)

Definition at line 300 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 300 of file xDataTOM.cc

References xDataTOM_element_s::attributes, and xDataTOMAL_convertAttributeToInteger().

Referenced by MCGIDI_energy_parseNBodyPhaseSpaceFromTOM(), MCGIDI_product_parseFromTOM(), and MCGIDI_reaction_parseFromTOM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int xDataTOME_copyAttributionList ( statusMessageReporting smr,
xDataTOM_attributionList desc,
xDataTOM_element element 
)

Definition at line 293 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 293 of file xDataTOM.cc

References xDataTOM_element_s::attributes, and xDataTOMAL_copyAttributionList().

Referenced by MCGIDI_reaction_parseFromTOM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void xDataTOME_displayTree ( statusMessageReporting smr,
xDataTOM_element element,
int  printAttributes,
int  level 
)
static

Definition at line 326 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 326 of file xDataTOM.cc

References xDataTOM_attributionList_s::attributes, xDataTOM_element_s::attributes, xDataTOM_element_s::index, xDataTOM_attribute_s::name, xDataTOM_element_s::name, xDataTOM_attribute_s::next, printf(), xDataTOM_attribute_s::value, xDataTOME_getFirstElement(), and xDataTOME_getNextElement().

Referenced by xDataTOM_displayTree().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

xDataTOM_element* xDataTOME_getFirstElement ( xDataTOM_element element)
int xDataTOME_getInterpolation ( statusMessageReporting smr,
xDataTOM_element element,
int  index,
enum xDataTOM_interpolationFlag independent,
enum xDataTOM_interpolationFlag dependent,
enum xDataTOM_interpolationQualifier qualifier 
)

Definition at line 314 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 314 of file xDataTOM.cc

References xDataTOM_xDataInfo_s::axes, xDataTOM_xDataInfo_s::ID, xDataTOM_element_s::xDataInfo, and xDataTOM_axes_getInterpolation().

Referenced by MCGIDI_fromTOM_interpolation(), and MCGIDI_reaction_parseFromTOM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

xDataTOM_element* xDataTOME_getNextElement ( xDataTOM_element element)
xDataTOM_xDataInfo* xDataTOME_getXData ( xDataTOM_element TE)

Definition at line 504 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 504 of file xDataTOM.cc

References xDataTOM_xDataInfo_s::ID, and xDataTOM_element_s::xDataInfo.

Referenced by xDataTOME_getXDataIfID().

+ Here is the caller graph for this function:

void* xDataTOME_getXDataIfID ( statusMessageReporting smr,
xDataTOM_element TE,
char const *  ID 
)

Definition at line 512 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 512 of file xDataTOM.cc

References xDataTOM_xDataInfo_s::data, xDataTOM_xDataInfo_s::ID, xDataTOM_element_s::name, smr_setReportError2, xDataTOM_smrLibraryID, and xDataTOME_getXData().

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:

static int xDataTOME_initializeElement ( statusMessageReporting smr,
xDataTOM_element element,
xDataTOM_element parent,
int  ordinal,
int  index,
char const *  name 
)
static

Definition at line 207 of file xDataTOM.cc.

View newest version in sPHENIX GitHub at line 207 of file xDataTOM.cc

References xDataTOM_element_s::attributes, xDataTOM_element_s::children, xDataTOM_element_s::index, xDataTOM_element_s::name, xDataTOM_element_s::next, xDataTOM_element_s::numberOfChildren, xDataTOM_element_s::ordinal, xDataTOM_element_s::parent, smr_allocateCopyString2, xDataTOM_element_s::xDataInfo, xDataTOM_initialize_xData(), and xDataTOMAL_initial().

Referenced by xDataTOM_initializeTOM(), and xDataTOM_mallocElement().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation