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
@@ -1,4 +1,4 @@
# $Id: GNUmakefile,v 1.1 1999/01/07 16:12:13 gunter Exp $
# $Id: GNUmakefile,v 1.2 2003/06/18 13:34:26 gcosmo Exp $
# -----------------------------------------------------------
# GNUmakefile for hadronic library. Gabriele Cosmo, 18/9/96.
# -----------------------------------------------------------
@@ -11,8 +11,6 @@ endif
include $(G4INSTALL)/config/architecture.gmk
G4TMPDIR = $(G4TMP)/$(G4SYSTEM)/$(name)
CPPFLAGS += -I$(G4BASE)/global/management/include \
-I$(G4BASE)/global/HEPRandom/include \
-I$(G4BASE)/global/HEPNumerics/include \
@@ -22,7 +22,7 @@
//
//
// $Id: G4EventGenerator.hh,v 1.5 2002/12/12 19:17:54 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
#ifndef G4EventGenerator_h
#define G4EventGenerator_h 1
@@ -22,7 +22,7 @@
//
//
// $Id: G4InteractionCode.hh,v 1.5 2002/12/12 19:17:54 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
#ifndef G4InteractionCode_h
#define G4InteractionCode_h 1
@@ -22,7 +22,7 @@
//
//
// $Id: G4InteractionContent.hh,v 1.7 2002/12/12 19:17:54 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
#ifndef G4InteractionContent_h
@@ -24,7 +24,7 @@
#define G4PomeronCrossSection_h 1
//
// $Id: G4PomeronCrossSection.hh,v 1.7 2002/12/12 19:17:54 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
#include "G4Proton.hh"
#include "G4Neutron.hh"
@@ -22,7 +22,7 @@
//
//
// $Id: G4StringModel.hh,v 1.6 2002/12/12 19:17:55 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
#ifndef G4StringModel_h
#define G4StringModel_h 1
@@ -22,7 +22,7 @@
//
//
// $Id: G4VParticipants.hh,v 1.5 2002/12/12 19:17:55 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
#ifndef G4VParticipants_h
@@ -22,7 +22,7 @@
//
//
// $Id: G4VPartonStringModel.hh,v 1.6 2002/12/12 19:17:55 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
#ifndef G4VPartonStringModel_h
#define G4VPartonStringModel_h 1
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VSplitableHadron.hh,v 1.9 2002/12/12 19:17:55 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4VSplitableHadron.hh,v 1.10 2003/06/16 17:09:24 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
#ifndef G4VSplitableHadron_h
@@ -45,7 +45,7 @@ class G4Nucleon;
class G4Parton;
class G4VKineticNucleon;
#include "g4std/vector"
#include <vector>
class G4VSplitableHadron
{
@@ -22,7 +22,7 @@
//
//
// $Id: G4VStringFragmentation.hh,v 1.7 2002/12/12 19:17:55 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
#ifndef G4VStringFragmentation_h
#define G4VStringFragmentation_h 1
@@ -22,7 +22,7 @@
//
//
// $Id: G4VertexCode.hh,v 1.5 2002/12/12 19:17:55 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
#ifndef G4VertexCode_h
#define G4VertexCode_h 1
@@ -21,7 +21,7 @@
// ********************************************************************
//
//
// $Id: G4DiffractiveExcitation.cc,v 1.12 2002/12/12 19:17:55 gunter Exp $
// $Id: G4DiffractiveExcitation.cc,v 1.14 2003/06/16 17:09:25 gunter Exp $
// ------------------------------------------------------------
// GEANT 4 class implemetation file
//
@@ -222,7 +222,7 @@ G4ExcitedString * G4DiffractiveExcitation::
G4double tm1=hadron->Get4Momentum().minus() +
( Pend.perp2()-Pstart.perp2() ) / hadron->Get4Momentum().plus();
G4double tm2= sqrt( G4std::max(0., sqr(tm1) -
G4double tm2= sqrt( std::max(0., sqr(tm1) -
4. * Pend.perp2() * hadron->Get4Momentum().minus()
/ hadron->Get4Momentum().plus() ));
@@ -296,7 +296,7 @@ G4ThreeVector G4DiffractiveExcitation::GaussianPt(G4double widthSquare, G4double
return G4ThreeVector (pt2*cos(phi), pt2*sin(phi), 0.);
}
G4DiffractiveExcitation::G4DiffractiveExcitation(const G4DiffractiveExcitation &right)
G4DiffractiveExcitation::G4DiffractiveExcitation(const G4DiffractiveExcitation &)
:
widthOfPtSquare(0) , minExtraMass(0),
minmass(0)
@@ -310,20 +310,20 @@ G4DiffractiveExcitation::~G4DiffractiveExcitation()
}
const G4DiffractiveExcitation & G4DiffractiveExcitation::operator=(const G4DiffractiveExcitation &right)
const G4DiffractiveExcitation & G4DiffractiveExcitation::operator=(const G4DiffractiveExcitation &)
{
G4Exception("G4DiffractiveExcitation = operator meant to be called");
return *this;
}
int G4DiffractiveExcitation::operator==(const G4DiffractiveExcitation &right) const
int G4DiffractiveExcitation::operator==(const G4DiffractiveExcitation &) const
{
G4Exception("G4DiffractiveExcitation == operator meant to be called");
return false;
}
int G4DiffractiveExcitation::operator!=(const G4DiffractiveExcitation &right) const
int G4DiffractiveExcitation::operator!=(const G4DiffractiveExcitation &) const
{
G4Exception("G4DiffractiveExcitation != operator meant to be called");
return true;
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4EventGenerator.cc,v 1.5 2002/12/12 19:17:55 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4EventGenerator.cc,v 1.6 2003/05/30 14:43:20 hpw Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// G4EventGenerator
#include "G4EventGenerator.hh"
@@ -33,7 +33,7 @@ G4EventGenerator::G4EventGenerator()
SetMaxEnergy (0 *GeV);
}
G4EventGenerator::G4EventGenerator(const G4EventGenerator &right)
G4EventGenerator::G4EventGenerator(const G4EventGenerator &) : G4HadronicInteraction()
{
}
@@ -43,19 +43,19 @@ G4EventGenerator::~G4EventGenerator()
}
const G4EventGenerator & G4EventGenerator::operator=(const G4EventGenerator &right)
const G4EventGenerator & G4EventGenerator::operator=(const G4EventGenerator &)
{
G4Exception("G4EventGenerator::operator= meant to not be accessable");
return *this;
}
int G4EventGenerator::operator==(const G4EventGenerator &right) const
int G4EventGenerator::operator==(const G4EventGenerator &) const
{
return 0;
}
int G4EventGenerator::operator!=(const G4EventGenerator &right) const
int G4EventGenerator::operator!=(const G4EventGenerator &) const
{
return 1;
}
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4InteractionContent.cc,v 1.6 2002/12/12 19:17:55 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4InteractionContent.cc,v 1.7 2003/06/03 09:36:40 hpw Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ------------------------------------------------------------
// GEANT 4 class implementation file
@@ -40,7 +40,7 @@ G4InteractionContent::G4InteractionContent(G4VSplitableHadron *aPrimaryParticipa
theProjectile=aPrimaryParticipant;
}
G4InteractionContent::G4InteractionContent(const G4InteractionContent &right)
G4InteractionContent::G4InteractionContent(const G4InteractionContent &)
: theNumberOfHard(0), theNumberOfSoft(0)
{}
@@ -59,7 +59,7 @@ int G4InteractionContent::operator!=(const G4InteractionContent &right) const
}
const G4InteractionContent & G4InteractionContent::operator=(const G4InteractionContent &right)
const G4InteractionContent & G4InteractionContent::operator=(const G4InteractionContent &)
{
G4Exception("G4InteractionContent::operator= meant to not be accessable");
return *this;
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4PomeronCrossSection.cc,v 1.8 2002/12/12 19:17:55 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4PomeronCrossSection.cc,v 1.10 2003/06/03 09:36:40 hpw Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
#include "G4PomeronCrossSection.hh"
@@ -49,49 +49,49 @@ G4PomeronCrossSection::G4PomeronCrossSection(const G4ParticleDefinition * partic
//**********************************************************************************************
G4PomeronCrossSection::G4PomeronCrossSection(const G4Proton * particle)
G4PomeronCrossSection::G4PomeronCrossSection(const G4Proton * )
{
InitForNucleon();
}
G4PomeronCrossSection::G4PomeronCrossSection(const G4Neutron * particle)
G4PomeronCrossSection::G4PomeronCrossSection(const G4Neutron * )
{
InitForNucleon();
}
G4PomeronCrossSection::G4PomeronCrossSection(const G4PionPlus * particle)
G4PomeronCrossSection::G4PomeronCrossSection(const G4PionPlus * )
{
InitForPion();
}
G4PomeronCrossSection::G4PomeronCrossSection(const G4PionMinus * particle)
G4PomeronCrossSection::G4PomeronCrossSection(const G4PionMinus * )
{
InitForPion();
}
G4PomeronCrossSection::G4PomeronCrossSection(const G4PionZero * particle)
G4PomeronCrossSection::G4PomeronCrossSection(const G4PionZero * )
{
InitForPion();
}
G4PomeronCrossSection::G4PomeronCrossSection(const G4KaonPlus * particle)
G4PomeronCrossSection::G4PomeronCrossSection(const G4KaonPlus * )
{
InitForKaon();
}
G4PomeronCrossSection::G4PomeronCrossSection(const G4KaonMinus * particle)
G4PomeronCrossSection::G4PomeronCrossSection(const G4KaonMinus * )
{
InitForKaon();
}
G4PomeronCrossSection::G4PomeronCrossSection(const G4KaonZero * particle)
G4PomeronCrossSection::G4PomeronCrossSection(const G4KaonZero * )
{
InitForKaon();
}
G4PomeronCrossSection::G4PomeronCrossSection(const G4KaonZeroLong * particle)
G4PomeronCrossSection::G4PomeronCrossSection(const G4KaonZeroLong * )
{
InitForKaon();
}
G4PomeronCrossSection::G4PomeronCrossSection(const G4KaonZeroShort * particle)
G4PomeronCrossSection::G4PomeronCrossSection(const G4KaonZeroShort * )
{
InitForKaon();
}
G4PomeronCrossSection::G4PomeronCrossSection(const G4Gamma * particle)
G4PomeronCrossSection::G4PomeronCrossSection(const G4Gamma * )
{
InitForGamma();
}
@@ -285,7 +285,7 @@ inline G4double G4PomeronCrossSection::LambdaSoft(const G4double s)
return pomeron_Rsquare+pomeron_Alphaprime*log(s/pomeron_S);
}
inline G4double G4PomeronCrossSection::LambdaHard(const G4double s)
inline G4double G4PomeronCrossSection::LambdaHard(const G4double /*s*/)
{
return pomeron_Rsquare; //+pomeron_Alphaprime*log(s/pomeron_S);
}
@@ -21,7 +21,7 @@
// ********************************************************************
//
//
// $Id: G4SingleDiffractiveExcitation.cc,v 1.10 2002/12/12 19:17:55 gunter Exp $
// $Id: G4SingleDiffractiveExcitation.cc,v 1.11 2003/05/30 14:43:20 hpw Exp $
// ------------------------------------------------------------
// GEANT 4 class implemetation file
//
@@ -236,8 +236,8 @@ G4ThreeVector G4SingleDiffractiveExcitation::GaussianPt(G4double widthSquare, G4
return G4ThreeVector (pt2*cos(phi), pt2*sin(phi), 0.);
}
G4SingleDiffractiveExcitation::G4SingleDiffractiveExcitation(const G4SingleDiffractiveExcitation &right)
:
G4SingleDiffractiveExcitation::G4SingleDiffractiveExcitation(const G4SingleDiffractiveExcitation &)
: G4DiffractiveExcitation(),
widthOfPtSquare(0) , minExtraMass(0),
minmass(0)
{
@@ -250,20 +250,20 @@ G4SingleDiffractiveExcitation::~G4SingleDiffractiveExcitation()
}
const G4SingleDiffractiveExcitation & G4SingleDiffractiveExcitation::operator=(const G4SingleDiffractiveExcitation &right)
const G4SingleDiffractiveExcitation & G4SingleDiffractiveExcitation::operator=(const G4SingleDiffractiveExcitation &)
{
G4Exception("G4SingleDiffractiveExcitation = operator meant to be called");
return *this;
}
int G4SingleDiffractiveExcitation::operator==(const G4SingleDiffractiveExcitation &right) const
int G4SingleDiffractiveExcitation::operator==(const G4SingleDiffractiveExcitation &) const
{
G4Exception("G4SingleDiffractiveExcitation == operator meant to be called");
return false;
}
int G4SingleDiffractiveExcitation::operator!=(const G4SingleDiffractiveExcitation &right) const
int G4SingleDiffractiveExcitation::operator!=(const G4SingleDiffractiveExcitation &) const
{
G4Exception("G4SingleDiffractiveExcitation != operator meant to be called");
return true;
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4StringModel.cc,v 1.5 2002/12/12 19:17:55 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4StringModel.cc,v 1.6 2003/05/30 14:43:20 hpw Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// G4StringModel
#include "G4StringModel.hh"
@@ -34,7 +34,7 @@ G4StringModel::G4StringModel()
theGenerator=NULL;
}
G4StringModel::G4StringModel(const G4StringModel &right)
G4StringModel::G4StringModel(const G4StringModel &) : G4VHighEnergyGenerator()
{
}
@@ -44,19 +44,19 @@ G4StringModel::~G4StringModel()
}
const G4StringModel & G4StringModel::operator=(const G4StringModel &right)
const G4StringModel & G4StringModel::operator=(const G4StringModel &)
{
G4Exception("G4StringModel::operator= meant to not be accessable");
return *this;
}
int G4StringModel::operator==(const G4StringModel &right) const
int G4StringModel::operator==(const G4StringModel &) const
{
return 0;
}
int G4StringModel::operator!=(const G4StringModel &right) const
int G4StringModel::operator!=(const G4StringModel &) const
{
return 1;
}
@@ -22,7 +22,7 @@
//
//
// $Id: G4VParticipants.cc,v 1.5 2002/12/12 19:17:55 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// GEANT4 tag $Name: geant4-05-02 $
//
// ------------------------------------------------------------
// GEANT 4 class implementation file
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VPartonStringModel.cc,v 1.12 2002/12/12 19:17:55 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4VPartonStringModel.cc,v 1.14 2003/06/16 17:09:26 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
//// ------------------------------------------------------------
// GEANT 4 class implementation file
@@ -45,7 +45,7 @@ G4VPartonStringModel::G4VPartonStringModel()
ShortLived.ConstructParticle();
}
G4VPartonStringModel::G4VPartonStringModel(const G4VPartonStringModel &right)
G4VPartonStringModel::G4VPartonStringModel(const G4VPartonStringModel &) : G4VHighEnergyGenerator()
{
}
@@ -55,19 +55,19 @@ G4VPartonStringModel::~G4VPartonStringModel()
}
const G4VPartonStringModel & G4VPartonStringModel::operator=(const G4VPartonStringModel &right)
const G4VPartonStringModel & G4VPartonStringModel::operator=(const G4VPartonStringModel &)
{
G4Exception("G4VPartonStringModel::operator= meant to not be accessable");
return *this;
}
int G4VPartonStringModel::operator==(const G4VPartonStringModel &right) const
int G4VPartonStringModel::operator==(const G4VPartonStringModel &) const
{
return 0;
}
int G4VPartonStringModel::operator!=(const G4VPartonStringModel &right) const
int G4VPartonStringModel::operator!=(const G4VPartonStringModel &) const
{
return 1;
}
@@ -106,7 +106,7 @@ G4KineticTrackVector * G4VPartonStringModel::Scatter(const G4Nucleus &theNucleus
}
theResult = stringFragmentationModel->FragmentStrings(strings);
G4std::for_each(strings->begin(), strings->end(), DeleteString() );
std::for_each(strings->begin(), strings->end(), DeleteString() );
delete strings;
return theResult;
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VSplitableHadron.cc,v 1.7 2002/12/12 19:17:55 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4VSplitableHadron.cc,v 1.8 2003/05/30 14:43:21 hpw Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// ------------------------------------------------------------
@@ -83,7 +83,7 @@ G4VSplitableHadron::~G4VSplitableHadron()
}
const G4VSplitableHadron & G4VSplitableHadron::operator=(const G4VSplitableHadron &right)
const G4VSplitableHadron & G4VSplitableHadron::operator=(const G4VSplitableHadron &)
{
G4Exception("G4VSplitableHadron::operator= meant to not be accessable");
return *this;
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VStringFragmentation.cc,v 1.5 2002/12/12 19:17:55 gunter Exp $
// GEANT4 tag $Name: geant4-05-01 $
// $Id: G4VStringFragmentation.cc,v 1.6 2003/05/30 14:43:21 hpw Exp $
// GEANT4 tag $Name: geant4-05-02 $
//
// G4VStringFragmentation
#include "G4VStringFragmentation.hh"
@@ -31,7 +31,7 @@ G4VStringFragmentation::G4VStringFragmentation()
{
}
G4VStringFragmentation::G4VStringFragmentation(const G4VStringFragmentation &right)
G4VStringFragmentation::G4VStringFragmentation(const G4VStringFragmentation &)
{
}
@@ -39,18 +39,18 @@ G4VStringFragmentation::~G4VStringFragmentation()
{
}
const G4VStringFragmentation & G4VStringFragmentation::operator=(const G4VStringFragmentation &right)
const G4VStringFragmentation & G4VStringFragmentation::operator=(const G4VStringFragmentation &)
{
G4Exception("G4VStringFragmentation::operator= meant to not be accessable");
return *this;
}
int G4VStringFragmentation::operator==(const G4VStringFragmentation &right) const
int G4VStringFragmentation::operator==(const G4VStringFragmentation &) const
{
return 0;
}
int G4VStringFragmentation::operator!=(const G4VStringFragmentation &right) const
int G4VStringFragmentation::operator!=(const G4VStringFragmentation &) const
{
return 1;
}