1 #include "SimG4Core/PhysicsLists/interface/CMSFTFPProtonBuilder.hh"
2 #include "G4ParticleDefinition.hh"
3 #include "G4ParticleTable.hh"
4 #include "G4ProcessManager.hh"
5 #include "G4ProtonInelasticCrossSection.hh"
8 CMSFTFPProtonBuilder(G4bool quasiElastic)
12 theModel =
new G4TheoFSGenerator(
"FTFP");
14 theStringModel =
new G4FTFModel;
15 theStringDecay =
new G4ExcitedStringDecay(
new G4LundStringFragmentation);
16 theStringModel->SetFragmentationModel(theStringDecay);
18 theCascade =
new G4GeneratorPrecompoundInterface;
19 thePreEquilib =
new G4PreCompoundModel(
new G4ExcitationHandler);
20 theCascade->SetDeExcitation(thePreEquilib);
22 theModel->SetHighEnergyGenerator(theStringModel);
25 theQuasiElastic=
new G4QuasiElasticChannel;
26 theModel->SetQuasiElasticChannel(theQuasiElastic);
30 theModel->SetTransport(theCascade);
31 theModel->SetMinEnergy(theMin);
32 theModel->SetMaxEnergy(100*TeV);
35 void CMSFTFPProtonBuilder::
36 Build(G4ProtonInelasticProcess * aP)
38 theModel->SetMinEnergy(theMin);
39 theModel->SetMaxEnergy(theMax);
40 aP->RegisterMe(theModel);
41 aP->AddDataSet(
new G4ProtonInelasticCrossSection);
44 CMSFTFPProtonBuilder::
45 ~CMSFTFPProtonBuilder()
47 delete theStringDecay;
48 delete theStringModel;
51 if ( theQuasiElastic )
delete theQuasiElastic;
54 void CMSFTFPProtonBuilder::
55 Build(G4HadronElasticProcess * )