72 delete theFragmentsFactory;
73 delete theFragmentsVector;
78 if (theFragmentsFactory) {
delete theFragmentsFactory; }
80 if (theFragmentsVector) {
90 if (theFragmentsFactory)
delete theFragmentsFactory;
92 if (theFragmentsVector) {
106 if (thePreFragment ==
nullptr)
108 G4cout <<
"G4PreCompoundEmission::PerformEmission : "
109 <<
"I couldn't choose a fragment\n"
110 <<
"while trying to de-excite\n"
120 kinEnergy = std::max(kinEnergy, 0.0);
123 if(fUseAngularGenerator) {
124 AngularDistribution(thePreFragment,aFragment,kinEnergy);
127 std::sqrt(kinEnergy*(kinEnergy + 2.0*thePreFragment->
GetNuclearMass()));
135 G4LorentzVector Emitted4Momentum(theFinalMomentum,EmittedMass + kinEnergy);
147 Rest4Momentum -= Emitted4Momentum;
158 thePreFragment->
GetA());
161 thePreFragment->
GetZ());
173void G4PreCompoundEmission::AngularDistribution(
189 G4double Eav = 2*p*(p+1)/((p+h)*gg);
192 G4double Uf = std::max(U - (p - h)*fFermiEnergy , 0.0);
195 G4double w_num = rho(p+1, h, gg, Uf, fFermiEnergy);
196 G4double w_den = rho(p, h, gg, Uf, fFermiEnergy);
197 if (w_num > 0.0 && w_den > 0.0)
199 Eav *= (w_num/w_den);
200 Eav += - Uf/(p+h) + fFermiEnergy;
210 G4double Eeff = ekin + Bemission + fFermiEnergy;
213 G4double zeta = std::max(1.0,9.3/std::sqrt(ekin/MeV));
221 an = 3*std::sqrt((ProjEnergy+fFermiEnergy)*Eeff)/(zeta*Eav);
227 if ( an > 10. ) {
an = 10.; }
234 if(an < 0.1) { cost = 1. - 2*random; }
237 cost = 1. +
G4Log(1-random*(1-exp2an))/
an;
238 if(cost > 1.) { cost = 1.; }
239 else if(cost < -1.) {cost = -1.; }
248 G4double sint = std::sqrt((1.0-cost)*(1.0+cost));
250 theFinalMomentum.
set(pmag*std::cos(phi)*sint,pmag*std::sin(phi)*sint,
255 theFinalMomentum.
rotateUz(theIncidentDirection);
262 G4double Aph = (p*p + h*h + p - 3.0*h)/(4.0*gg);
265 if ( E - Aph < 0.0) {
return 0.0; }
277 if(logt3 > logmax) { logt3 = logmax; }
283 for(
G4int j=1; j<=h; ++j)
286 if(Eeff < 0.0) {
break; }
289 logt3 = (p+h-1) *
G4Log( Eeff) + logConst;
290 if(logt3 > logmax) { logt3 = logmax; }
291 tot += t1*t2*
G4Exp(logt3);
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
G4double G4Log(G4double x)
G4ThreeVector G4RandomDirection()
G4GLOB_DLL std::ostream G4cout
void set(double x, double y, double z)
Hep3Vector & rotateUz(const Hep3Vector &)
Hep3Vector boostVector() const
HepLorentzVector & boost(double, double, double)
G4bool UseAngularGen() const
G4double GetFermiEnergy() const
G4int GetNumberOfParticles() const
G4int GetNumberOfHoles() const
void SetNumberOfCharged(G4int value)
G4double GetExcitationEnergy() const
const G4LorentzVector & GetMomentum() const
G4int GetNumberOfExcitons() const
void SetMomentum(const G4LorentzVector &value)
void SetNumberOfParticles(G4int value)
G4int GetNumberOfCharged() const
void SetZandA_asInt(G4int Znew, G4int Anew)
G4double GetLevelDensity(G4int Z, G4int A, G4double U)
G4DeexPrecoParameters * GetParameters()
static G4NuclearLevelData * GetInstance()
static G4Pow * GetInstance()
G4double logfactorial(G4int Z) const
G4ReactionProduct * PerformEmission(G4Fragment &aFragment)
G4VPreCompoundFragment * ChooseFragment()
void SetVector(pcfvector *avector)
std::vector< G4VPreCompoundFragment * > * GetFragmentVector()
virtual G4double SampleKineticEnergy(const G4Fragment &aFragment)=0
G4double GetNuclearMass() const
G4double GetBindingEnergy() const
G4ReactionProduct * GetReactionProduct() const
void SetMomentum(const G4LorentzVector &value)