Import Geant4 8.3.0 source tree
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
$Id: History,v 1.93 2006/10/16 15:31:01 vnivanch Exp $
|
||||
$Id: History,v 1.95 2007/04/24 11:51:52 vnivanch Exp $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -17,6 +17,14 @@ committal in the CVS repository !
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
24 April 07: V.Ivant (emmuons-V08-02-01)
|
||||
- G4MuPairProductionModel - add protection against zero or negative partial
|
||||
cross section inside SelectRandomAtom method in order to fix bug reported
|
||||
from tutorial example A01
|
||||
|
||||
16 February 07: V.Ivant (emmuons-V08-02-00)
|
||||
- G4EnergyLossForExtrapolator - linLossLimit=1.e-6
|
||||
|
||||
16 Oct 06: V.Ivanchenko (emmuons-V08-01-01)
|
||||
- Add warning to all processes 52 type
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4EnergyLossForExtrapolator.cc,v 1.9 2006/06/29 19:49:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: G4EnergyLossForExtrapolator.cc,v 1.10 2007/02/16 16:03:18 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -201,7 +201,7 @@ void G4EnergyLossForExtrapolator::Initialisation()
|
||||
|
||||
currentParticleName = "";
|
||||
|
||||
linLossLimit = 0.05;
|
||||
linLossLimit = 1.e-6;
|
||||
emin = 1.*MeV;
|
||||
emax = 100.*GeV;
|
||||
nbins = 50;
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4MuPairProductionModel.cc,v 1.30 2006/06/29 19:49:52 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: G4MuPairProductionModel.cc,v 1.31 2007/04/24 11:51:52 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -57,6 +57,7 @@
|
||||
// 23-10-05 Add protection in sampling of e+e- pair energy needed for
|
||||
// low cuts (V.Ivantchenko)
|
||||
// 13-02-06 add ComputeCrossSectionPerAtom (mma)
|
||||
// 24-04-07 add protection in SelectAtom method (V.Ivantchenko)
|
||||
|
||||
//
|
||||
// Class Description:
|
||||
@@ -639,13 +640,20 @@ const G4Element* G4MuPairProductionModel::SelectRandomAtom(
|
||||
|
||||
G4double sigtot = InterpolatedIntegralCrossSection(dt,dz,iz,it,nbiny,Z);
|
||||
G4double sigcut = InterpolatedIntegralCrossSection(dt,dz,iz,it,iy, Z);
|
||||
sum += (sigtot - sigcut)*theAtomNumDensityVector[i];
|
||||
G4double dl = (sigtot - sigcut)*theAtomNumDensityVector[i];
|
||||
|
||||
// protection
|
||||
if(dl < 0.0) dl = 0.0;
|
||||
sum += dl;
|
||||
partialSum[i] = sum;
|
||||
}
|
||||
|
||||
G4double rval = G4UniformRand()*sum;
|
||||
for (i=0; i<nElements; i++) {if(rval<=partialSum[i]) break;}
|
||||
return (*theElementVector)[i];
|
||||
for (i=0; i<nElements; i++) {
|
||||
if(rval<=partialSum[i]) return (*theElementVector)[i];
|
||||
}
|
||||
|
||||
return (*theElementVector)[nElements - 1];
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user