47 char S[128], mS[32], *
name;
49 if( Z == NULL )
return( NULL );
51 if( im != 0 )
return( NULL );
52 sprintf( S,
"%s_natural", Z ); }
54 sprintf( S,
"%s%d", Z, iA );
59 sprintf( 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;
84 int 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 );