G4QGSPNeutronBuilder Class Reference

#include <G4QGSPNeutronBuilder.hh>

Inheritance diagram for G4QGSPNeutronBuilder:

G4VNeutronBuilder

Public Member Functions

 G4QGSPNeutronBuilder (G4bool quasiElastic=false, G4bool projectileDiffraction=false)
virtual ~G4QGSPNeutronBuilder ()
virtual void Build (G4HadronElasticProcess *aP)
virtual void Build (G4HadronFissionProcess *aP)
virtual void Build (G4HadronCaptureProcess *aP)
virtual void Build (G4NeutronInelasticProcess *aP)
void SetMinEnergy (G4double aM)

Detailed Description

Definition at line 61 of file G4QGSPNeutronBuilder.hh.


Constructor & Destructor Documentation

G4QGSPNeutronBuilder::G4QGSPNeutronBuilder ( G4bool  quasiElastic = false,
G4bool  projectileDiffraction = false 
)

Definition at line 50 of file G4QGSPNeutronBuilder.cc.

References G4VIntraNuclearTransportModel::SetDeExcitation(), G4VPartonStringModel::SetFragmentationModel(), G4TheoFSGenerator::SetHighEnergyGenerator(), G4TheoFSGenerator::SetProjectileDiffraction(), G4TheoFSGenerator::SetQuasiElasticChannel(), and G4TheoFSGenerator::SetTransport().

00051 {
00052   theMin = 12*GeV;
00053   theModel = new G4TheoFSGenerator("QGSP");
00054 
00055   theStringModel = new G4QGSModel< G4QGSParticipants >;
00056   theStringDecay = new G4ExcitedStringDecay(theQGSM = new G4QGSMFragmentation);
00057   theStringModel->SetFragmentationModel(theStringDecay);
00058 
00059   theCascade = new G4GeneratorPrecompoundInterface;
00060   thePreEquilib = new G4PreCompoundModel(theHandler = new G4ExcitationHandler);
00061   theCascade->SetDeExcitation(thePreEquilib);  
00062 
00063   theModel->SetTransport(theCascade);
00064   theModel->SetHighEnergyGenerator(theStringModel);
00065   if (quasiElastic)
00066   {
00067      theQuasiElastic=new G4QuasiElasticChannel;
00068      theModel->SetQuasiElasticChannel(theQuasiElastic);
00069   } else 
00070   {  theQuasiElastic=0;}  
00071   if ( projectileDiffraction )
00072   {
00073      theProjectileDiffraction=new G4ProjectileDiffractiveChannel;
00074      theModel->SetProjectileDiffraction(theProjectileDiffraction);
00075   } else 
00076   {  theProjectileDiffraction=0;}
00077 }

G4QGSPNeutronBuilder::~G4QGSPNeutronBuilder (  )  [virtual]

Definition at line 79 of file G4QGSPNeutronBuilder.cc.

00080 {
00081   delete theStringDecay;
00082   delete theStringModel;
00083   delete thePreEquilib;
00084   delete theCascade;
00085   if ( theQuasiElastic ) delete theQuasiElastic;
00086   if ( theProjectileDiffraction ) delete theProjectileDiffraction;
00087   delete theModel;
00088   delete theQGSM;
00089   //delete theHandler;
00090 }


Member Function Documentation

void G4QGSPNeutronBuilder::Build ( G4NeutronInelasticProcess aP  )  [virtual]

Implements G4VNeutronBuilder.

Definition at line 108 of file G4QGSPNeutronBuilder.cc.

References G4HadronicProcess::AddDataSet(), G4Neutron::Neutron(), G4HadronicProcess::RegisterMe(), G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().

00109 {
00110   theModel->SetMinEnergy(theMin);
00111   theModel->SetMaxEnergy(100*TeV);
00112   aP->RegisterMe(theModel);
00113    aP->AddDataSet(new G4BGGNucleonInelasticXS(G4Neutron::Neutron()));
00114 }

void G4QGSPNeutronBuilder::Build ( G4HadronCaptureProcess aP  )  [virtual]

Implements G4VNeutronBuilder.

Definition at line 103 of file G4QGSPNeutronBuilder.cc.

00104 {
00105 }

void G4QGSPNeutronBuilder::Build ( G4HadronFissionProcess aP  )  [virtual]

Implements G4VNeutronBuilder.

Definition at line 98 of file G4QGSPNeutronBuilder.cc.

00099 {
00100 }

void G4QGSPNeutronBuilder::Build ( G4HadronElasticProcess aP  )  [virtual]

Implements G4VNeutronBuilder.

Definition at line 93 of file G4QGSPNeutronBuilder.cc.

00094 {
00095 }

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

Definition at line 74 of file G4QGSPNeutronBuilder.hh.

00074 {theMin = aM;}


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