Import Geant4 5.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:57:27 +02:00
parent 330b82b769
commit 37fff30d2e
5733 changed files with 263867 additions and 74574 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: H02EMPhysics.cc,v 1.1 2002/05/28 14:15:46 murakami Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: H02EMPhysics.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: H02GeneralPhysics.cc,v 1.1 2002/05/28 14:15:47 murakami Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: H02GeneralPhysics.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -19,13 +19,6 @@
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: H02HadronPhysics.cc,v 1.1 2002/05/28 14:15:47 murakami Exp $
// GEANT4 tag $Name: geant4-04-01 $
//
//
#include "H02HadronPhysics.hh"
#include "globals.hh"
@@ -40,6 +33,7 @@ H02HadronPhysics::H02HadronPhysics(const G4String& name)
H02HadronPhysics::~H02HadronPhysics()
{
delete theStringDecay;
}
#include "G4ParticleDefinition.hh"
@@ -78,15 +72,25 @@ void H02HadronPhysics::ConstructProcess()
theElasticModel = new G4LElastic();
theElasticProcess.RegisterMe(theElasticModel);
// pi+ and pi-
thePreEquilib = new G4PreCompoundModel(&theHandler);
theCascade.SetDeExcitation(thePreEquilib);
theTheoModel.SetTransport(&theCascade);
theTheoModel.SetHighEnergyGenerator(&theStringModel);
theStringDecay = new G4ExcitedStringDecay(&theFragmentation);
theStringModel.SetFragmentationModel(theStringDecay);
theTheoModel.SetMinEnergy(15*GeV);
theTheoModel.SetMaxEnergy(100*TeV);
// PionPlus
pManager = G4PionPlus::PionPlus()->GetProcessManager();
// add process
pManager->AddDiscreteProcess(&theElasticProcess);
theLEPionPlusModel = new G4LEPionPlusInelastic();
theHEPionPlusModel = new G4HEPionPlusInelastic();
thePionPlusInelastic.RegisterMe(theLEPionPlusModel);
thePionPlusInelastic.RegisterMe(theHEPionPlusModel);
thePionPlusInelastic.RegisterMe(&theTheoModel);
pManager->AddDiscreteProcess(&thePionPlusInelastic);
pManager->AddProcess(&thePionPlusIonisation, ordInActive,2, 2);
@@ -101,9 +105,8 @@ void H02HadronPhysics::ConstructProcess()
pManager->AddDiscreteProcess(&theElasticProcess);
theLEPionMinusModel = new G4LEPionMinusInelastic();
theHEPionMinusModel = new G4HEPionMinusInelastic();
thePionMinusInelastic.RegisterMe(theLEPionMinusModel);
thePionMinusInelastic.RegisterMe(theHEPionMinusModel);
thePionMinusInelastic.RegisterMe(&theTheoModel);
pManager->AddDiscreteProcess(&thePionMinusInelastic);
pManager->AddProcess(&thePionMinusIonisation, ordInActive,2, 2);
@@ -122,7 +125,7 @@ void H02HadronPhysics::ConstructProcess()
theLEKaonPlusModel = new G4LEKaonPlusInelastic();
theHEKaonPlusModel = new G4HEKaonPlusInelastic();
theKaonPlusInelastic.RegisterMe(theLEKaonPlusModel);
theKaonPlusInelastic.RegisterMe(theHEKaonPlusModel);
theKaonPlusInelastic.RegisterMe(&theTheoModel);
pManager->AddDiscreteProcess(&theKaonPlusInelastic);
pManager->AddProcess(&theKaonPlusIonisation, ordInActive,2, 2);
@@ -180,7 +183,7 @@ void H02HadronPhysics::ConstructProcess()
theLEProtonModel = new G4LEProtonInelastic();
theHEProtonModel = new G4HEProtonInelastic();
theProtonInelastic.RegisterMe(theLEProtonModel);
theProtonInelastic.RegisterMe(theHEProtonModel);
theProtonInelastic.RegisterMe(&theTheoModel);
pManager->AddDiscreteProcess(&theProtonInelastic);
pManager->AddProcess(&theProtonIonisation, ordInActive,2, 2);
@@ -216,7 +219,7 @@ void H02HadronPhysics::ConstructProcess()
theLENeutronModel = new G4LENeutronInelastic();
theHENeutronModel = new G4HENeutronInelastic();
theNeutronInelastic.RegisterMe(theLENeutronModel);
theNeutronInelastic.RegisterMe(theHENeutronModel);
theNeutronInelastic.RegisterMe(&theTheoModel);
pManager->AddDiscreteProcess(&theNeutronInelastic);
//theNeutronFissionModel = new G4LFission();
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: H02IonPhysics.cc,v 1.1 2002/05/28 14:15:47 murakami Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: H02IonPhysics.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: H02MuonPhysics.cc,v 1.1 2002/05/28 14:15:47 murakami Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: H02MuonPhysics.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: H02PhysicsList.cc,v 1.1 2002/05/28 14:15:48 murakami Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: H02PhysicsList.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
@@ -23,7 +23,7 @@
// ====================================================================
//
// HepMCG4AsciiReader.cc
// $Id: HepMCG4AsciiReader.cc,v 1.1 2002/05/28 14:15:49 murakami Exp $
// $Id: HepMCG4AsciiReader.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
//
// ====================================================================
#include "HepMCG4AsciiReader.hh"
@@ -37,7 +37,7 @@ HepMCG4AsciiReader::HepMCG4AsciiReader()
: filename("xxx.dat"), verbose(0)
////////////////////////////////////////
{
asciiInput= new HepMC::IO_Ascii(filename.c_str(), ios::in);
asciiInput= new HepMC::IO_Ascii(filename.c_str(), G4std::ios::in);
messenger= new HepMCG4AsciiReaderMessenger(this);
}
@@ -56,7 +56,7 @@ void HepMCG4AsciiReader::Initialize()
{
delete asciiInput;
asciiInput= new HepMC::IO_Ascii(filename.c_str(), ios::in);
asciiInput= new HepMC::IO_Ascii(filename.c_str(), G4std::ios::in);
asciiInput-> print();
}
@@ -23,7 +23,7 @@
// ====================================================================
//
// HepMCG4AsciiReaderMessenger.cc
// $Id: HepMCG4AsciiReaderMessenger.cc,v 1.1 2002/05/28 14:15:49 murakami Exp $
// $Id: HepMCG4AsciiReaderMessenger.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
//
// ====================================================================
#include "HepMCG4AsciiReaderMessenger.hh"
@@ -23,7 +23,7 @@
// ====================================================================
//
// HepMCG4Interface.cc
// $Id: HepMCG4Interface.cc,v 1.1 2002/05/28 14:15:50 murakami Exp $
// $Id: HepMCG4Interface.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
//
// ====================================================================
#include "HepMCG4Interface.hh"
@@ -23,7 +23,7 @@
// ====================================================================
//
// HepMCG4PythiaInterface.cc
// $Id: HepMCG4PythiaInterface.cc,v 1.1 2002/05/28 14:15:50 murakami Exp $
// $Id: HepMCG4PythiaInterface.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
//
// ====================================================================
#include "HepMCG4PythiaInterface.hh"
@@ -23,7 +23,7 @@
// ====================================================================
//
// HepMCG4PythiaMessenger.cc
// $Id: HepMCG4PythiaMessenger.cc,v 1.1 2002/05/28 14:15:50 murakami Exp $
// $Id: HepMCG4PythiaMessenger.cc,v 1.2 2002/11/19 10:25:49 murakami Exp $
//
// ====================================================================
#include "HepMCG4PythiaMessenger.hh"