Import Geant4 8.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:07:44 +02:00
parent fe73f43734
commit 75c7fd177d
764 changed files with 45230 additions and 95238 deletions
@@ -29,7 +29,7 @@
#include "G4ProcessManager.hh"
G4QGSCProtonBuilder::
G4QGSCProtonBuilder()
G4QGSCProtonBuilder(G4bool quasiElastic)
{
theMin = 8*GeV;
theModel = new G4TheoFSGenerator;
@@ -42,6 +42,12 @@ G4QGSCProtonBuilder()
theModel->SetHighEnergyGenerator(theStringModel);
theModel->SetTransport(theCascade);
if (quasiElastic)
{
theQuasiElastic=new G4QuasiElasticChannel;
theModel->SetQuasiElasticChannel(theQuasiElastic);
} else
{ theQuasiElastic=0;}
}
G4QGSCProtonBuilder::
@@ -50,6 +56,7 @@ G4QGSCProtonBuilder::
delete theCascade;
delete theStringDecay;
delete theStringModel;
if ( theQuasiElastic ) delete theQuasiElastic;
delete theModel;
}