G4LEPNeutronBuilder Class Reference

#include <G4LEPNeutronBuilder.hh>

Inheritance diagram for G4LEPNeutronBuilder:

G4VNeutronBuilder

Public Member Functions

 G4LEPNeutronBuilder ()
virtual ~G4LEPNeutronBuilder ()
virtual void Build (G4HadronElasticProcess *aP)
virtual void Build (G4HadronFissionProcess *aP)
virtual void Build (G4HadronCaptureProcess *aP)
virtual void Build (G4NeutronInelasticProcess *aP)
void SetMinEnergy (G4double aM)
void SetMinInelasticEnergy (G4double aM)
void SetMaxEnergy (G4double aM)
void SetMaxInelasticEnergy (G4double aM)

Detailed Description

Definition at line 55 of file G4LEPNeutronBuilder.hh.


Constructor & Destructor Documentation

G4LEPNeutronBuilder::G4LEPNeutronBuilder (  ) 

Definition at line 46 of file G4LEPNeutronBuilder.cc.

00046                                          : theLENeutronModel(0),
00047                                              theNeutronFissionModel(0),
00048                                              theNeutronCaptureModel(0) {
00049   theMin = 0;
00050   theIMin = theMin;
00051   theMax = 20*TeV;
00052   theIMax = 55*GeV;
00053 }

G4LEPNeutronBuilder::~G4LEPNeutronBuilder (  )  [virtual]

Definition at line 55 of file G4LEPNeutronBuilder.cc.

00056 {
00057   if (theNeutronFissionModel) delete theNeutronFissionModel;
00058   if (theNeutronCaptureModel) delete theNeutronCaptureModel;
00059   if (theLENeutronModel)      delete theLENeutronModel;
00060 }


Member Function Documentation

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

Implements G4VNeutronBuilder.

Definition at line 87 of file G4LEPNeutronBuilder.cc.

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

00088 {
00089   if ( theIMax > 1.*eV ) 
00090   {
00091      theLENeutronModel = new G4LENeutronInelastic();
00092      theLENeutronModel->SetMinEnergy(theIMin);
00093      theLENeutronModel->SetMaxEnergy(theIMax);
00094      aP->RegisterMe(theLENeutronModel);
00095   }
00096 }

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

Implements G4VNeutronBuilder.

Definition at line 78 of file G4LEPNeutronBuilder.cc.

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

00079 {
00080   theNeutronCaptureModel = new G4LCapture();
00081   theNeutronCaptureModel->SetMinEnergy(theMin);
00082   theNeutronCaptureModel->SetMaxEnergy(theMax);
00083   aP->RegisterMe(theNeutronCaptureModel);
00084 }

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

Implements G4VNeutronBuilder.

Definition at line 69 of file G4LEPNeutronBuilder.cc.

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

00070 {
00071   theNeutronFissionModel = new G4LFission();
00072   theNeutronFissionModel->SetMinEnergy(theMin);
00073   theNeutronFissionModel->SetMaxEnergy(theMax);
00074   aP->RegisterMe(theNeutronFissionModel);
00075 }

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

Implements G4VNeutronBuilder.

Definition at line 63 of file G4LEPNeutronBuilder.cc.

References G4cout, and G4endl.

00064 {
00065      G4cout << "Info - G4LEPNeutronBuilder::Build() not adding elastic" << G4endl;
00066 }

void G4LEPNeutronBuilder::SetMaxEnergy ( G4double  aM  )  [inline]

Definition at line 76 of file G4LEPNeutronBuilder.hh.

00077     {
00078       theIMax = aM;
00079       theMax=aM;
00080     }

void G4LEPNeutronBuilder::SetMaxInelasticEnergy ( G4double  aM  )  [inline]

Definition at line 81 of file G4LEPNeutronBuilder.hh.

00082     {
00083       theIMax = aM;
00084     }

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

Definition at line 67 of file G4LEPNeutronBuilder.hh.

00068     {
00069       theMin=aM;
00070       theIMin = theMin;
00071     }

void G4LEPNeutronBuilder::SetMinInelasticEnergy ( G4double  aM  )  [inline]

Definition at line 72 of file G4LEPNeutronBuilder.hh.

00073     {
00074       theIMin=aM;
00075     }


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