Import Geant4 1.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:34:16 +02:00
parent ca1c8cb059
commit 103bda00c8
2654 changed files with 29719 additions and 20203 deletions
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4DiffractiveSplitableHadron.cc,v 1.1.10.1 1999/12/07 20:51:43 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4DiffractiveSplitableHadron.cc,v 1.1.10.1.2.1 1999/12/10 15:42:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// ------------------------------------------------------------
@@ -106,8 +106,8 @@ void G4DiffractiveSplitableHadron::ChooseStringEnds(G4int PDGcode,G4int * aEnd,
G4int heavy= absPDGcode/ 100;
G4int light= (absPDGcode %100)/10;
// G4int anti= pow(-1 , max( heavy, light));
G4int anti= 1 -2 * ( max( heavy, light ) % 2 );
// G4int anti= pow(-1 , G4std::max( heavy, light));
G4int anti= 1 -2 * ( G4std::max( heavy, light ) % 2 );
if (PDGcode < 0 ) anti *=-1;
heavy *= anti;
@@ -177,8 +177,8 @@ G4int G4DiffractiveSplitableHadron::Diquark(G4int aquark,G4int bquark,G4int Spin
{
G4int diquarkPDG;
diquarkPDG = max( abs(aquark), abs(bquark) )*1000 +
min( abs(aquark), abs(bquark) )*100 +
diquarkPDG = G4std::max( abs(aquark), abs(bquark) )*1000 +
G4std::min( abs(aquark), abs(bquark) )*100 +
2*Spin + 1;
return ( aquark > 0 && bquark > 0 ) ? diquarkPDG : -1*diquarkPDG;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4FTFModel.cc,v 1.2.2.1.2.1 1999/12/07 20:51:43 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4FTFModel.cc,v 1.2.2.1.2.1.2.1 1999/12/08 17:34:41 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// ------------------------------------------------------------
@@ -108,7 +108,7 @@ G4ExcitedStringVector * G4FTFModel::BuildStrings()
// G4cout << "BuildStrings prim/targ " << primaries.entries() << " , " <<
// targets.entries() << endl;
// targets.entries() << G4endl;
G4int ahadron;
@@ -131,15 +131,15 @@ G4ExcitedStringVector * G4FTFModel::BuildStrings()
G4bool G4FTFModel::ExciteParticipants()
{
// G4cout << "G4FTFModel::ExciteParticipants starting " << endl;
// G4cout << "G4FTFModel::ExciteParticipants starting " << G4endl;
while (theParticipants.Next())
{
// G4cout << "next Collision " << endl;
// G4cout << "next Collision " << G4endl;
const G4InteractionContent & collision=theParticipants.GetInteraction();
// G4cout << " soft colls : " << collision.GetNumberOfSoftCollisions() << endl;
// G4cout << " soft colls : " << collision.GetNumberOfSoftCollisions() << G4endl;
G4VSplitableHadron * projectile=collision.GetProjectile();
G4VSplitableHadron * target=collision.GetTarget();
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4FTFParticipants.cc,v 1.1.10.1 1999/12/07 20:51:43 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4FTFParticipants.cc,v 1.1.10.1.2.1 1999/12/08 17:34:42 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// ------------------------------------------------------------
// GEANT 4 class implementation file
@@ -40,7 +40,7 @@ G4FTFParticipants::G4FTFParticipants(const G4FTFParticipants &right)
G4FTFParticipants::~G4FTFParticipants()
{
// G4cout << "G4FTFParticipants::~G4FTFParticipants() called" << endl;
// G4cout << "G4FTFParticipants::~G4FTFParticipants() called" << G4endl;
}
@@ -67,9 +67,9 @@ void G4FTFParticipants::BuildInteractions(const G4ReactionProduct &thePrimary)
sqr( G4Proton::Proton()->GetPDGMass() ) +
2*thePrimary.GetTotalEnergy()*G4Proton::Proton()->GetPDGMass();
// G4cout << " primary Total E (GeV): " << thePrimary.GetTotalEnergy()/GeV << endl;
// G4cout << " primary Mass (GeV): " << thePrimary.GetMass() /GeV << endl;
// G4cout << "cms sqrt(s) (GeV) = " << sqrt(s) / GeV << endl;
// G4cout << " primary Total E (GeV): " << thePrimary.GetTotalEnergy()/GeV << G4endl;
// G4cout << " primary Mass (GeV): " << thePrimary.GetMass() /GeV << G4endl;
// G4cout << "cms sqrt(s) (GeV) = " << sqrt(s) / GeV << G4endl;
G4PomeronCrossSection theCrossSection(thePrimary.GetDefinition());
@@ -82,7 +82,7 @@ void G4FTFParticipants::BuildInteractions(const G4ReactionProduct &thePrimary)
G4double xyradius;
xyradius =theNucleus->GetOuterRadius() + deltaxy;
// G4cout <<" G4FTFParticipants::StartLoop: xyradius " << xyradius << endl;
// G4cout <<" G4FTFParticipants::StartLoop: xyradius " << xyradius << G4endl;
G4bool nucleusNeedsShift = true;
@@ -98,7 +98,7 @@ void G4FTFParticipants::BuildInteractions(const G4ReactionProduct &thePrimary)
G4double impactX=x*xyradius;
G4double impactY=y*xyradius;
// G4cout << " impctX, impctY " << impactX/fermi << " "<<impactY/fermi << " fm" << endl;
// G4cout << " impctX, impctY " << impactX/fermi << " "<<impactY/fermi << " fm" << G4endl;
theNucleus->StartLoop();
G4Nucleon * nucleon;
@@ -130,7 +130,7 @@ void G4FTFParticipants::BuildInteractions(const G4ReactionProduct &thePrimary)
// G4cout << "Number of Hit nucleons " << theInteractions.entries()
// << "\t" << impactX/fermi << "\t"<<impactY/fermi
// << "\t" << sqrt(sqr(impactX)+sqr(impactY))/fermi <<endl;
// << "\t" << sqrt(sqr(impactX)+sqr(impactY))/fermi <<G4endl;
}