Import Geant4 4.1.0 source tree
This commit is contained in:
@@ -211,7 +211,7 @@ G4LEnp::ApplyYourself(const G4Track& aTrack, G4Nucleus& targetNucleus)
|
||||
|
||||
// Rotate according to the direction of the incident particle
|
||||
if (px*px + py*py > 0) {
|
||||
G4double cost, sint, ph, cosp, sinp, a, b, c;
|
||||
G4double cost, sint, ph, cosp, sinp;
|
||||
cost = pz/p;
|
||||
sint = (sqrt(abs((1-cost)*(1+cost))) + sqrt(px*px+py*py)/p)/2;
|
||||
py < 0 ? ph = 3*halfpi : ph = halfpi;
|
||||
|
||||
@@ -39,7 +39,7 @@ G4LEpp::G4LEpp() :
|
||||
// SetMinEnergy(10.*MeV);
|
||||
// SetMaxEnergy(1200.*MeV);
|
||||
|
||||
SetCoulombSuppression(1);
|
||||
SetCoulombEffects(0);
|
||||
|
||||
SetMinEnergy(0.);
|
||||
SetMaxEnergy(1200.*GeV);
|
||||
@@ -52,22 +52,22 @@ G4LEpp::~G4LEpp()
|
||||
|
||||
|
||||
void
|
||||
G4LEpp::SetCoulombSuppression(G4int State)
|
||||
G4LEpp::SetCoulombEffects(G4int State)
|
||||
{
|
||||
if (State) {
|
||||
for(G4int i=0; i<NANGLE; i++)
|
||||
{
|
||||
sig[i] = Sig[i];
|
||||
}
|
||||
elab = Elab;
|
||||
}
|
||||
else {
|
||||
for(G4int i=0; i<NANGLE; i++)
|
||||
{
|
||||
sig[i] = SigCoul[i];
|
||||
}
|
||||
elab = ElabCoul;
|
||||
}
|
||||
else {
|
||||
for(G4int i=0; i<NANGLE; i++)
|
||||
{
|
||||
sig[i] = Sig[i];
|
||||
}
|
||||
elab = Elab;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -187,6 +187,7 @@ G4LEpp::ApplyYourself(const G4Track& aTrack, G4Nucleus& targetNucleus)
|
||||
b = ke1 - rc*sigint1;
|
||||
G4double kint = rc*sample + b;
|
||||
G4double theta = (0.5 + kint)*pi/180.;
|
||||
if (theta < 0.) theta = 0.;
|
||||
|
||||
// G4int k;
|
||||
//abs(sample-sig[j][ke1]) < abs(sample-sig[j][ke2]) ? k = ke1 : k = ke2;
|
||||
@@ -232,7 +233,7 @@ G4LEpp::ApplyYourself(const G4Track& aTrack, G4Nucleus& targetNucleus)
|
||||
|
||||
// Rotate according to the direction of the incident particle
|
||||
if (px*px + py*py > 0) {
|
||||
G4double cost, sint, ph, cosp, sinp, a, b, c;
|
||||
G4double cost, sint, ph, cosp, sinp;
|
||||
cost = pz/p;
|
||||
sint = (sqrt(abs((1-cost)*(1+cost))) + sqrt(px*px+py*py)/p)/2;
|
||||
py < 0 ? ph = 3*halfpi : ph = halfpi;
|
||||
|
||||
Reference in New Issue
Block a user