Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4GIDI_mass.hh File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

double G4GIDI_targetMass (const char *targetSymbol)
 
double G4GIDI_Z_AMass (int iZ, int iA)
 

Function Documentation

double G4GIDI_targetMass ( const char *  targetSymbol)

Definition at line 875 of file G4GIDI_mass.cc.

875  {
876 
877  int i, n = sizeof( ZAMasses ) / sizeof( ZAMasses[0] );
878  double mass = -1.0;
879 
880  for( i = 0; i < n; i++ ) {
881  if( !strcmp( ZAMasses[i].symbol, targetSymbol ) ) {
882  mass = ZAMasses[i].mass;
883  break;
884  }
885  }
886  return( mass );
887 }
static struct ZAMass ZAMasses[]
Definition: G4GIDI_mass.cc:47
const G4int n
double mass
Definition: G4GIDI_mass.cc:44

Here is the caller graph for this function:

double G4GIDI_Z_AMass ( int  iZ,
int  iA 
)

Definition at line 891 of file G4GIDI_mass.cc.

891  {
892 
893  char *name = G4GIDI_Misc_Z_A_m_ToName( iZ, iA );
894  double mass;
895 
896  if( name == NULL ) return( -1.0 );
897  mass = G4GIDI_targetMass( name );
898  smr_freeMemory( (void **) &name );
899  return( mass );
900 }
const XML_Char * name
Definition: expat.h:151
double G4GIDI_targetMass(const char *targetSymbol)
Definition: G4GIDI_mass.cc:875
char * G4GIDI_Misc_Z_A_m_ToName(int iZ, int iA, int im=0)
Definition: G4GIDI_Misc.cc:44
void * smr_freeMemory(void **p)

Here is the call graph for this function: