Geant4.10
|
#include "Randomize.hh"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cmath>
#include <tpia_target.h>
#include <tpia_misc.h>
#include <string>
Go to the source code of this file.
Data Structures | |
struct | ZSymbol |
Definition at line 403 of file tpia_misc.cc.
References CLHEP::HepRandomEngine::flat(), and CLHEP::HepRandom::getTheEngine().
Referenced by G4GIDI_target::sampleChannelCrossSectionAtE(), tpia_decayChannel_sampleProductsAtE(), tpia_Legendre_SampleEp(), and tpia_misc_sampleEqualProbableBin().
double* tpia_misc_get2d_xShared_yHistogram_data | ( | statusMessageReporting * | smr, |
xData_element * | element, | ||
xData_Int * | start, | ||
xData_Int * | end, | ||
xData_Int * | length | ||
) |
Definition at line 268 of file tpia_misc.cc.
References xDataType_s::end, xDataType_s::length, xDataType_s::start, xData_2d_xShared_yHistogram_copyData(), xData_addToAccessed(), xData_getOneElementByTagName(), and xData_element_s::xDataTypeInfo.
Referenced by tpia_misc_get2d_xShared_yHistogram_data_Grouped().
int tpia_misc_get2d_xShared_yHistogram_data_Grouped | ( | statusMessageReporting * | smr, |
xData_element * | element, | ||
tpia_1dData * | group | ||
) |
Definition at line 289 of file tpia_misc.cc.
References tpia_1dData_s::data, tpia_1dData_s::end, tpia_1dData_s::length, tpia_1dData_s::start, and tpia_misc_get2d_xShared_yHistogram_data().
Referenced by tpia_channel_getFromElement(), and tpia_multiplicity_getFromElement().
double* tpia_misc_get2dx_y_data | ( | statusMessageReporting * | smr, |
xData_element * | element, | ||
xData_Int * | length | ||
) |
Definition at line 228 of file tpia_misc.cc.
References xData_2d_xy_allocateCopyData(), xData_addToAccessed(), xData_getOneElementByTagName(), xData_is_2d_xy(), and xData_element_s::xDataTypeInfo.
Referenced by tpia_multiplicity_getFromElement().
double* tpia_misc_get2dxindex_y_data | ( | statusMessageReporting * | smr, |
xData_element * | element, | ||
xData_Int * | start, | ||
xData_Int * | end, | ||
double * | xValues | ||
) |
Definition at line 248 of file tpia_misc.cc.
References xDataType_s::end, xDataType_s::start, xData_2d_xindex_y_toFilledYs(), xData_addToAccessed(), xData_getOneElementByTagName(), xData_is_2d_xindex_y(), and xData_element_s::xDataTypeInfo.
Referenced by tpia_channel_getFromElement().
tpia_EqualProbableBinSpectrum* tpia_misc_getEqualProbableBin | ( | statusMessageReporting * | smr, |
xData_element * | parent, | ||
xData_Int * | n, | ||
xData_Int * | nBins | ||
) |
Definition at line 317 of file tpia_misc.cc.
References tpia_misc_getEqualProbableBins(), tpia_misc_setMessageError_Element(), xData_addToAccessed(), xData_convertAttributeTo_xData_Int(), and xData_getOneElementByTagName().
Referenced by tpia_angular_getFromElement().
tpia_EqualProbableBinSpectrum* tpia_misc_getEqualProbableBins | ( | statusMessageReporting * | smr, |
xData_element * | parent, | ||
const char * | name, | ||
xData_Int | nBins, | ||
xData_Int * | n | ||
) |
Definition at line 333 of file tpia_misc.cc.
References xData_elementListItem_s::element, xData_elementList_s::items, xData_elementList_s::n, tpia_misc_setMessageError_Element(), xData_1d_x_copyData(), xData_addToAccessed(), xData_convertAttributeTo_xData_Int(), xData_convertAttributeToDouble(), xData_free(), xData_freeElementList(), xData_getElements_xDataElement(), xData_getElementsByTagNameAndSort(), and xData_malloc2.
Referenced by tpia_angularEnergy_getFromElement(), and tpia_misc_getEqualProbableBin().
double tpia_misc_getPointwiseCrossSectionAtE | ( | statusMessageReporting * | , |
tpia_1dData * | crossSection, | ||
double * | energyGrid, | ||
xData_Int | index, | ||
double | e_in | ||
) |
Definition at line 298 of file tpia_misc.cc.
References tpia_1dData_s::data, and tpia_1dData_s::start.
Referenced by tpia_channel_getCrossSectionAtE(), and tpia_target_heated_getTotalCrossSectionAtE().
Definition at line 76 of file tpia_misc.cc.
Referenced by tpia_misc_symbolToZ(), and tpia_misc_ZToSymbol().
char* tpia_misc_pointerToAttributeIfAllOk | ( | statusMessageReporting * | smr, |
xData_element * | element, | ||
const char * | path, | ||
int | required, | ||
xData_attributionList * | attributes, | ||
const char * | name, | ||
const char * | file, | ||
int | line | ||
) |
Definition at line 163 of file tpia_misc.cc.
References smr_isOk(), smr_setMessageError(), tpia_misc_setMessageError_Element(), and xData_getAttributesValue().
int tpia_misc_sampleEqualProbableBin | ( | statusMessageReporting * | , |
tpia_decaySamplingInfo * | decaySamplingInfo, | ||
double | e_in, | ||
int | nBins, | ||
tpia_EqualProbableBinSpectra * | binned, | ||
double * | value_ | ||
) |
Definition at line 420 of file tpia_misc.cc.
References tpia_samplingMethods_s::angular_equalProbableBinMethod, tpia_EqualProbableBinSpectrum_s::bins, tpia_EqualProbableBinSpectra_s::energies, int(), tpia_EqualProbableBinSpectra_s::numberOfEs, tpia_decaySamplingInfo_s::rng, tpia_decaySamplingInfo_s::rngState, tpia_decaySamplingInfo_s::samplingMethods, tpia_misc_drng(), tpia_samplingMethods_isLinear, and tpia_EqualProbableBinSpectrum_s::value.
Referenced by tpia_angular_SampleMu(), tpia_angularEnergy_SampleEp(), and tpia_Legendre_SampleEp().
int tpia_misc_setMessageError_Element | ( | statusMessageReporting * | smr, |
void * | userInterface, | ||
xData_element * | element, | ||
const char * | file, | ||
int | line, | ||
int | code, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 183 of file tpia_misc.cc.
References xData_docInfo_s::column, xData_element_s::docInfo, free(), xData_element_s::fullName, xData_docInfo_s::line, smr_setMessageError(), smr_vallocateFormatMessage(), smr_vsetMessageError(), and status.
Referenced by tpia_angularEnergy_getFromElement(), tpia_frame_setFromElement(), tpia_Legendre_getFromElement(), tpia_misc_getEqualProbableBin(), tpia_misc_getEqualProbableBins(), tpia_misc_pointerToAttributeIfAllOk(), tpia_multiplicity_getFromElement(), tpia_multiplicity_getTimeScaleFromElement(), tpia_product_getFromElement(), tpia_target_heated_read(), and tpia_target_read().
int tpia_misc_symbolToZ | ( | const char * | Z | ) |
Definition at line 92 of file tpia_misc.cc.
References n, symbol, and tpia_misc_NumberOfZSymbols().
Referenced by tpia_miscNameToZAm().
const char* tpia_misc_ZToSymbol | ( | int | iZ | ) |
Definition at line 83 of file tpia_misc.cc.
References symbol, and tpia_misc_NumberOfZSymbols().
Referenced by G4GIDI_Misc_Z_A_m_ToName().
int tpia_miscNameToZAm | ( | statusMessageReporting * | smr, |
const char * | name, | ||
int * | Z, | ||
int * | A, | ||
int * | m | ||
) |
Definition at line 105 of file tpia_misc.cc.
References int(), n, smr_isOk(), smr_setMessageError(), and tpia_misc_symbolToZ().
Referenced by G4GIDI_Misc_channelCompound(), and tpia_particle_getInternalID().