#include <G4FTFCProtonBuilder.hh>
Inheritance diagram for G4FTFCProtonBuilder:
Public Member Functions | |
G4FTFCProtonBuilder (G4bool quasiElastic=false) | |
virtual | ~G4FTFCProtonBuilder () |
virtual void | Build (G4HadronElasticProcess *) |
virtual void | Build (G4ProtonInelasticProcess *aP) |
void | SetMinEnergy (G4double aM) |
Definition at line 57 of file G4FTFCProtonBuilder.hh.
G4FTFCProtonBuilder::G4FTFCProtonBuilder | ( | G4bool | quasiElastic = false |
) |
Definition at line 47 of file G4FTFCProtonBuilder.cc.
References G4VPartonStringModel::SetFragmentationModel(), G4TheoFSGenerator::SetHighEnergyGenerator(), G4HadronicInteraction::SetMaxEnergy(), G4HadronicInteraction::SetMinEnergy(), G4TheoFSGenerator::SetQuasiElasticChannel(), and G4TheoFSGenerator::SetTransport().
00048 { 00049 theMin = 4*GeV; 00050 theModel = new G4TheoFSGenerator; 00051 00052 theStringModel = new G4FTFModel; 00053 theStringDecay = new G4ExcitedStringDecay(new G4LundStringFragmentation); 00054 theStringModel->SetFragmentationModel(theStringDecay); 00055 00056 theCascade = new G4StringChipsParticleLevelInterface; 00057 00058 theModel->SetHighEnergyGenerator(theStringModel); 00059 00060 if (quasiElastic) 00061 { 00062 theQuasiElastic=new G4QuasiElasticChannel; 00063 theModel->SetQuasiElasticChannel(theQuasiElastic); 00064 } else 00065 { theQuasiElastic=0;} 00066 00067 theModel->SetTransport(theCascade); 00068 theModel->SetMinEnergy(theMin); 00069 theModel->SetMaxEnergy(100*TeV); 00070 }
G4FTFCProtonBuilder::~G4FTFCProtonBuilder | ( | ) | [virtual] |
Definition at line 72 of file G4FTFCProtonBuilder.cc.
00073 { 00074 delete theCascade; 00075 delete theStringDecay; 00076 if ( theQuasiElastic ) delete theQuasiElastic; 00077 delete theStringModel; 00078 delete theModel; 00079 }
void G4FTFCProtonBuilder::Build | ( | G4ProtonInelasticProcess * | aP | ) | [virtual] |
Implements G4VProtonBuilder.
Definition at line 82 of file G4FTFCProtonBuilder.cc.
References G4HadronicProcess::AddDataSet(), G4HadronicProcess::RegisterMe(), and G4HadronicInteraction::SetMinEnergy().
00083 { 00084 theModel->SetMinEnergy(theMin); 00085 aP->RegisterMe(theModel); 00086 aP->AddDataSet(new G4ProtonInelasticCrossSection); 00087 }
void G4FTFCProtonBuilder::Build | ( | G4HadronElasticProcess * | ) | [virtual] |
void G4FTFCProtonBuilder::SetMinEnergy | ( | G4double | aM | ) | [inline] |