53 init( fileName.c_str( ) );
60 int i, j, n, *p, *q, ir;
82 for( i = 0; i < n; i++ ) {
90 for( i = 0; i < n; i++ ) {
99 for( i = 0; i < n; i++ ) {
102 if( ( ir != 18 ) && ( ir != 19 ) && ( ir != 20 ) && ( ir != 21 ) && ( ir != 38 ) )
continue;
107 for( i = 0; i < n; i++ ) {
153 return(
target->targetPOP->Z );
160 return(
target->targetPOP->A );
167 return(
target->targetPOP->m );
202 if( method ==
"constant" ) {
204 if( method ==
"linear" ) {
245 vector<channelID> *listOfChannels;
247 listOfChannels =
new vector<channelID>( n );
248 for( i = 0; i < n; i++ ) {
252 return( listOfChannels );
315 for( i = 0; i < nIndices; i++ )
323 double (*rng)(
void * ),
void *rngState ) {
333 for( i = 0; i < nIndices - 1; i++ ) {
335 if( xsec >= rxsec )
break;
337 return( indices[i] );
359 decaySamplingInfo.
rng = rng;
360 decaySamplingInfo.
rngState = rngState;
366 return( decaySamplingInfo.
mu );
393 double (*rng)(
void * ),
void *rngState ) {
396 vector<G4GIDI_Product> *products = NULL;
403 decaySamplingInfo.
rng = rng;
404 decaySamplingInfo.
rngState = rngState;
406 if( nIndices == 0 ) {
409 if( nIndices == 1 ) {
410 index = indices[0]; }
427 &decaySamplingInfo, &sampledProductsDatas );
433 if( ( products =
new vector<G4GIDI_Product>( n ) ) != NULL ) {
434 for( i = 0; i < n; i++ ) {
435 productData = &(sampledProductsDatas.
products[i]);
436 (*products)[i].A = productData->
pop->
A;
437 (*products)[i].Z = productData->
pop->
Z;
438 (*products)[i].m = productData->
pop->
m;
440 (*products)[i].px = productData->
px_vx;
441 (*products)[i].py = productData->
py_vy;
442 (*products)[i].pz = productData->
pz_vz;
443 (*products)[i].birthTimeSec = productData->
birthTimeSec;
double G4GIDI_targetMass(const char *targetSymbol)
MCGIDI_reaction * MCGIDI_target_heated_getReactionAtIndex(MCGIDI_target_heated *target, int index)
MCGIDI_reaction * MCGIDI_target_heated_getReactionAtIndex_smr(statusMessageReporting *smr, MCGIDI_target_heated *target, int index)
int MCGIDI_target_readHeatedTarget(statusMessageReporting *smr, MCGIDI_target *target, int index)
int MCGIDI_target_heated_getReactionsDomain(statusMessageReporting *smr, MCGIDI_target_heated *target, int index, double *EMin, double *EMax)
double MCGIDI_target_getTotalCrossSectionAtTAndE(statusMessageReporting *smr, MCGIDI_target *target, MCGIDI_quantitiesLookupModes &modes, bool sampling)
double MCGIDI_target_getIndexReactionCrossSectionAtE(statusMessageReporting *smr, MCGIDI_target *target, int index, MCGIDI_quantitiesLookupModes &modes, bool sampling)
int MCGIDI_product_sampleMu(statusMessageReporting *smr, MCGIDI_product *product, MCGIDI_quantitiesLookupModes &modes, MCGIDI_decaySamplingInfo *decaySamplingInfo)
MCGIDI_target * MCGIDI_target_free(statusMessageReporting *smr, MCGIDI_target *target)
int MCGIDI_target_getTemperatures(statusMessageReporting *smr, MCGIDI_target *target, double *temperatures)
int MCGIDI_target_numberOfReactions(statusMessageReporting *smr, MCGIDI_target *target)
int MCGIDI_target_numberOfProductionReactions(statusMessageReporting *smr, MCGIDI_target *target)
int MCGIDI_target_heated_sampleIndexReactionProductsAtE(statusMessageReporting *smr, MCGIDI_target_heated *target, int index, MCGIDI_quantitiesLookupModes &modes, MCGIDI_decaySamplingInfo *decaySamplingInfo, MCGIDI_sampledProductsDatas *productData)
int MCGIDI_sampledProducts_initialize(statusMessageReporting *smr, MCGIDI_sampledProductsDatas *sampledProductsDatas, int incrementSize)
MCGIDI_target * MCGIDI_target_newRead(statusMessageReporting *smr, const char *fileName)
int MCGIDI_sampledProducts_release(statusMessageReporting *smr, MCGIDI_sampledProductsDatas *sampledProductsDatas)
double MCGIDI_target_heated_getReactionsThreshold(statusMessageReporting *smr, MCGIDI_target_heated *target, int index)
@ MCGIDI_quantityLookupMode_pointwise
int MCGIDI_reaction_getENDF_MTNumber(MCGIDI_reaction *reaction)
MCGIDI_product * MCGIDI_outputChannel_getProductAtIndex(statusMessageReporting *smr, MCGIDI_outputChannel *outputChannel, int i)
std::vector< G4GIDI_Product > * getOthersFinalState(double e_in, double temperature, double(*rng)(void *), void *rngState)
std::string equalProbableBinSampleMethod
double getFissionCrossSectionAtE(double e_in, double temperature)
GIDI::statusMessageReporting smr
std::vector< G4GIDI_Product > * getFissionFinalState(double e_in, double temperature, double(*rng)(void *), void *rngState)
std::string sourceFilename
double getElasticFinalState(double e_in, double temperature, double(*rng)(void *), void *rngState)
double getCaptureCrossSectionAtE(double e_in, double temperature)
double getOthersCrossSectionAtE(double e_in, double temperature)
int readTemperature(int index)
std::string * getName(void)
channelID getChannelsID(int channelIndex)
GIDI::MCGIDI_target * target
double getTotalCrossSectionAtE(double e_in, double temperature)
double getReactionsThreshold(int index)
int sampleChannelCrossSectionAtE(int nIndices, int *indices, double e_in, double temperature, double(*rng)(void *), void *rngState)
G4GIDI_target(const char *fileName)
int getNumberOfProductionChannels(void)
std::vector< channelID > * getChannelIDs(void)
std::vector< G4GIDI_Product > * getFinalState(int nIndices, int *indices, double e_in, double temperature, double(*rng)(void *), void *rngState)
double getElasticCrossSectionAtE(double e_in, double temperature)
std::string getEqualProbableBinSampleMethod(void)
int setEqualProbableBinSampleMethod(std::string method)
int getTemperatures(double *temperatures)
std::vector< G4GIDI_Product > * getCaptureFinalState(double e_in, double temperature, double(*rng)(void *), void *rngState)
std::string * getFilename(void)
int getNumberOfChannels(void)
void init(const char *fileName)
std::vector< channelID > * getProductionChannelIDs(void)
double getReactionsDomain(int index, double *EMin, double *EMax)
double sumChannelCrossSectionAtE(int nIndices, int *indices, double e_in, double temperature)
void setCrossSectionMode(enum MCGIDI_quantityLookupMode mode)
void setTemperature(double temperature)
void setProjectileEnergy(double e_in)
int smr_initialize(statusMessageReporting *smr, enum smr_status verbosity, int append)
void smr_print(statusMessageReporting *smr, int clear)
void * smr_freeMemory(void **p)
void smr_release(statusMessageReporting *smr)
int smr_isOk(statusMessageReporting *smr)
#define smr_malloc2(smr, size, zero, forItem)
char const * outputChannelStr
MCGIDI_outputChannel outputChannel
MCGIDI_sampledProductsData * products