45 double MyRNG(
void*) {
return G4Random::getTheEngine()->flat(); }
58 default_evaluation =
"ENDF/BVII.1";
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++ )
117 if ( allow_nat ==
true ) aTarget->
AllowNat();
118 if ( allow_any ==
true ) aTarget->
AllowAny();
130 for (
G4int ii = 0 ; ii < numberOfNistIso ; ii++ )
140 if ( allow_nat ==
true ) aTarget->
AllowNat();
141 if ( allow_any ==
true ) aTarget->
AllowAny();
155 G4cout <<
"Requested Evaluation, Z , A -> Actual Evaluation, Z , A(0=Nat) " <<
G4endl;
156 for ( std::map< G4int , G4LENDUsedTarget* >::iterator
160 <<
" " << it->second->GetWantedEvaluation()
161 <<
", " << it->second->GetWantedZ()
162 <<
", " << it->second->GetWantedA()
163 <<
" -> " << it->second->GetActualEvaluation()
164 <<
", " << it->second->GetActualZ()
165 <<
", " << it->second->GetActualA()
205 theNeutron.SetKineticEnergy( ke );
222 G4double nEnergy = theNeutron.GetTotalEnergy();
229 G4double cmsMom = std::sqrt(the3CMS*the3CMS);
230 G4double sqrts = std::sqrt((totE-cmsMom)*(totE+cmsMom));
234 theNeutron.Lorentz(theNeutron, theCMS);
235 theTarget.
Lorentz(theTarget, theCMS);
236 G4double en = theNeutron.GetTotalMomentum();
241 tempVector.
setX(std::cos(theta)*std::sin(cms_theta)*std::cos(cms_phi)
242 +std::sin(theta)*std::cos(phi)*std::cos(cms_theta)*std::cos(cms_phi)
243 -std::sin(theta)*std::sin(phi)*std::sin(cms_phi) );
244 tempVector.
setY(std::cos(theta)*std::sin(cms_theta)*std::sin(cms_phi)
245 +std::sin(theta)*std::cos(phi)*std::cos(cms_theta)*std::sin(cms_phi)
246 +std::sin(theta)*std::sin(phi)*std::cos(cms_phi) );
247 tempVector.
setZ(std::cos(theta)*std::cos(cms_theta)
248 -std::sin(theta)*std::cos(phi)*std::sin(cms_theta) );
250 theNeutron.SetMomentum(tempVector);
255 theNeutron.Lorentz(theNeutron, -1.*theCMS);
256 theTarget.
Lorentz(theTarget, -1.*theCMS);
size_t GetNumberOfIsotopes() const
ThreeVector shoot(const G4int Ap, const G4int Af)
void SetMomentum(const G4ThreeVector &momentum)
G4double GetTotalMomentum() const
void Lorentz(const G4ReactionProduct &p1, const G4ReactionProduct &p2)
void SetMomentum(const G4double x, const G4double y, const G4double z)
G4NistElementBuilder * GetNistElementBuilder()
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
void recreate_used_target_map()
G4double GetIsotopeAbundance(G4int Z, G4int N) const
G4int GetNumberOfNistIsotopes(G4int Z) const
static constexpr double second
G4ParticleDefinition * proj
const G4String & GetModelName() const
G4LENDModel(G4String name="LENDModel")
static constexpr double twopi
G4int GetNucleusEncoding(G4int iZ, G4int iA, G4int iM)
void SetMinEnergy(G4double anEnergy)
void SetMass(const G4double mas)
G4GLOB_DLL std::ostream G4cout
static size_t GetNumberOfElements()
const G4ParticleDefinition * GetDefinition() const
double getElasticFinalState(double e_in, double temperature, double(*rng)(void *), void *rngState)
std::map< G4int, G4LENDUsedTarget * > usedTarget_map
G4double GetKineticEnergy() const
G4int GetNistFirstIsotopeN(G4int Z) const
void SetTotalEnergy(const G4double en)
G4ErrorTarget * theTarget
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
static constexpr double eV
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
const G4LorentzVector & Get4Momentum() const
static G4IonTable * GetIonTable()
void SetEnergyChange(G4double anEnergy)
G4double GetTotalEnergy() const
static G4LENDManager * GetInstance()
G4double GetPDGMass() const
void create_used_target_map()
const G4Isotope * GetIsotope()
void SetMaxEnergy(const G4double anEnergy)
G4ThreeVector GetMomentum() const
const G4Isotope * GetIsotope(G4int iso) const
G4double GetTemperature() const
static constexpr double MeV
const G4Material * GetMaterial() const
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
std::vector< G4Element * > G4ElementTable
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
G4bool RequestChangeOfVerboseLevel(G4int)
G4LENDManager * lend_manager
static G4ElementTable * GetElementTable()
void SetMomentumChange(const G4ThreeVector &aV)