184 G4int iZ = aTarg.GetZ_asInt();
185 G4int iA = aTarg.GetA_asInt();
187 if ( aTarg.GetIsotope() != NULL ) {
188 iM = aTarg.GetIsotope()->Getm();
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);
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);
254 theTarget.SetTotalEnergy(std::sqrt((tP+tM)*(tP+tM)-2.*tP*tM));
255 theNeutron.Lorentz(theNeutron, -1.*theCMS);
ThreeVector shoot(const G4int Ap, const G4int Af)
void SetMomentum(const G4ThreeVector &momentum)
void SetMomentum(const G4double x, const G4double y, const G4double z)
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
static constexpr double second
static constexpr double twopi
G4int GetNucleusEncoding(G4int iZ, G4int iA, G4int iM)
void SetMass(const G4double mas)
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
void SetTotalEnergy(const G4double en)
G4ErrorTarget * theTarget
const G4LorentzVector & Get4Momentum() const
static G4IonTable * GetIonTable()
void SetEnergyChange(G4double anEnergy)
G4double GetPDGMass() const
G4double GetTemperature() const
static constexpr double MeV
const G4Material * GetMaterial() const
void AddSecondary(G4DynamicParticle *aP, G4int mod=-1)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
G4LENDManager * lend_manager
void SetMomentumChange(const G4ThreeVector &aV)