79 char S[128], mS[32], *
name;
81 if( Z == NULL )
return( NULL );
83 if( im != 0 )
return( NULL );
84 sprintf( S,
"%s_natural", Z ); }
86 sprintf( S,
"%s_%d", Z, iA );
88 sprintf( mS,
"_m%d", im );
92 name = (
char *)
xData_malloc2( NULL, strlen( S ) + 1, 0,
"name" );
93 if( name != NULL ) strcpy( name, S );
101 int Z1, A1, m1,
Z2, A2,
m2;
105 if( A1 == 0 ) A2 = 0;
106 if( A2 == 0 ) A1 = 0;
119 if( strcmp( product->
productID->
name, productNames[i] ) )
return( 0 );
129 vector<string> *listOfTargets = (vector<string> *) userData;
130 vector<string>::iterator iter;
133 for( iter = listOfTargets->begin( ); iter != listOfTargets->end( ); iter++ ) {
134 if( entry->
targetName == iter->c_str( ) )
return( 0 );
136 listOfTargets->push_back( entry->
targetName );
enum tpia_mapEntry_type type
tpia_decayChannel decayChannel
#define xData_malloc2(smr, size, zero, forItem)
tpia_product * tpia_channel_getFirstProduct(tpia_channel *channel)
int tpia_miscNameToZAm(statusMessageReporting *smr, const char *name, int *Z, int *A, int *m)
int getNamesOfAvailableTargets_walker(GIDI::tpia_mapEntry *entry, int level, void *userData)
char * G4GIDI_Misc_Z_A_m_ToName(int iZ, int iA, int im=0)
const char * tpia_misc_ZToSymbol(int iZ)
tpia_particle * productID
int G4GIDI_Misc_channelProductsCompare(GIDI::tpia_channel *channel, int nProducts, char **productNames)
tpia_product * tpia_decayChannel_getNextProduct(tpia_product *product)
char * G4GIDI_Misc_channelCompound(char *particle1, char *particle2)