Import Geant4 3.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:55:53 +02:00
parent e7d7193284
commit cfcb558cfe
3050 changed files with 91703 additions and 48310 deletions
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4MuNuclearInteraction.cc,v 1.7 2000/05/23 09:44:51 urban Exp $
// GEANT4 tag $Name: geant4-02-00 $
// GEANT4 tag $Name: geant4-03-00 $
//
// $Id:
// --------------------------------------------------------------
@@ -1,3 +1,14 @@
// This code implementation is the intellectual property of
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4MuonNucleusInteractionModel.cc,v 1.3 2000/08/03 09:06:33 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
// --------------------------------------------------------------
// G4MuonNucleusInteractionModel.cc
//
// M.Takahata (Makoto.Takahata@cern.ch)
@@ -200,7 +211,7 @@
// virtual photon is exchanged with a pion of same Q2
// select pi+/pi- randomly and generate pion track
G4ParticleDefinition* pdPion;
if(RandFlat::shootBit())
if(RandBit::shootBit())
pdPion = G4PionMinus::PionMinusDefinition();
else
pdPion = G4PionPlus::PionPlusDefinition();
@@ -1,10 +1,21 @@
// This code implementation is the intellectual property of
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4ParametrizedHadronicVertex.cc,v 1.3 2000/08/03 09:06:33 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
// --------------------------------------------------------------
#include "G4ParametrizedHadronicVertex.hh"
G4VParticleChange * G4ParametrizedHadronicVertex::
ApplyYourself(G4Nucleus & theTarget, const G4Track &thePhoton)
{
G4double theKineticEnergy = thePhoton.GetKineticEnergy();
if(RandFlat::shootBit())
if(RandBit::shootBit())
{
if(theKineticEnergy<20*GeV) return theLowEPionMinus.ApplyYourself(thePhoton, theTarget);
return theHighEPionMinus.ApplyYourself(thePhoton, theTarget);