Geant4  10.03
MCGIDI_target.cc File Reference
#include <map>
#include <string.h>
#include <cmath>
#include "MCGIDI.h"
#include "MCGIDI_misc.h"
#include <xDataTOM_importXML_private.h>
+ Include dependency graph for MCGIDI_target.cc:

Go to the source code of this file.

Functions

static int _MCGIDI_target_releaseAndReturnOne (statusMessageReporting *smr, MCGIDI_target *target)
 
MCGIDI_target * MCGIDI_target_new (statusMessageReporting *smr)
 
int MCGIDI_target_initialize (statusMessageReporting *, MCGIDI_target *target)
 
MCGIDI_target * MCGIDI_target_newRead (statusMessageReporting *smr, const char *fileName)
 
int MCGIDI_target_readFromMapViaPoPIDs (statusMessageReporting *smr, MCGIDI_target *target, MCGIDI_map *map, const char *evaluation, int projectile_PoPID, int target_PoPID)
 
int MCGIDI_target_readFromMap (statusMessageReporting *smr, MCGIDI_target *target, MCGIDI_map *map, const char *evaluation, const char *projectileName, const char *targetName)
 
MCGIDI_target * MCGIDI_target_newReadFromMapViaPoPIDs (statusMessageReporting *smr, MCGIDI_map *map, const char *evaluation, int projectile_PoPID, int target_PoPID)
 
MCGIDI_target * MCGIDI_target_newReadFromMap (statusMessageReporting *smr, MCGIDI_map *map, const char *evaluation, const char *projectileName, const char *targetName)
 
MCGIDI_target * MCGIDI_target_free (statusMessageReporting *smr, MCGIDI_target *target)
 
int MCGIDI_target_release (statusMessageReporting *smr, MCGIDI_target *target)
 
int MCGIDI_target_read (statusMessageReporting *smr, MCGIDI_target *target, const char *fileName)
 
char const * MCGIDI_target_getAttributesValue (statusMessageReporting *, MCGIDI_target *target, char const *name)
 
int MCGIDI_target_getTemperatures (statusMessageReporting *, MCGIDI_target *target, double *temperatures)
 
int MCGIDI_target_readHeatedTarget (statusMessageReporting *smr, MCGIDI_target *target, int index)
 
MCGIDI_target_heated * MCGIDI_target_getHeatedTargetAtIndex_ReadIfNeeded (statusMessageReporting *smr, MCGIDI_target *target, int index)
 
MCGIDI_target_heated * MCGIDI_target_getHeatedTargetAtTIndex (statusMessageReporting *smr, MCGIDI_target *target, int index)
 
int MCGIDI_target_numberOfReactions (statusMessageReporting *smr, MCGIDI_target *target)
 
enum MCGIDI_reactionType MCGIDI_target_getReactionTypeAtIndex (statusMessageReporting *smr, MCGIDI_target *target, int index)
 
MCGIDI_reaction * MCGIDI_target_getReactionAtIndex (MCGIDI_target *target, int index)
 
MCGIDI_reaction * MCGIDI_target_getReactionAtIndex_smr (statusMessageReporting *smr, MCGIDI_target *target, int index)
 
int MCGIDI_target_numberOfProductionReactions (statusMessageReporting *, MCGIDI_target *)
 
double MCGIDI_target_getTotalCrossSectionAtTAndE (statusMessageReporting *smr, MCGIDI_target *target, MCGIDI_quantitiesLookupModes &modes, bool sampling)
 
int MCGIDI_target_getDomain (statusMessageReporting *smr, MCGIDI_target *target, double *EMin, double *EMax)
 
double MCGIDI_target_getIndexReactionCrossSectionAtE (statusMessageReporting *smr, MCGIDI_target *target, int index, MCGIDI_quantitiesLookupModes &modes, bool sampling)
 
int MCGIDI_target_sampleReaction (statusMessageReporting *smr, MCGIDI_target *target, MCGIDI_quantitiesLookupModes &modes, double totalXSec, double(*userrng)(void *), void *rngState)
 
int MCGIDI_target_sampleNullReactionProductsAtE (statusMessageReporting *smr, MCGIDI_target *target, MCGIDI_quantitiesLookupModes &modes, MCGIDI_decaySamplingInfo *decaySamplingInfo, MCGIDI_sampledProductsDatas *productDatas)
 
int MCGIDI_target_sampleIndexReactionProductsAtE (statusMessageReporting *smr, MCGIDI_target *target, int index, MCGIDI_quantitiesLookupModes &modes, MCGIDI_decaySamplingInfo *decaySamplingInfo, MCGIDI_sampledProductsDatas *productData)
 
double MCGIDI_target_getIndexReactionFinalQ (statusMessageReporting *smr, MCGIDI_target *target, int index, MCGIDI_quantitiesLookupModes &modes)
 
std::map< int, enum
MCGIDI_transportability >
const * 
MCGIDI_target_getUniqueProducts (statusMessageReporting *smr, MCGIDI_target *target)
 
int MCGIDI_target_recast (statusMessageReporting *smr, MCGIDI_target *target, GIDI_settings &settings)
 

Function Documentation

static int _MCGIDI_target_releaseAndReturnOne ( statusMessageReporting *  smr,
MCGIDI_target *  target 
)
static

Definition at line 520 of file MCGIDI_target.cc.

References MCGIDI_target_release().

Referenced by MCGIDI_target_read().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

MCGIDI_target* MCGIDI_target_free ( statusMessageReporting *  smr,
MCGIDI_target *  target 
)

Definition at line 114 of file MCGIDI_target.cc.

References MCGIDI_target_release(), and smr_freeMemory().

Referenced by MCGIDI_target_new(), and G4GIDI_target::~G4GIDI_target().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

char const* MCGIDI_target_getAttributesValue ( statusMessageReporting *  ,
MCGIDI_target *  target,
char const *  name 
)

Definition at line 245 of file MCGIDI_target.cc.

References xDataTOMAL_getAttributesValue().

+ Here is the call graph for this function:

int MCGIDI_target_getDomain ( statusMessageReporting *  smr,
MCGIDI_target *  target,
double *  EMin,
double *  EMax 
)

Definition at line 382 of file MCGIDI_target.cc.

References MCGIDI_target_heated_getReactionsDomain(), and MCGIDI_target_numberOfReactions().

+ Here is the call graph for this function:

MCGIDI_target_heated* MCGIDI_target_getHeatedTargetAtIndex_ReadIfNeeded ( statusMessageReporting *  smr,
MCGIDI_target *  target,
int  index 
)

Definition at line 289 of file MCGIDI_target.cc.

References MCGIDI_target_readHeatedTarget().

+ Here is the call graph for this function:

MCGIDI_target_heated* MCGIDI_target_getHeatedTargetAtTIndex ( statusMessageReporting *  smr,
MCGIDI_target *  target,
int  index 
)

Definition at line 301 of file MCGIDI_target.cc.

double MCGIDI_target_getIndexReactionCrossSectionAtE ( statusMessageReporting *  smr,
MCGIDI_target *  target,
int  index,
MCGIDI_quantitiesLookupModes &  modes,
bool  sampling 
)

Definition at line 402 of file MCGIDI_target.cc.

References MCGIDI_target_heated_getIndexReactionCrossSectionAtE().

Referenced by MCGIDI_target_sampleReaction(), G4GIDI_target::sampleChannelCrossSectionAtE(), and G4GIDI_target::sumChannelCrossSectionAtE().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double MCGIDI_target_getIndexReactionFinalQ ( statusMessageReporting *  smr,
MCGIDI_target *  target,
int  index,
MCGIDI_quantitiesLookupModes &  modes 
)

Definition at line 493 of file MCGIDI_target.cc.

References MCGIDI_target_heated_getIndexReactionFinalQ().

+ Here is the call graph for this function:

MCGIDI_reaction* MCGIDI_target_getReactionAtIndex ( MCGIDI_target *  target,
int  index 
)

Definition at line 333 of file MCGIDI_target.cc.

References MCGIDI_target_heated_getReactionAtIndex().

+ Here is the call graph for this function:

MCGIDI_reaction* MCGIDI_target_getReactionAtIndex_smr ( statusMessageReporting *  smr,
MCGIDI_target *  target,
int  index 
)

Definition at line 340 of file MCGIDI_target.cc.

References MCGIDI_target_heated_getReactionAtIndex_smr().

+ Here is the call graph for this function:

enum MCGIDI_reactionType MCGIDI_target_getReactionTypeAtIndex ( statusMessageReporting *  smr,
MCGIDI_target *  target,
int  index 
)

Definition at line 323 of file MCGIDI_target.cc.

References MCGIDI_reaction_getReactionType(), and MCGIDI_target_heated_getReactionAtIndex_smr().

+ Here is the call graph for this function:

int MCGIDI_target_getTemperatures ( statusMessageReporting *  ,
MCGIDI_target *  target,
double *  temperatures 
)

Definition at line 252 of file MCGIDI_target.cc.

Referenced by G4GIDI_target::getTemperatures().

+ Here is the caller graph for this function:

double MCGIDI_target_getTotalCrossSectionAtTAndE ( statusMessageReporting *  smr,
MCGIDI_target *  target,
MCGIDI_quantitiesLookupModes &  modes,
bool  sampling 
)

Definition at line 358 of file MCGIDI_target.cc.

References MCGIDI_target_heated_getTotalCrossSectionAtE().

Referenced by G4GIDI_target::getTotalCrossSectionAtE().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::map<int, enum MCGIDI_transportability> const* MCGIDI_target_getUniqueProducts ( statusMessageReporting *  smr,
MCGIDI_target *  target 
)

Definition at line 501 of file MCGIDI_target.cc.

References MCGIDI_target_heated_getUniqueProducts().

+ Here is the call graph for this function:

int MCGIDI_target_initialize ( statusMessageReporting *  ,
MCGIDI_target *  target 
)

Definition at line 44 of file MCGIDI_target.cc.

Referenced by MCGIDI_target_new(), MCGIDI_target_read(), and MCGIDI_target_release().

+ Here is the caller graph for this function:

MCGIDI_target* MCGIDI_target_new ( statusMessageReporting *  smr)

Definition at line 33 of file MCGIDI_target.cc.

References MCGIDI_target_free(), and MCGIDI_target_initialize().

Referenced by MCGIDI_target_newRead().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

MCGIDI_target* MCGIDI_target_newRead ( statusMessageReporting *  smr,
const char *  fileName 
)

Definition at line 52 of file MCGIDI_target.cc.

References MCGIDI_target_new(), MCGIDI_target_read(), and smr_freeMemory().

Referenced by G4GIDI_target::init(), MCGIDI_target_newReadFromMap(), and MCGIDI_target_newReadFromMapViaPoPIDs().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

MCGIDI_target* MCGIDI_target_newReadFromMap ( statusMessageReporting *  smr,
MCGIDI_map *  map,
const char *  evaluation,
const char *  projectileName,
const char *  targetName 
)

Definition at line 99 of file MCGIDI_target.cc.

References MCGIDI_map_findTarget(), MCGIDI_target_newRead(), and smr_freeMemory().

+ Here is the call graph for this function:

MCGIDI_target* MCGIDI_target_newReadFromMapViaPoPIDs ( statusMessageReporting *  smr,
MCGIDI_map *  map,
const char *  evaluation,
int  projectile_PoPID,
int  target_PoPID 
)

Definition at line 85 of file MCGIDI_target.cc.

References MCGIDI_map_findTargetViaPoPIDs(), MCGIDI_target_newRead(), and smr_freeMemory().

+ Here is the call graph for this function:

int MCGIDI_target_numberOfProductionReactions ( statusMessageReporting *  ,
MCGIDI_target *   
)

Definition at line 347 of file MCGIDI_target.cc.

References MCGIDI_target_heated_numberOfProductionReactions().

Referenced by G4GIDI_target::getNumberOfProductionChannels().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MCGIDI_target_numberOfReactions ( statusMessageReporting *  smr,
MCGIDI_target *  target 
)

Definition at line 316 of file MCGIDI_target.cc.

References MCGIDI_target_heated_numberOfReactions().

Referenced by G4GIDI_target::getChannelIDs(), G4GIDI_target::getNumberOfChannels(), G4GIDI_target::init(), MCGIDI_target_getDomain(), and MCGIDI_target_sampleReaction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MCGIDI_target_read ( statusMessageReporting *  smr,
MCGIDI_target *  target,
const char *  fileName 
)

Definition at line 143 of file MCGIDI_target.cc.

References _MCGIDI_target_releaseAndReturnOne(), MCGIDI_misc_getAbsPath(), MCGIDI_misc_setMessageError_Element(), MCGIDI_target_initialize(), MCGIDI_target_readHeatedTarget(), MCGIDI_target_release(), xDataXML_convertAttributeToDouble(), xDataXML_freeDoc(), xDataXML_getAttributesValueInElement(), xDataXML_getDocumentsElement(), xDataXML_getFirstElement(), xDataXML_getNextElement(), and xDataXML_importFile2().

Referenced by MCGIDI_target_newRead(), MCGIDI_target_readFromMap(), and MCGIDI_target_readFromMapViaPoPIDs().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MCGIDI_target_readFromMap ( statusMessageReporting *  smr,
MCGIDI_target *  target,
MCGIDI_map *  map,
const char *  evaluation,
const char *  projectileName,
const char *  targetName 
)

Definition at line 74 of file MCGIDI_target.cc.

References MCGIDI_map_findTarget(), and MCGIDI_target_read().

+ Here is the call graph for this function:

int MCGIDI_target_readFromMapViaPoPIDs ( statusMessageReporting *  smr,
MCGIDI_target *  target,
MCGIDI_map *  map,
const char *  evaluation,
int  projectile_PoPID,
int  target_PoPID 
)

Definition at line 63 of file MCGIDI_target.cc.

References MCGIDI_map_findTargetViaPoPIDs(), and MCGIDI_target_read().

+ Here is the call graph for this function:

int MCGIDI_target_readHeatedTarget ( statusMessageReporting *  smr,
MCGIDI_target *  target,
int  index 
)

Definition at line 262 of file MCGIDI_target.cc.

References MCGIDI_target_heated_newRead().

Referenced by MCGIDI_target_getHeatedTargetAtIndex_ReadIfNeeded(), MCGIDI_target_read(), and G4GIDI_target::readTemperature().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MCGIDI_target_recast ( statusMessageReporting *  smr,
MCGIDI_target *  target,
GIDI_settings settings 
)

Definition at line 508 of file MCGIDI_target.cc.

References MCGIDI_target_heated_recast().

+ Here is the call graph for this function:

int MCGIDI_target_release ( statusMessageReporting *  smr,
MCGIDI_target *  target 
)

Definition at line 123 of file MCGIDI_target.cc.

References MCGIDI_target_heated_free(), MCGIDI_target_initialize(), smr_freeMemory(), and xDataTOMAL_release().

Referenced by _MCGIDI_target_releaseAndReturnOne(), MCGIDI_target_free(), and MCGIDI_target_read().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MCGIDI_target_sampleIndexReactionProductsAtE ( statusMessageReporting *  smr,
MCGIDI_target *  target,
int  index,
MCGIDI_quantitiesLookupModes &  modes,
MCGIDI_decaySamplingInfo *  decaySamplingInfo,
MCGIDI_sampledProductsDatas *  productData 
)

Definition at line 485 of file MCGIDI_target.cc.

References MCGIDI_target_heated_sampleIndexReactionProductsAtE().

+ Here is the call graph for this function:

int MCGIDI_target_sampleNullReactionProductsAtE ( statusMessageReporting *  smr,
MCGIDI_target *  target,
MCGIDI_quantitiesLookupModes &  modes,
MCGIDI_decaySamplingInfo *  decaySamplingInfo,
MCGIDI_sampledProductsDatas *  productDatas 
)

Definition at line 461 of file MCGIDI_target.cc.

References MCGIDI_sampledProducts_addProduct().

+ Here is the call graph for this function:

int MCGIDI_target_sampleReaction ( statusMessageReporting *  smr,
MCGIDI_target *  target,
MCGIDI_quantitiesLookupModes &  modes,
double  totalXSec,
double(*)(void *)  userrng,
void *  rngState 
)

Definition at line 426 of file MCGIDI_target.cc.

References MCGIDI_target_getIndexReactionCrossSectionAtE(), MCGIDI_target_heated_getReactionAtIndex(), and MCGIDI_target_numberOfReactions().

+ Here is the call graph for this function: