Import Geant4 5.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 10:28:22 +02:00
parent fbd4999cf7
commit 4aea781e80
5454 changed files with 223141 additions and 67347 deletions
@@ -20,8 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
// $Id: G4PiData.cc,v 1.5 2002/12/13 09:12:23 gcosmo Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4PiData.cc,v 1.6 2003/06/16 17:03:08 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// --------------------------------------------------------------------
// by J.P Wellisch, Sun Sep 15 2002.
@@ -34,10 +34,10 @@ G4PiData(const G4double * aT, const G4double * aIn, const G4double * anE, G4int
G4int i=0;
for(i=0; i<nP; i++)
{
G4std::pair<G4double, G4double> x;
std::pair<G4double, G4double> x;
x.first=aT[i]*millibarn;
x.second=aIn[i]*millibarn;
G4std::pair<G4double, G4std::pair<G4double, G4double > > aP;
std::pair<G4double, std::pair<G4double, G4double > > aP;
aP.first=anE[i]*GeV;
aP.second=x;
push_back(aP);
@@ -65,7 +65,7 @@ ReactionXSection(G4double kineticEnergy)
x1=(*(it-1)).second.second;
e2=(*(it)).first;
x2=(*(it)).second.second;
result = G4std::max(0., x1 + (kineticEnergy-e1)*(x2-x1)/(e2-e1));
result = std::max(0., x1 + (kineticEnergy-e1)*(x2-x1)/(e2-e1));
return result;
}
@@ -82,6 +82,6 @@ ElasticXSection(G4double kineticEnergy)
x1=(*(it-1)).second.first - (*(it-1)).second.second;
e2=(*(it)).first;
x2=(*(it)).second.first - (*(it)).second.second;
result = G4std::max(0., x1 + (kineticEnergy-e1)*(x2-x1)/(e2-e1));
result = std::max(0., x1 + (kineticEnergy-e1)*(x2-x1)/(e2-e1));
return result;
}