G4QGSCEflowProtonBuilder Class Reference

#include <G4QGSCEflowProtonBuilder.hh>

Inheritance diagram for G4QGSCEflowProtonBuilder:

G4VProtonBuilder

Public Member Functions

 G4QGSCEflowProtonBuilder (G4bool quasiElastic=false)
virtual ~G4QGSCEflowProtonBuilder ()
virtual void Build (G4HadronElasticProcess *aP)
virtual void Build (G4ProtonInelasticProcess *aP)
void SetMinEnergy (G4double aM)

Detailed Description

Definition at line 59 of file G4QGSCEflowProtonBuilder.hh.


Constructor & Destructor Documentation

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 }


Member Function Documentation

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]

Implements G4VProtonBuilder.

Definition at line 79 of file G4QGSCEflowProtonBuilder.cc.

00080 {
00081 }

void G4QGSCEflowProtonBuilder::SetMinEnergy ( G4double  aM  )  [inline]

Definition at line 69 of file G4QGSCEflowProtonBuilder.hh.

00069 {theMin = aM;}


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:07 2013 for Geant4 by  doxygen 1.4.7