Import Geant4 10.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2017-12-08 12:52:30 +01:00
parent 98e455a940
commit fc6af9e721
2166 changed files with 276760 additions and 100873 deletions
@@ -17,6 +17,10 @@ committal in the SVN repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
6 July 2017 E. Bagli channeling-V10-03-03
-----------------------------------------------------
- Coverity bug removal
19 June 2017 E. Bagli channeling-V10-03-01
-----------------------------------------------------
- Coverity bug removal
@@ -44,7 +44,7 @@ public:
G4double GetMax() {return fMaximum;};
G4double GetMin() {return fMinimum;};
G4double GetMaxMin() {return fabs(fMaximum-fMinimum);};
G4double GetMaxMin() {return std::fabs(fMaximum-fMinimum);};
G4double GetIntSp(G4int index) {return fDistances[index];};
@@ -96,7 +96,7 @@ G4bool G4Channeling::UpdateParameters(const G4Track& aTrack){
G4ThreeVector posPre = preStepPoint->GetPosition();
aLCV->RotateToLattice(posPre);
G4double integrationLimit = fabs(posPost.z() - posPre.z());
G4double integrationLimit = std::fabs(posPost.z() - posPre.z());
if(integrationLimit > 0.){
//----------------------------------------
@@ -276,8 +276,8 @@ UpdateIntegrationStep(const G4Track& aTrack,
step = std::fabs(fTransverseVariationMax * GetPre(aTrack)->GetKineticEnergy() / std::pow(xy2,0.5));
if(step < fTimeStepMin) step = fTimeStepMin;
else{
fTimeStepMax = sqrt( fTransverseVariationMax * GetPre(aTrack)->GetKineticEnergy()
/ fabs(GetMatData(aTrack)->GetEFX()->GetMax()));
fTimeStepMax = std::sqrt( fTransverseVariationMax * GetPre(aTrack)->GetKineticEnergy()
/ std::fabs(GetMatData(aTrack)->GetEFX()->GetMax()));
if(step > fTimeStepMax) step = fTimeStepMax;
}
@@ -41,6 +41,7 @@ fMinimum(DBL_MAX){
fPoints[0] = 0;
fPoints[1] = 0;
fPoints[2] = 0;
fVectorEC2D = 0;
ReadFromECHARM(fileName,vConversion);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....