47 char S[128], mS[32], *name;
49 if( Z == NULL )
return( NULL );
51 if( im != 0 )
return( NULL );
52 snprintf(
S,
sizeof S,
"%s_natural", Z ); }
54 snprintf(
S,
sizeof S,
"%s%d", Z, iA );
59 snprintf( mS,
sizeof mS,
"m%d", im );
63 name = (
char *)
smr_malloc2( NULL, strlen(
S ) + 1, 0,
"name" );
64 if( name != NULL ) strcpy( name,
S );
72 int Z1, A1, m1, Z2, A2, m2, level1, level2;
84int G4GIDI_Misc_channelProductsCompare( tpia_channel *channel,
int nProducts,
char **productNames ) {
87 tpia_product *product;
89 if( channel->decayChannel.numberOfProducts != nProducts )
return( 0 );
90 for( product = tpia_channel_getFirstProduct( channel ), i = 0; product != NULL; product = tpia_decayChannel_getNextProduct( product ), i++ ) {
91 if( strcmp( product->productID->name, productNames[i] ) )
return( 0 );
101 vector<string> *listOfTargets = (vector<string> *) userData;
102 vector<string>::iterator iter;
105 for( iter = listOfTargets->begin( ); iter != listOfTargets->end( ); iter++ ) {
106 if( entry->
targetName == iter->c_str( ) )
return( 0 );
108 listOfTargets->push_back( entry->
targetName );
G4double S(G4double temp)
char * G4GIDI_Misc_channelCompound(char *particle1, char *particle2)
char * G4GIDI_Misc_Z_A_m_ToName(int iZ, int iA, int im)
int getNamesOfAvailableTargets_walker(MCGIDI_mapEntry *entry, int, void *userData)
int MCGIDI_miscNameToZAm(statusMessageReporting *smr, const char *name, int *Z, int *A, int *m, int *level)
const char * MCGIDI_misc_ZToSymbol(int iZ)
@ MCGIDI_mapEntry_type_target
#define smr_malloc2(smr, size, zero, forItem)
enum MCGIDI_mapEntry_type type