#include <G4QGSCEflowProtonBuilder.hh>
Inheritance diagram for G4QGSCEflowProtonBuilder:
Public Member Functions | |
G4QGSCEflowProtonBuilder (G4bool quasiElastic=false) | |
virtual | ~G4QGSCEflowProtonBuilder () |
virtual void | Build (G4HadronElasticProcess *aP) |
virtual void | Build (G4ProtonInelasticProcess *aP) |
void | SetMinEnergy (G4double aM) |
Definition at line 59 of file G4QGSCEflowProtonBuilder.hh.
G4QGSCEflowProtonBuilder::G4QGSCEflowProtonBuilder | ( | G4bool | quasiElastic = false |
) |
Definition at line 47 of file G4QGSCEflowProtonBuilder.cc.
References G4VPartonStringModel::SetFragmentationModel(), G4TheoFSGenerator::SetHighEnergyGenerator(), G4TheoFSGenerator::SetQuasiElasticChannel(), and G4TheoFSGenerator::SetTransport().
00048 { 00049 theMin = 8*GeV; 00050 theModel = new G4TheoFSGenerator("QGSCEflow"); 00051 00052 theStringModel = new G4QGSModel< G4QGSParticipants >; 00053 theStringDecay = new G4ExcitedStringDecay(new G4QGSMFragmentation); 00054 theStringModel->SetFragmentationModel(theStringDecay); 00055 00056 theCascade = new G4StringChipsParticleLevelInterface; 00057 00058 theModel->SetHighEnergyGenerator(theStringModel); 00059 theModel->SetTransport(theCascade); 00060 if (quasiElastic) 00061 { 00062 theQuasiElastic=new G4QuasiElasticChannel; 00063 theModel->SetQuasiElasticChannel(theQuasiElastic); 00064 } else 00065 { theQuasiElastic=0;} 00066 }
G4QGSCEflowProtonBuilder::~G4QGSCEflowProtonBuilder | ( | ) | [virtual] |
Definition at line 69 of file G4QGSCEflowProtonBuilder.cc.
00070 { 00071 delete theCascade; 00072 delete theStringDecay; 00073 delete theStringModel; 00074 if ( theQuasiElastic ) delete theQuasiElastic; 00075 delete theModel; 00076 }
void G4QGSCEflowProtonBuilder::Build | ( | G4ProtonInelasticProcess * | aP | ) | [virtual] |
Implements G4VProtonBuilder.
Definition at line 84 of file G4QGSCEflowProtonBuilder.cc.
References G4HadronicProcess::AddDataSet(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().
00085 { 00086 theModel->SetMinEnergy(theMin); 00087 theModel->SetMaxEnergy(100*TeV); 00088 aP->RegisterMe(theModel); 00089 aP->AddDataSet(new G4ProtonInelasticCrossSection); 00090 }
void G4QGSCEflowProtonBuilder::Build | ( | G4HadronElasticProcess * | aP | ) | [virtual] |
void G4QGSCEflowProtonBuilder::SetMinEnergy | ( | G4double | aM | ) | [inline] |