Import Geant4 10.7.0.beta source tree
This commit is contained in:
@@ -14,6 +14,12 @@ code and to keep track of all tags.
|
||||
* Please list in reverse chronological order (last date on top)
|
||||
---------------------------------------------------------------
|
||||
|
||||
05 May 2020 Gunter Folger (hadr-mod-util-V10-06-00)
|
||||
- fixes for clang10:
|
||||
- Fixes for warnings on confusing indentation, enclosing statements
|
||||
in {} in src/G4LegendrePolynomial.cc
|
||||
- Use default copy ctor in include/G4Fancy3DNucleusHelper.hh
|
||||
|
||||
19 November 2019 Alberto Ribon (hadr-mod-util-V10-05-04)
|
||||
- G4GeneralPhaseSpaceDecay: corrected message when throwing an exception
|
||||
due to center-of-mass energy below threshold.
|
||||
|
||||
@@ -46,11 +46,7 @@ public:
|
||||
G4int index)
|
||||
: Vector(vec), Size(size), Index(index) {}
|
||||
|
||||
G4Fancy3DNucleusHelper& operator=(const G4Fancy3DNucleusHelper &right)
|
||||
{
|
||||
if (&right != this) Fill(right.Vector, right.Size, right.Index);
|
||||
return *this;
|
||||
}
|
||||
G4Fancy3DNucleusHelper& operator=(const G4Fancy3DNucleusHelper &right)=default;
|
||||
|
||||
void Fill(const G4ThreeVector &vec, G4double size, G4int index) {
|
||||
Vector = vec;
|
||||
|
||||
@@ -72,27 +72,27 @@ G4double G4LegendrePolynomial::EvalAssocLegendrePoly(G4int l, G4int m, G4double
|
||||
// hard-code the first few orders for speed
|
||||
if(l==0) return 1;
|
||||
if(l==1) {
|
||||
if(m==0) return x;
|
||||
if(m==0){return x;}
|
||||
/*m==1*/ return -sqrt(1.-x*x);
|
||||
}
|
||||
if(l<5) {
|
||||
G4double x2 = x*x;
|
||||
if(l==2) {
|
||||
if(m==0) return 0.5*(3.*x2 - 1.);
|
||||
if(m==1) return -3.*x*sqrt(1.-x2);
|
||||
if(m==0){return 0.5*(3.*x2 - 1.);}
|
||||
if(m==1){return -3.*x*sqrt(1.-x2);}
|
||||
/*m==2*/ return 3.*(1.-x2);
|
||||
}
|
||||
if(l==3) {
|
||||
if(m==0) return 0.5*(5.*x*x2 - 3.*x);
|
||||
if(m==1) return -1.5*(5.*x2-1.)*sqrt(1.-x2);
|
||||
if(m==2) return 15.*x*(1.-x2);
|
||||
if(m==0){return 0.5*(5.*x*x2 - 3.*x);}
|
||||
if(m==1){return -1.5*(5.*x2-1.)*sqrt(1.-x2);}
|
||||
if(m==2){return 15.*x*(1.-x2);}
|
||||
/*m==3*/ return -15.*(1.-x2)*sqrt(1.-x2);
|
||||
}
|
||||
if(l==4) {
|
||||
if(m==0) return 0.125*(35.*x2*x2 - 30.*x2 + 3.);
|
||||
if(m==1) return -2.5*(7.*x*x2-3.*x)*sqrt(1.-x2);
|
||||
if(m==2) return 7.5*(7.*x2-1.)*(1.-x2);
|
||||
if(m==3) return -105.*x*(1.-x2)*sqrt(1.-x2);
|
||||
if(m==0){return 0.125*(35.*x2*x2 - 30.*x2 + 3.);}
|
||||
if(m==1){return -2.5*(7.*x*x2-3.*x)*sqrt(1.-x2);}
|
||||
if(m==2){return 7.5*(7.*x2-1.)*(1.-x2);}
|
||||
if(m==3){return -105.*x*(1.-x2)*sqrt(1.-x2);}
|
||||
/*m==4*/ return 105.*(1. - 2.*x2 + x2*x2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user