Import Geant4 1.1.0 source tree
This commit is contained in:
@@ -6,7 +6,7 @@ class DumpFrames
|
||||
public:
|
||||
static void DumpFrame(G4FastVector<G4ReactionProduct,128> &vec, G4int vecLen)
|
||||
{
|
||||
// cout << vecLen<<endl;
|
||||
// cout << vecLen<<G4endl;
|
||||
// for(G4int i=0; i<vecLen; i++)
|
||||
// {
|
||||
// cout << vec[i]->GetDefinition()->GetPDGEncoding()<<" ";
|
||||
@@ -22,7 +22,7 @@ static void DumpFrame(G4FastVector<G4ReactionProduct,128> &vec, G4int vecLen)
|
||||
// cout << x<<" "<<y<<" "<<z;
|
||||
// cout << vec[i]->GetMomentum()<<" ";
|
||||
// cout << vec[i]->GetTotalEnergy();
|
||||
// cout << endl;
|
||||
// cout << G4endl;
|
||||
// }
|
||||
}
|
||||
};
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4DynamicParticleVector.hh,v 1.1.8.1.2.1 1999/12/07 20:52:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// For information related to this code contact:
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4GHEKinematicsVector.hh,v 1.1.10.1 1999/12/07 20:52:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4GHEKinematicsVector.hh,v 1.1.10.1.2.2 1999/12/10 15:42:17 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file --- Copyright CERN 1998
|
||||
@@ -95,7 +95,7 @@ class G4GHEKinematicsVector
|
||||
{
|
||||
momentum = mom;
|
||||
energy = sqrt(mass*mass + momentum.mag2());
|
||||
kineticEnergy = max(0.,energy - mass);
|
||||
kineticEnergy = G4std::max(0.,energy - mass);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ class G4GHEKinematicsVector
|
||||
momentum.setY( y );
|
||||
momentum.setZ( z );
|
||||
energy = sqrt(mass*mass + momentum.mag2());
|
||||
kineticEnergy = max(0.,energy-mass);
|
||||
kineticEnergy = G4std::max(0.,energy-mass);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ class G4GHEKinematicsVector
|
||||
momentum.setX( x );
|
||||
momentum.setY( y );
|
||||
energy = sqrt(mass*mass + momentum.mag2());
|
||||
kineticEnergy = max(0.,energy-mass);
|
||||
kineticEnergy = G4std::max(0.,energy-mass);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ class G4GHEKinematicsVector
|
||||
{
|
||||
momentum.setZ( z );
|
||||
energy = sqrt(mass*mass + momentum.mag2());
|
||||
kineticEnergy = max(0.,energy-mass);
|
||||
kineticEnergy = G4std::max(0.,energy-mass);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -248,10 +248,10 @@ class G4GHEKinematicsVector
|
||||
inline
|
||||
void SetMassAndUpdate( G4double m )
|
||||
{
|
||||
kineticEnergy = max(0., energy - m);
|
||||
kineticEnergy = G4std::max(0., energy - m);
|
||||
mass = m;
|
||||
energy = kineticEnergy + mass;
|
||||
G4double momnew = sqrt(max(0., energy*energy - mass*mass));
|
||||
G4double momnew = sqrt(G4std::max(0., energy*energy - mass*mass));
|
||||
if ( momnew == 0.0)
|
||||
{
|
||||
momentum.setX( 0.0 );
|
||||
@@ -347,7 +347,7 @@ class G4GHEKinematicsVector
|
||||
mass = -1. * sqrt( -b );
|
||||
else
|
||||
mass = sqrt( b );
|
||||
kineticEnergy = max(0.,energy - mass);
|
||||
kineticEnergy = G4std::max(0.,energy - mass);
|
||||
charge = p1.charge + p2.charge;
|
||||
code = p1.code + p2.code;
|
||||
particleDef = p1.particleDef;
|
||||
@@ -363,7 +363,7 @@ class G4GHEKinematicsVector
|
||||
mass = -1. * sqrt( -b );
|
||||
else
|
||||
mass = sqrt( b );
|
||||
kineticEnergy = max(0.,energy - mass);
|
||||
kineticEnergy = G4std::max(0.,energy - mass);
|
||||
charge = p1.charge - p2.charge;
|
||||
code = p1.code - p2.code;
|
||||
particleDef = p1.particleDef;
|
||||
@@ -379,7 +379,7 @@ class G4GHEKinematicsVector
|
||||
momentum.setZ( p1.momentum.z()+a*p2.momentum.z() );
|
||||
energy = sqrt( sqr(p1.mass) + momentum.mag2() );
|
||||
mass = p1.mass;
|
||||
kineticEnergy = max(0.,energy - mass);
|
||||
kineticEnergy = G4std::max(0.,energy - mass);
|
||||
timeOfFlight = p1.timeOfFlight;
|
||||
side = p1.side;
|
||||
flag = p1.flag;
|
||||
@@ -656,7 +656,7 @@ class G4GHEKinematicsVector
|
||||
G4cout << "G4GHEKinematicsVector: "
|
||||
<< L << " " << momentum.x() << " " << momentum.y() << " " << momentum.z() << " "
|
||||
<< energy << " " << kineticEnergy << " " << mass << " " << charge << " "
|
||||
<< timeOfFlight << " " << side << " " << flag << " " << code << particleDef << endl;
|
||||
<< timeOfFlight << " " << side << " " << flag << " " << code << particleDef << G4endl;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4LightMedia.hh,v 1.1.10.1 1999/12/07 20:52:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// Hadronic Process: Light Media Charge and/or Strangeness Exchange
|
||||
// J.L. Chuma, TRIUMF, 21-Feb-1997
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Nucleus.hh,v 1.1.10.1 1999/12/07 20:52:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// original by H.P. Wellisch
|
||||
// modified by J.L. Chuma, TRIUMF, 19-Nov-1996
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ParticleVector.hh,v 1.1.8.1.2.1 1999/12/07 20:52:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// HPW decoupling theo models from RW (Mon Mar 16 1998)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ReactionDynamics.hh,v 1.1.10.1 1999/12/07 20:52:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// Hadronic Process: Reaction Dynamics
|
||||
// original by H.P. Wellisch
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ReactionKinematics.hh,v 1.1.10.1 1999/12/07 20:52:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file --- Copyright CERN 1995
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ReactionProduct.hh,v 1.1.10.1 1999/12/07 20:52:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// J.L. Chuma, TRIUMF, 31-Oct-1996
|
||||
// last modified: 19-Dec-1996
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ReactionProductVector.hh,v 1.1.8.1.2.1 1999/12/07 20:52:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// For information related to this code contact:
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4StableIsotopes.hh,v 1.1.10.1 1999/12/07 20:52:43 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#ifndef G4StableIsotopes_h
|
||||
#define G4StableIsotopes_h 1
|
||||
|
||||
Reference in New Issue
Block a user