Import Geant4 8.3.0 source tree
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user