1 #include "SimG4Core/PhysicsLists/interface/CMSFTFPProtonBuilder.hh"
2 #include "G4ParticleDefinition.hh"
3 #include "G4ParticleTable.hh"
4 #include "G4ProcessManager.hh"
5 #include "G4ProtonInelasticCrossSection.hh"
6 #include "G4SystemOfUnits.hh"
8 CMSFTFPProtonBuilder::CMSFTFPProtonBuilder(G4bool quasiElastic) {
11 theModel =
new G4TheoFSGenerator(
"FTFP");
13 theStringModel =
new G4FTFModel;
14 theStringDecay =
new G4ExcitedStringDecay(
new G4LundStringFragmentation);
15 theStringModel->SetFragmentationModel(theStringDecay);
17 theCascade =
new G4GeneratorPrecompoundInterface;
18 thePreEquilib =
new G4PreCompoundModel(
new G4ExcitationHandler);
19 theCascade->SetDeExcitation(thePreEquilib);
21 theModel->SetHighEnergyGenerator(theStringModel);
23 theQuasiElastic =
new G4QuasiElasticChannel;
24 theModel->SetQuasiElasticChannel(theQuasiElastic);
26 theQuasiElastic =
nullptr;
29 theModel->SetTransport(theCascade);
30 theModel->SetMinEnergy(theMin);
31 theModel->SetMaxEnergy(100 * TeV);
34 void CMSFTFPProtonBuilder::Build(G4ProtonInelasticProcess* aP) {
35 theModel->SetMinEnergy(theMin);
36 theModel->SetMaxEnergy(theMax);
37 aP->RegisterMe(theModel);
38 aP->AddDataSet(
new G4ProtonInelasticCrossSection);
41 CMSFTFPProtonBuilder::~CMSFTFPProtonBuilder() {
42 delete theStringDecay;
43 delete theStringModel;
47 delete theQuasiElastic;
50 void CMSFTFPProtonBuilder::Build(G4HadronElasticProcess*) {}