70 if(1 < numberOfElements) {
71 if(numberOfElements > prob.size()) { prob.resize(numberOfElements, 0.0); }
76 for (i=0; i < numberOfElements; ++i) {
78 G4int Z = (*theElementVector)[i]->GetZasInt();
81 if( (9 == Z) || (17 == Z) || (35 == Z) || (53 == Z) || (85 == Z) ) {
82 sum += 0.66 * Z * theAtomNumDensity[i];
86 sum += 0.56 * Z * theAtomNumDensity[i];
90 sum += Z * theAtomNumDensity[i];
96 for (i=0; i < numberOfElements; ++i) {
97 if(sum <= prob[i]) {
break; }
101 const G4Element* elm = (*theElementVector)[i];
106 std::size_t ni = isv->size();
113 for(i=0; i<ni; ++i) {
115 if(y <= 0.0) {
break; }