9#include <simulation/physicslist/ProtonPhysics.h>
11#include "G4ProcessManager.hh"
12#include "G4HadronInelasticProcess.hh"
13#include "G4HadronElasticProcess.hh"
15#include "G4CascadeInterface.hh"
16#include "G4TheoFSGenerator.hh"
17#include "G4FTFModel.hh"
18#include "G4ExcitedStringDecay.hh"
19#include "G4LundStringFragmentation.hh"
20#include "G4GeneratorPrecompoundInterface.hh"
21#include "G4ChipsElasticModel.hh"
23#include "G4BGGNucleonInelasticXS.hh"
24#include "G4ChipsProtonElasticXS.hh"
26#include "G4SystemOfUnits.hh"
29using namespace Simulation;
32ProtonPhysics::ProtonPhysics()
33 : m_ftfp(nullptr), m_stringModel(nullptr), m_stringDecay(nullptr),
34 m_fragModel(nullptr), m_preCompoundModel(nullptr)
38ProtonPhysics::~ProtonPhysics()
43 delete m_preCompoundModel;
47void ProtonPhysics::ConstructProcess()
50 G4ChipsElasticModel* elMod =
new G4ChipsElasticModel();
53 G4CascadeInterface* loInelModel =
new G4CascadeInterface;
54 loInelModel->SetMinEnergy(0.0);
55 loInelModel->SetMaxEnergy(12.0 * GeV);
58 m_ftfp =
new G4TheoFSGenerator(
"FTFP");
59 m_stringModel =
new G4FTFModel;
61 new G4ExcitedStringDecay(m_fragModel =
new G4LundStringFragmentation);
62 m_stringModel->SetFragmentationModel(m_stringDecay);
63 m_preCompoundModel =
new G4GeneratorPrecompoundInterface();
65 m_ftfp->SetHighEnergyGenerator(m_stringModel);
66 m_ftfp->SetTransport(m_preCompoundModel);
67 m_ftfp->SetMinEnergy(5 * GeV);
68 m_ftfp->SetMaxEnergy(100 * TeV);
71 G4BGGNucleonInelasticXS* inelCS =
new G4BGGNucleonInelasticXS(G4Proton::Proton());
72 G4ChipsProtonElasticXS* elCS =
new G4ChipsProtonElasticXS;
74 G4ProcessManager* procMan = G4Proton::Proton()->GetProcessManager();
77 G4HadronElasticProcess* pProcEl =
new G4HadronElasticProcess;
78 pProcEl->RegisterMe(elMod);
79 pProcEl->AddDataSet(elCS);
80 procMan->AddDiscreteProcess(pProcEl);
83 G4HadronInelasticProcess* pProcInel =
new G4HadronInelasticProcess(
"protonInelastic", G4Proton::Definition());
84 pProcInel->RegisterMe(loInelModel);
85 pProcInel->RegisterMe(m_ftfp);
86 pProcInel->AddDataSet(inelCS);
87 procMan->AddDiscreteProcess(pProcInel);
91void ProtonPhysics::ConstructParticle()
Abstract base class for different kinds of events.