Import Geant4 9.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:37:50 +02:00
parent a8e9364cea
commit 96c8bcd0af
6923 changed files with 198390 additions and 41849 deletions
@@ -29,7 +29,7 @@
#include "G4ProcessManager.hh"
G4QGSPNeutronBuilder::
G4QGSPNeutronBuilder(G4bool quasiElastic)
G4QGSPNeutronBuilder(G4bool quasiElastic, G4bool projectileDiffraction)
{
theMin = 12*GeV;
theModel = new G4TheoFSGenerator;
@@ -50,6 +50,12 @@ G4QGSPNeutronBuilder(G4bool quasiElastic)
theModel->SetQuasiElasticChannel(theQuasiElastic);
} else
{ theQuasiElastic=0;}
if ( projectileDiffraction )
{
theProjectileDiffraction=new G4ProjectileDiffractiveChannel;
theModel->SetProjectileDiffraction(theProjectileDiffraction);
} else
{ theProjectileDiffraction=0;}
}
G4QGSPNeutronBuilder::
@@ -60,6 +66,7 @@ G4QGSPNeutronBuilder::
delete thePreEquilib;
delete theCascade;
if ( theQuasiElastic ) delete theQuasiElastic;
if ( theProjectileDiffraction ) delete theProjectileDiffraction;
delete theModel;
}