Import Geant4 9.5.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:46:55 +02:00
parent 89a9605df1
commit b1eb5424d2
10957 changed files with 888481 additions and 160139 deletions
@@ -23,21 +23,11 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4LivermoreNuclearGammaConversionModel.cc,v 1.1 2010/11/10 17:09:16 flongo Exp $
// GEANT4 tag $Name: geant4-09-04 $
// $Id: G4LivermoreNuclearGammaConversionModel.cc,v 1.1 2010-11-10 17:09:16 flongo Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
// Authors: G.Depaola & F.Longo
//
// Author: Sebastien Inserti
// 30 October 2008
//
// History:
// --------
// 12 Apr 2009 V Ivanchenko Cleanup initialisation and generation of secondaries:
// - apply internal high-energy limit only in constructor
// - do not apply low-energy limit (default is 0)
// - use CLHEP electron mass for low-enegry limit
// - remove MeanFreePath method and table
#include "G4LivermoreNuclearGammaConversionModel.hh"
@@ -240,7 +230,7 @@ void G4LivermoreNuclearGammaConversionModel::SampleSecondaries(std::vector<G4Dyn
G4double electronTotEnergy;
G4double positronTotEnergy;
if (CLHEP::RandBit::shootBit())
if (G4int(2*G4UniformRand()))
{
electronTotEnergy = (1. - epsilon) * photonEnergy;
positronTotEnergy = epsilon * photonEnergy;