Geant4  10.02.p01
MCGIDI_reaction.cc File Reference
#include <string.h>
#include <cmath>
#include <PoPs.h>
#include "MCGIDI.h"
#include "MCGIDI_misc.h"
#include "MCGIDI_private.h"
+ Include dependency graph for MCGIDI_reaction.cc:

Go to the source code of this file.

Macros

#define nParticleChanges   6
 

Functions

static int MCGIDI_reaction_initialize2 (statusMessageReporting *smr, MCGIDI_reaction *reaction)
 
static int MCGIDI_reaction_particleChanges (MCGIDI_POP *projectile, MCGIDI_POP *target, MCGIDI_productsInfo *productsInfo, int n1, int *particlesChanges)
 
static int MCGIDI_reaction_ParseReactionTypeAndDetermineProducts (statusMessageReporting *smr, MCGIDI_POPs *pops, MCGIDI_reaction *reaction)
 
static int MCGIDI_reaction_ParseDetermineReactionProducts (statusMessageReporting *smr, MCGIDI_POPs *pops, MCGIDI_outputChannel *outputChannel, MCGIDI_productsInfo *productsInfo, MCGIDI_reaction *reaction, double *finalQ, int level)
 
static int MCGIDI_reaction_addReturnProduct (statusMessageReporting *smr, MCGIDI_productsInfo *productsInfo, int ID, MCGIDI_product *product, MCGIDI_reaction *reaction, int transportable)
 
static int MCGIDI_reaction_setENDL_CSNumbers (statusMessageReporting *smr, MCGIDI_reaction *reaction)
 
MCGIDI_reaction * MCGIDI_reaction_new (statusMessageReporting *smr)
 
int MCGIDI_reaction_initialize (statusMessageReporting *smr, MCGIDI_reaction *reaction)
 
MCGIDI_reaction * MCGIDI_reaction_free (statusMessageReporting *smr, MCGIDI_reaction *reaction)
 
int MCGIDI_reaction_release (statusMessageReporting *smr, MCGIDI_reaction *reaction)
 
int MCGIDI_reaction_parseFromTOM (statusMessageReporting *smr, xDataTOM_element *element, MCGIDI_target_heated *target, MCGIDI_POPs *pops, MCGIDI_reaction *reaction)
 
enum MCGIDI_reactionType MCGIDI_reaction_getReactionType (statusMessageReporting *, MCGIDI_reaction *reaction)
 
MCGIDI_target_heated * MCGIDI_reaction_getTargetHeated (statusMessageReporting *, MCGIDI_reaction *reaction)
 
double MCGIDI_reaction_getProjectileMass_MeV (statusMessageReporting *smr, MCGIDI_reaction *reaction)
 
double MCGIDI_reaction_getTargetMass_MeV (statusMessageReporting *smr, MCGIDI_reaction *reaction)
 
int MCGIDI_reaction_getDomain (statusMessageReporting *, MCGIDI_reaction *reaction, double *EMin, double *EMax)
 
int MCGIDI_reaction_fixDomains (statusMessageReporting *, MCGIDI_reaction *reaction, double EMin, double EMax, nfu_status *status)
 
double MCGIDI_reaction_getCrossSectionAtE (statusMessageReporting *smr, MCGIDI_reaction *reaction, MCGIDI_quantitiesLookupModes &modes, bool sampling)
 
double MCGIDI_reaction_getFinalQ (statusMessageReporting *, MCGIDI_reaction *reaction, MCGIDI_quantitiesLookupModes &)
 
int MCGIDI_reaction_getENDF_MTNumber (MCGIDI_reaction *reaction)
 
int MCGIDI_reaction_getENDL_CSNumbers (MCGIDI_reaction *reaction, int *S)
 
MCGIDI_productsInfo * MCGIDI_reaction_getProductsInfo (MCGIDI_reaction *reaction)
 
int MCGIDI_reaction_recast (statusMessageReporting *smr, MCGIDI_reaction *reaction, GIDI_settings &, GIDI_settings_particle const *projectileSettings, double temperature_MeV, ptwXPoints *totalGroupedCrossSection)
 
int MCGIDI_productsInfo_getNumberOfUniqueProducts (MCGIDI_productsInfo *productsInfo)
 
int MCGIDI_productsInfo_getPoPsIndexAtIndex (MCGIDI_productsInfo *productsInfo, int index)
 
enum MCGIDI_productMultiplicityType MCGIDI_productsInfo_getMultiplicityTypeAtIndex (MCGIDI_productsInfo *productsInfo, int index)
 
int MCGIDI_productsInfo_getIntegerMultiplicityAtIndex (MCGIDI_productsInfo *productsInfo, int index)
 
int MCGIDI_productsInfo_getTransportableAtIndex (MCGIDI_productsInfo *productsInfo, int index)
 

Macro Definition Documentation

#define nParticleChanges   6

Function Documentation

int MCGIDI_productsInfo_getIntegerMultiplicityAtIndex ( MCGIDI_productsInfo *  productsInfo,
int  index 
)

Definition at line 550 of file MCGIDI_reaction.cc.

enum MCGIDI_productMultiplicityType MCGIDI_productsInfo_getMultiplicityTypeAtIndex ( MCGIDI_productsInfo *  productsInfo,
int  index 
)

Definition at line 542 of file MCGIDI_reaction.cc.

int MCGIDI_productsInfo_getNumberOfUniqueProducts ( MCGIDI_productsInfo *  productsInfo)

Definition at line 527 of file MCGIDI_reaction.cc.

int MCGIDI_productsInfo_getPoPsIndexAtIndex ( MCGIDI_productsInfo *  productsInfo,
int  index 
)

Definition at line 534 of file MCGIDI_reaction.cc.

int MCGIDI_productsInfo_getTransportableAtIndex ( MCGIDI_productsInfo *  productsInfo,
int  index 
)

Definition at line 558 of file MCGIDI_reaction.cc.

static int MCGIDI_reaction_addReturnProduct ( statusMessageReporting *  smr,
MCGIDI_productsInfo *  productsInfo,
int  ID,
MCGIDI_product *  product,
MCGIDI_reaction *  reaction,
int  transportable 
)
static

Definition at line 279 of file MCGIDI_reaction.cc.

References MCGIDI_misc_updateTransportabilitiesMap2().

Referenced by MCGIDI_reaction_ParseDetermineReactionProducts().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MCGIDI_reaction_fixDomains ( statusMessageReporting *  ,
MCGIDI_reaction *  reaction,
double  EMin,
double  EMax,
nfu_status *  status 
)

Definition at line 366 of file MCGIDI_reaction.cc.

References ptwXY_dullEdges().

Referenced by MCGIDI_target_heated_read().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

MCGIDI_reaction* MCGIDI_reaction_free ( statusMessageReporting *  smr,
MCGIDI_reaction *  reaction 
)

Definition at line 60 of file MCGIDI_reaction.cc.

References MCGIDI_reaction_release(), and smr_freeMemory().

Referenced by MCGIDI_reaction_new().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double MCGIDI_reaction_getCrossSectionAtE ( statusMessageReporting *  smr,
MCGIDI_reaction *  reaction,
MCGIDI_quantitiesLookupModes &  modes,
bool  sampling 
)

Definition at line 380 of file MCGIDI_reaction.cc.

References ptwX_getPointAtIndex(), and ptwXY_getValueAtX().

Referenced by MCGIDI_target_heated_getIndexReactionCrossSectionAtE().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MCGIDI_reaction_getDomain ( statusMessageReporting *  ,
MCGIDI_reaction *  reaction,
double *  EMin,
double *  EMax 
)

Definition at line 350 of file MCGIDI_reaction.cc.

Referenced by MCGIDI_outputChannel_getDomain(), and MCGIDI_target_heated_read().

+ Here is the caller graph for this function:

int MCGIDI_reaction_getENDF_MTNumber ( MCGIDI_reaction *  reaction)

Definition at line 415 of file MCGIDI_reaction.cc.

Referenced by G4GIDI_target::init(), MCGIDI_reaction_ParseReactionTypeAndDetermineProducts(), and MCGIDI_reaction_setENDL_CSNumbers().

+ Here is the caller graph for this function:

int MCGIDI_reaction_getENDL_CSNumbers ( MCGIDI_reaction *  reaction,
int *  S 
)

Definition at line 422 of file MCGIDI_reaction.cc.

double MCGIDI_reaction_getFinalQ ( statusMessageReporting *  ,
MCGIDI_reaction *  reaction,
MCGIDI_quantitiesLookupModes &   
)

Definition at line 408 of file MCGIDI_reaction.cc.

Referenced by MCGIDI_target_heated_getIndexReactionFinalQ().

+ Here is the caller graph for this function:

MCGIDI_productsInfo* MCGIDI_reaction_getProductsInfo ( MCGIDI_reaction *  reaction)

Definition at line 489 of file MCGIDI_reaction.cc.

double MCGIDI_reaction_getProjectileMass_MeV ( statusMessageReporting *  smr,
MCGIDI_reaction *  reaction 
)

Definition at line 336 of file MCGIDI_reaction.cc.

References MCGIDI_target_heated_getProjectileMass_MeV().

Referenced by MCGIDI_outputChannel_getProjectileMass_MeV(), MCGIDI_outputChannel_parseFromTOM(), and MCGIDI_outputChannel_sampleProductsAtE().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

enum MCGIDI_reactionType MCGIDI_reaction_getReactionType ( statusMessageReporting *  ,
MCGIDI_reaction *  reaction 
)

Definition at line 322 of file MCGIDI_reaction.cc.

Referenced by MCGIDI_target_getReactionTypeAtIndex().

+ Here is the caller graph for this function:

MCGIDI_target_heated* MCGIDI_reaction_getTargetHeated ( statusMessageReporting *  ,
MCGIDI_reaction *  reaction 
)

Definition at line 329 of file MCGIDI_reaction.cc.

Referenced by MCGIDI_outputChannel_getTargetHeated().

+ Here is the caller graph for this function:

double MCGIDI_reaction_getTargetMass_MeV ( statusMessageReporting *  smr,
MCGIDI_reaction *  reaction 
)

Definition at line 343 of file MCGIDI_reaction.cc.

References MCGIDI_target_heated_getTargetMass_MeV().

Referenced by MCGIDI_outputChannel_getTargetMass_MeV(), MCGIDI_outputChannel_parseFromTOM(), and MCGIDI_outputChannel_sampleProductsAtE().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MCGIDI_reaction_initialize ( statusMessageReporting *  smr,
MCGIDI_reaction *  reaction 
)

Definition at line 42 of file MCGIDI_reaction.cc.

References MCGIDI_reaction_initialize2().

Referenced by MCGIDI_reaction_new(), and MCGIDI_reaction_parseFromTOM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int MCGIDI_reaction_initialize2 ( statusMessageReporting *  smr,
MCGIDI_reaction *  reaction 
)
static

Definition at line 51 of file MCGIDI_reaction.cc.

References xDataTOMAL_initial().

Referenced by MCGIDI_reaction_initialize(), and MCGIDI_reaction_release().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

MCGIDI_reaction* MCGIDI_reaction_new ( statusMessageReporting *  smr)

Definition at line 31 of file MCGIDI_reaction.cc.

References MCGIDI_reaction_free(), and MCGIDI_reaction_initialize().

+ Here is the call graph for this function:

static int MCGIDI_reaction_ParseDetermineReactionProducts ( statusMessageReporting *  smr,
MCGIDI_POPs *  pops,
MCGIDI_outputChannel *  outputChannel,
MCGIDI_productsInfo *  productsInfo,
MCGIDI_reaction *  reaction,
double *  finalQ,
int  level 
)
static

Definition at line 202 of file MCGIDI_reaction.cc.

References MCGIDI_outputChannel_getProductAtIndex(), MCGIDI_outputChannel_getQ_MeV(), MCGIDI_outputChannel_numberOfProducts(), MCGIDI_reaction_addReturnProduct(), and PoPs_particleIndex().

Referenced by MCGIDI_reaction_ParseReactionTypeAndDetermineProducts().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MCGIDI_reaction_parseFromTOM ( statusMessageReporting *  smr,
xDataTOM_element *  element,
MCGIDI_target_heated *  target,
MCGIDI_POPs *  pops,
MCGIDI_reaction *  reaction 
)

Definition at line 84 of file MCGIDI_reaction.cc.

References MCGIDI_misc_dataFromElement2ptwXYPointsInUnitsOf(), MCGIDI_outputChannel_parseFromTOM(), MCGIDI_reaction_initialize(), MCGIDI_reaction_ParseReactionTypeAndDetermineProducts(), MCGIDI_reaction_release(), ptwXY_getXMax(), ptwXY_getXMin(), xDataTOM_getAttributesValueInElement(), xDataTOME_convertAttributeToInteger(), xDataTOME_copyAttributionList(), xDataTOME_getInterpolation(), and xDataTOME_getOneElementByName().

Referenced by MCGIDI_target_heated_parseReaction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int MCGIDI_reaction_ParseReactionTypeAndDetermineProducts ( statusMessageReporting *  smr,
MCGIDI_POPs *  pops,
MCGIDI_reaction *  reaction 
)
static

Definition at line 129 of file MCGIDI_reaction.cc.

References MCGIDI_reaction_getENDF_MTNumber(), MCGIDI_reaction_ParseDetermineReactionProducts(), MCGIDI_reaction_particleChanges(), MCGIDI_reaction_setENDL_CSNumbers(), and nParticleChanges.

Referenced by MCGIDI_reaction_parseFromTOM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int MCGIDI_reaction_particleChanges ( MCGIDI_POP *  projectile,
MCGIDI_POP *  target,
MCGIDI_productsInfo *  productsInfo,
int  n1,
int *  particlesChanges 
)
static

Definition at line 177 of file MCGIDI_reaction.cc.

References PoPs_particleIndex().

Referenced by MCGIDI_reaction_ParseReactionTypeAndDetermineProducts().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MCGIDI_reaction_recast ( statusMessageReporting *  smr,
MCGIDI_reaction *  reaction,
GIDI_settings ,
GIDI_settings_particle const *  projectileSettings,
double  temperature_MeV,
ptwXPoints *  totalGroupedCrossSection 
)

Definition at line 496 of file MCGIDI_reaction.cc.

References GIDI_settings_particle::getGroup(), GIDI_settings_particle::groupFunction(), ptwX_add_ptwX(), ptwX_free(), and ptwX_getPointAtIndex().

Referenced by MCGIDI_target_heated_recast().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MCGIDI_reaction_release ( statusMessageReporting *  smr,
MCGIDI_reaction *  reaction 
)

Definition at line 69 of file MCGIDI_reaction.cc.

References MCGIDI_outputChannel_release(), MCGIDI_reaction_initialize2(), ptwX_free(), ptwXY_free(), smr_freeMemory(), and xDataTOMAL_release().

Referenced by MCGIDI_reaction_free(), MCGIDI_reaction_parseFromTOM(), and MCGIDI_target_heated_release().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int MCGIDI_reaction_setENDL_CSNumbers ( statusMessageReporting *  smr,
MCGIDI_reaction *  reaction 
)
static

Definition at line 430 of file MCGIDI_reaction.cc.

References MCGIDI_reaction_getENDF_MTNumber().

Referenced by MCGIDI_reaction_ParseReactionTypeAndDetermineProducts().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: