Import Geant4 1.0.0 source tree
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4MuNuclearInteraction.cc,v 1.5 1999/06/14 13:46:40 urban Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4MuNuclearInteraction.cc,v 1.5.8.1 1999/12/07 20:52:54 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
// $Id:
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -271,13 +271,13 @@
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
G4double G4MuonNucleusInteractionModel::computeDifferentialCrossSection
|
||||
(G4double initialEnergy, G4double finalEnergy, G4double cosTheta)
|
||||
(G4double initialEnergy, G4double finalEnergy, G4double aCosTheta)
|
||||
//-----------------------------------------------------------------------------
|
||||
{
|
||||
G4double muonMass = G4MuonMinus::MuonMinus()->GetPDGMass();
|
||||
|
||||
if(finalEnergy < muonMass) return(0.0);
|
||||
if(cosTheta >= 1.0) return DBL_MAX;
|
||||
if(aCosTheta >= 1.0) return DBL_MAX;
|
||||
|
||||
G4double initialMomentum
|
||||
= sqrt(initialEnergy*initialEnergy - muonMass*muonMass);
|
||||
@@ -289,7 +289,7 @@
|
||||
// and invariant mass of final state of hadrons (W2)
|
||||
G4double Q2
|
||||
= 2.0*(initialEnergy*finalEnergy
|
||||
-initialMomentum*finalMomentum*cosTheta-muonMass*muonMass);
|
||||
-initialMomentum*finalMomentum*aCosTheta-muonMass*muonMass);
|
||||
if(Q2 < 0.0) return(0.0);
|
||||
|
||||
G4double W2
|
||||
@@ -305,7 +305,7 @@
|
||||
G4double fNu = initialEnergy-finalEnergy;
|
||||
G4double fK = fNu+Q2/(2.0*fNu);
|
||||
G4double fEpsilon
|
||||
= 1.0/(1.0+2.0*((1.0-cosTheta)/(1.0+cosTheta))*(Q2+fNu*fNu)/Q2);
|
||||
= 1.0/(1.0+2.0*((1.0-aCosTheta)/(1.0+aCosTheta))*(Q2+fNu*fNu)/Q2);
|
||||
if(fEpsilon > 1.0) return DBL_MAX;
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "G4ParametrizedHadronicVertex.hh"
|
||||
|
||||
G4VParticleChange * G4ParametrizedHadronicVertex::
|
||||
ApplyYourself(const G4Nucleus & theTarget, const G4Track &thePhoton)
|
||||
ApplyYourself(G4Nucleus & theTarget, const G4Track &thePhoton)
|
||||
{
|
||||
G4double theKineticEnergy = thePhoton.GetKineticEnergy();
|
||||
if(RandFlat::shootBit())
|
||||
|
||||
Reference in New Issue
Block a user