ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <string.h>
#include <cmath>
#include "MCGIDI_fromTOM.h"
#include "MCGIDI_misc.h"
#include "MCGIDI_private.h"
#include <nf_specialFunctions.h>
Go to the source code of this file.
MCGIDI_energy* MCGIDI_energy_free | ( | statusMessageReporting * | smr, |
MCGIDI_energy * | energy | ||
) |
Definition at line 65 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 65 of file MCGIDI_energy.cc
References MCGIDI_energy_release(), and smr_freeMemory().
Referenced by MCGIDI_distribution_release(), MCGIDI_energy_new(), MCGIDI_energy_parseFromTOM(), MCGIDI_energy_parseWeightFromTOM(), and MCGIDI_energy_release().
int MCGIDI_energy_initialize | ( | statusMessageReporting * | , |
MCGIDI_energy * | energy | ||
) |
Definition at line 57 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 57 of file MCGIDI_energy.cc
Referenced by MCGIDI_energy_new(), and MCGIDI_energy_release().
|
static |
Definition at line 486 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 486 of file MCGIDI_energy.cc
References e, G4Pow::GetInstance(), nfu_Okay, and G4Pow::powA().
Referenced by MCGIDI_energy_parseNBodyPhaseSpaceFromTOM().
MCGIDI_energy* MCGIDI_energy_new | ( | statusMessageReporting * | smr | ) |
Definition at line 46 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 46 of file MCGIDI_energy.cc
References energy, MCGIDI_energy_free(), MCGIDI_energy_initialize(), and smr_malloc2.
Referenced by MCGIDI_energy_parseFromTOM(), and MCGIDI_energy_parseWeightFromTOM().
|
static |
Definition at line 262 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 262 of file MCGIDI_energy.cc
References check_license::err(), MCGIDI_energyType_evaporation, MCGIDI_misc_dataFromElement2ptwXYPointsInUnitsOf(), MCGIDI_misc_PQUStringToDoubleInUnitOf(), xDataTOM_element_s::name, smr_setReportError2, smr_unknownID, MCGIDI_energy_s::theta, MCGIDI_energy_s::type, MCGIDI_energy_s::U, xDataTOM_getAttributesValueInElement(), and xDataTOME_getOneElementByName().
Referenced by MCGIDI_energy_parseFromTOM(), and MCGIDI_energy_parseWeightFromTOM().
int MCGIDI_energy_parseFromTOM | ( | statusMessageReporting * | smr, |
xDataTOM_element * | element, | ||
MCGIDI_distribution * | distribution, | ||
ptwXYPoints * | norms, | ||
enum MCGIDI_energyType | energyType, | ||
double | gammaEnergy_MeV | ||
) |
Definition at line 97 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 97 of file MCGIDI_energy.cc
References MCGIDI_energy_s::dists, MCGIDI_energy_s::e_inCOMFactor, energy, MCGIDI_distribution_s::energy, check_license::err(), MCGIDI_energy_s::frame, MCGIDI_energy_s::gammaEnergy_MeV, MCGIDI_energy_free(), MCGIDI_energy_new(), MCGIDI_energy_parseEvaporationFromTOM(), MCGIDI_energy_parseGeneralEvaporationFromTOM(), MCGIDI_energy_parseMadlandNixFromTOM(), MCGIDI_energy_parseNBodyPhaseSpaceFromTOM(), MCGIDI_energy_parseSimpleMaxwellianFissionFromTOM(), MCGIDI_energy_parseWattFromTOM(), MCGIDI_energy_parseWeightedFunctionalsFromTOM(), MCGIDI_energyType_discreteGamma, MCGIDI_energyType_linear, MCGIDI_energyType_primaryGamma, MCGIDI_fromTOM_pdfsOfXGivenW(), MCGIDI_misc_getProductFrame(), MCGIDI_product_getProjectileMass_MeV(), MCGIDI_product_getTargetMass_MeV(), MCGIDI_energy_s::primaryGammaMassFactor, MCGIDI_distribution_s::product, smr_setReportError2, smr_unknownID, MCGIDI_energy_s::type, xDataTOM_frame_invalid, xDataTOM_frame_lab, xDataTOM_getAttributesValueInElement(), and xDataTOME_getOneElementByName().
Referenced by MCGIDI_uncorrelated_parseFromTOM().
|
static |
Definition at line 210 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 210 of file MCGIDI_energy.cc
References check_license::err(), Acts::UnitConstants::g, MCGIDI_energy_s::g, MCGIDI_energy_s::gInterpolation, MCGIDI_energyType_generalEvaporation, MCGIDI_fromTOM_pdfOfX(), MCGIDI_misc_dataFromElement2ptwXYPointsInUnitsOf(), norm, printf(), ptwXY_free(), ptwXY_getInterpolation(), theta(), MCGIDI_energy_s::theta, MCGIDI_energy_s::type, and xDataTOME_getOneElementByName().
Referenced by MCGIDI_energy_parseFromTOM().
|
static |
Definition at line 310 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 310 of file MCGIDI_energy.cc
References MCGIDI_pdfOfX_s::cdf, MCGIDI_pdfsOfXGivenW_s::dist, MCGIDI_energy_s::dists, E, e, e1, e3, e5, check_license::err(), int(), MCGIDI_pdfsOfXGivenW_s::interpolationWY, MCGIDI_pdfsOfXGivenW_s::interpolationXY, BTOF::length, MCGIDI_energy_parseMadlandNixFromTOM_callback(), MCGIDI_energyType_MadlandNix, MCGIDI_misc_dataFromXYs2ptwXYPointsInUnitsOf(), MCGIDI_misc_PQUStringToDoubleInUnitOf(), n, xDataTOM_element_s::name, nfu_Okay, nfu_statusMessage(), norm, MCGIDI_pdfsOfXGivenW_s::numberOfWs, MCGIDI_pdfOfX_s::numberOfXs, MCGIDI_pdfOfX_s::pdf, ptwX_free(), ptwX_getPointAtIndex_Unsafely(), ptwXY_createFromFunction(), ptwXY_free(), ptwXY_getPointAtIndex_Unsafely(), ptwXY_getXYPairAtIndex(), ptwXY_interpolationLinLin, ptwXY_length(), ptwXY_normalize(), ptwXY_runningIntegral(), ptwXY_simpleCoalescePoints(), smr_malloc2, smr_setReportError2, smr_unknownID, MCGIDI_energy_s::type, MCGIDI_pdfsOfXGivenW_s::Ws, ptwXYPoint_s::x, xDataTOM_getAttributesValueInElement(), xDataTOME_getOneElementByName(), xDataTOME_getXDataIfID(), MCGIDI_pdfOfX_s::Xs, and ptwXYPoint_s::y.
Referenced by MCGIDI_energy_parseFromTOM().
|
static |
Definition at line 404 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 404 of file MCGIDI_energy.cc
References MCGIDI_energy_parseMadlandNixFromTOM_callback_g(), nfu_Okay, and Dataset::parameters.
Referenced by MCGIDI_energy_parseMadlandNixFromTOM().
|
static |
Definition at line 420 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 420 of file MCGIDI_energy.cc
References nf_exponentialIntegral(), nf_incompleteGammaFunction(), nf_incompleteGammaFunctionComplementary(), and nfu_Okay.
Referenced by MCGIDI_energy_parseMadlandNixFromTOM_callback().
|
static |
Definition at line 446 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 446 of file MCGIDI_energy.cc
References e, check_license::err(), MCGIDI_energy_s::g, mass, MCGIDI_energyNBodyPhaseSpace_s::mass, MCGIDI_energyNBodyPhaseSpace_s::massFactor, MCGIDI_AMU2MeV, MCGIDI_energy_NBodyPhaseSpacePDF_callback(), MCGIDI_energyType_NBodyPhaseSpace, MCGIDI_fromTOM_pdfOfX(), MCGIDI_misc_PQUStringToDouble(), MCGIDI_outputChannel_getQ_MeV(), MCGIDI_product_getMass_MeV(), xDataTOM_element_s::name, MCGIDI_energy_s::NBodyPhaseSpace, nfu_statusMessage(), norm, MCGIDI_energyNBodyPhaseSpace_s::numberOfProducts, MCGIDI_product_s::outputChannel, MCGIDI_distribution_s::product, ptwXY_createFromFunction(), ptwXY_free(), MCGIDI_energyNBodyPhaseSpace_s::Q_MeV, smr_isOk(), smr_setReportError2, smr_unknownID, MCGIDI_energy_s::type, xDataTOM_getAttributesValueInElement(), and xDataTOME_convertAttributeToInteger().
Referenced by MCGIDI_energy_parseFromTOM().
|
static |
Definition at line 241 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 241 of file MCGIDI_energy.cc
References check_license::err(), MCGIDI_energyType_simpleMaxwellianFission, MCGIDI_misc_dataFromElement2ptwXYPointsInUnitsOf(), MCGIDI_misc_PQUStringToDoubleInUnitOf(), xDataTOM_element_s::name, smr_setReportError2, smr_unknownID, MCGIDI_energy_s::theta, MCGIDI_energy_s::type, MCGIDI_energy_s::U, xDataTOM_getAttributesValueInElement(), and xDataTOME_getOneElementByName().
Referenced by MCGIDI_energy_parseFromTOM().
|
static |
Definition at line 283 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 283 of file MCGIDI_energy.cc
References check_license::err(), MCGIDI_energyType_Watt, MCGIDI_misc_dataFromElement2ptwXYPointsInUnitsOf(), MCGIDI_misc_PQUStringToDoubleInUnitOf(), xDataTOM_element_s::name, smr_setReportError2, smr_unknownID, MCGIDI_energy_s::type, MCGIDI_energy_s::U, MCGIDI_energy_s::Watt_a, MCGIDI_energy_s::Watt_b, xDataTOM_getAttributesValueInElement(), and xDataTOME_getOneElementByName().
Referenced by MCGIDI_energy_parseFromTOM().
|
static |
Definition at line 161 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 161 of file MCGIDI_energy.cc
References check_license::err(), MCGIDI_energy_parseWeightFromTOM(), MCGIDI_energyType_weightedFunctional, MCGIDI_energyWeightedFunctionals_s::numberOfWeights, MCGIDI_energy_s::type, MCGIDI_energyWeightedFunctionals_s::weightedFunctional, MCGIDI_energy_s::weightedFunctionals, xDataTOME_getFirstElement(), and xDataTOME_getNextElement().
Referenced by MCGIDI_energy_parseFromTOM().
|
static |
Definition at line 180 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 180 of file MCGIDI_energy.cc
References energy, MCGIDI_energyWeightedFunctional_s::energy, check_license::err(), MCGIDI_energy_free(), MCGIDI_energy_new(), MCGIDI_energy_parseEvaporationFromTOM(), MCGIDI_misc_dataFromElement2ptwXYPointsInUnitsOf(), xDataTOM_element_s::name, ptwXY_free(), smr_setReportError2, smr_unknownID, weight, MCGIDI_energyWeightedFunctional_s::weight, xDataTOME_getFirstElement(), and xDataTOME_getNextElement().
Referenced by MCGIDI_energy_parseWeightedFunctionalsFromTOM().
int MCGIDI_energy_release | ( | statusMessageReporting * | smr, |
MCGIDI_energy * | energy | ||
) |
Definition at line 74 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 74 of file MCGIDI_energy.cc
References MCGIDI_energy_s::dists, MCGIDI_energyWeightedFunctional_s::energy, MCGIDI_energy_s::g, MCGIDI_energy_free(), MCGIDI_energy_initialize(), MCGIDI_energyType_generalEvaporation, MCGIDI_energyType_NBodyPhaseSpace, MCGIDI_energyType_weightedFunctional, MCGIDI_sampling_pdfsOfX_release(), MCGIDI_sampling_pdfsOfXGivenW_release(), MCGIDI_energyWeightedFunctionals_s::numberOfWeights, ptwXY_free(), MCGIDI_energy_s::theta, MCGIDI_energy_s::type, MCGIDI_energy_s::Watt_a, MCGIDI_energy_s::Watt_b, MCGIDI_energyWeightedFunctional_s::weight, MCGIDI_energyWeightedFunctionals_s::weightedFunctional, and MCGIDI_energy_s::weightedFunctionals.
Referenced by MCGIDI_energy_free().
int MCGIDI_energy_sampleEnergy | ( | statusMessageReporting * | smr, |
MCGIDI_energy * | energy, | ||
MCGIDI_quantitiesLookupModes & | modes, | ||
MCGIDI_decaySamplingInfo * | decaySamplingInfo | ||
) |
Definition at line 497 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 497 of file MCGIDI_energy.cc
References MCGIDI_energy_s::dists, MCGIDI_energy_s::e_inCOMFactor, MCGIDI_decaySamplingInfo_s::Ep, MCGIDI_decaySamplingInfo_s::frame, MCGIDI_energy_s::frame, MCGIDI_energy_s::g, MCGIDI_energy_s::gammaEnergy_MeV, MCGIDI_quantitiesLookupModes::getProjectileEnergy(), MCGIDI_energy_s::gInterpolation, MCGIDI_pdfsOfXGivenW_sampled_s::interpolationXY, MCGIDI_energyNBodyPhaseSpace_s::massFactor, MCGIDI_energy_sampleEvaporation(), MCGIDI_energy_sampleSimpleMaxwellianFission(), MCGIDI_energy_sampleWatt(), MCGIDI_energy_sampleWeightedFunctional(), MCGIDI_energyType_discreteGamma, MCGIDI_energyType_evaporation, MCGIDI_energyType_generalEvaporation, MCGIDI_energyType_linear, MCGIDI_energyType_MadlandNix, MCGIDI_energyType_NBodyPhaseSpace, MCGIDI_energyType_primaryGamma, MCGIDI_energyType_simpleMaxwellianFission, MCGIDI_energyType_Watt, MCGIDI_energyType_weightedFunctional, MCGIDI_sampling_ptwXY_getValueAtX(), MCGIDI_sampling_sampleX_from_pdfOfX(), MCGIDI_sampling_sampleX_from_pdfsOfXGivenW(), MCGIDI_energy_s::NBodyPhaseSpace, MCGIDI_energy_s::primaryGammaMassFactor, MCGIDI_energyNBodyPhaseSpace_s::Q_MeV, MCGIDI_decaySamplingInfo_s::rng, MCGIDI_decaySamplingInfo_s::rngState, MCGIDI_pdfsOfXGivenW_sampled_s::smr, smr_isOk(), smr_setReportError2, smr_unknownID, theta(), MCGIDI_energy_s::theta, MCGIDI_energy_s::type, MCGIDI_energy_s::U, MCGIDI_pdfsOfXGivenW_sampled_s::w, MCGIDI_energy_s::Watt_a, MCGIDI_energy_s::Watt_b, and MCGIDI_pdfsOfXGivenW_sampled_s::x.
Referenced by MCGIDI_energy_sampleWeightedFunctional(), and MCGIDI_uncorrelated_sampleDistribution().
|
static |
Definition at line 587 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 587 of file MCGIDI_energy.cc
References a, b, c, MCGIDI_decaySamplingInfo_s::Ep, G4Exp(), MCGIDI_decaySamplingInfo_s::rng, MCGIDI_decaySamplingInfo_s::rngState, and x.
Referenced by MCGIDI_energy_sampleEnergy().
|
static |
Definition at line 561 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 561 of file MCGIDI_energy.cc
References a, b, c, MCGIDI_decaySamplingInfo_s::Ep, G4Exp(), M_PI, MCGIDI_decaySamplingInfo_s::rng, MCGIDI_decaySamplingInfo_s::rngState, and x.
Referenced by MCGIDI_energy_sampleEnergy().
|
static |
Definition at line 611 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 611 of file MCGIDI_energy.cc
References MCGIDI_decaySamplingInfo_s::Ep, G4cout, G4endl, G4Log(), ds::rand1, ds::rand2, MCGIDI_decaySamplingInfo_s::rng, MCGIDI_decaySamplingInfo_s::rngState, x, y, and z.
Referenced by MCGIDI_energy_sampleEnergy().
|
static |
Definition at line 641 of file MCGIDI_energy.cc.
View newest version in sPHENIX GitHub at line 641 of file MCGIDI_energy.cc
References MCGIDI_energyWeightedFunctional_s::energy, MCGIDI_quantitiesLookupModes::getProjectileEnergy(), MCGIDI_energy_sampleEnergy(), MCGIDI_sampling_ptwXY_getValueAtX(), MCGIDI_energyWeightedFunctionals_s::numberOfWeights, MCGIDI_decaySamplingInfo_s::rng, MCGIDI_decaySamplingInfo_s::rngState, weight, MCGIDI_energyWeightedFunctional_s::weight, MCGIDI_energyWeightedFunctionals_s::weightedFunctional, and MCGIDI_energy_s::weightedFunctionals.
Referenced by MCGIDI_energy_sampleEnergy().