45 double MyRNG(
void*) {
return G4Random::getTheEngine()->flat(); }
69 for ( std::map< G4int , G4LENDUsedTarget* >::iterator
80 for ( std::map< G4int , G4LENDUsedTarget* >::iterator
101 for (
size_t i = 0 ; i < numberOfElements ; ++i )
104 const G4Element* anElement = (*theElementTable)[i];
107 if ( numberOfIsotope > 0 )
110 for (
G4int i_iso = 0 ; i_iso < numberOfIsotope ; i_iso++ )
130 for (
G4int ii = 0 ; ii < numberOfNistIso ; ii++ )
187 theNeutron.SetKineticEnergy( ke );
204 G4double nEnergy = theNeutron.GetTotalEnergy();
211 G4double cmsMom = std::sqrt(the3CMS*the3CMS);
212 G4double sqrts = std::sqrt((totE-cmsMom)*(totE+cmsMom));
216 theNeutron.Lorentz(theNeutron, theCMS);
217 theTarget.
Lorentz(theTarget, theCMS);
218 G4double en = theNeutron.GetTotalMomentum();
223 tempVector.
setX(std::cos(theta)*std::sin(cms_theta)*std::cos(cms_phi)
224 +std::sin(theta)*std::cos(phi)*std::cos(cms_theta)*std::cos(cms_phi)
225 -std::sin(theta)*std::sin(phi)*std::sin(cms_phi) );
226 tempVector.
setY(std::cos(theta)*std::sin(cms_theta)*std::sin(cms_phi)
227 +std::sin(theta)*std::cos(phi)*std::cos(cms_theta)*std::sin(cms_phi)
228 +std::sin(theta)*std::sin(phi)*std::cos(cms_phi) );
229 tempVector.
setZ(std::cos(theta)*std::cos(cms_theta)
230 -std::sin(theta)*std::cos(phi)*std::sin(cms_theta) );
232 theNeutron.SetMomentum(tempVector);
237 theNeutron.Lorentz(theNeutron, -1.*theCMS);
238 theTarget.
Lorentz(theTarget, -1.*theCMS);
256 message =
"Produce unchanged final state is requested in ";
258 message +=
". Cross section and model likely have an inconsistency.";
270 target =
usedTarget_map.find( nuclear_code )->second->GetTarget();
280 G4cout <<
"Requested Evaluation, Z , A -> Actual Evaluation, Z , A(0=Nat) " <<
G4endl;
281 for ( std::map< G4int , G4LENDUsedTarget* >::iterator
284 <<
" " <<
it->second->GetWantedEvaluation()
285 <<
", " <<
it->second->GetWantedZ()
286 <<
", " <<
it->second->GetWantedA()
287 <<
" -> " <<
it->second->GetActualEvaluation()
288 <<
", " <<
it->second->GetActualZ()
289 <<
", " <<
it->second->GetActualA()