Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4LEPNeutronBuilder Class Reference

#include <G4LEPNeutronBuilder.hh>

+ Inheritance diagram for G4LEPNeutronBuilder:

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)
 
- Public Member Functions inherited from G4VNeutronBuilder
 G4VNeutronBuilder ()
 
virtual ~G4VNeutronBuilder ()
 
virtual void Build (G4HadronElasticProcess *aP)=0
 
virtual void Build (G4HadronFissionProcess *aP)=0
 
virtual void Build (G4HadronCaptureProcess *aP)=0
 
virtual void Build (G4NeutronInelasticProcess *aP)=0
 

Detailed Description

Definition at line 55 of file G4LEPNeutronBuilder.hh.

Constructor & Destructor Documentation

◆ G4LEPNeutronBuilder()

G4LEPNeutronBuilder::G4LEPNeutronBuilder ( )

Definition at line 46 of file G4LEPNeutronBuilder.cc.

46 : theLENeutronModel(0),
47 theNeutronFissionModel(0),
48 theNeutronCaptureModel(0) {
49 theMin = 0;
50 theIMin = theMin;
51 theMax = 20*TeV;
52 theIMax = 55*GeV;
53}

◆ ~G4LEPNeutronBuilder()

G4LEPNeutronBuilder::~G4LEPNeutronBuilder ( )
virtual

Definition at line 55 of file G4LEPNeutronBuilder.cc.

56{
57 if (theNeutronFissionModel) delete theNeutronFissionModel;
58 if (theNeutronCaptureModel) delete theNeutronCaptureModel;
59 if (theLENeutronModel) delete theLENeutronModel;
60}

Member Function Documentation

◆ Build() [1/4]

void G4LEPNeutronBuilder::Build ( G4HadronCaptureProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 77 of file G4LEPNeutronBuilder.cc.

79{
80 theNeutronCaptureModel = new G4LCapture();
81 theNeutronCaptureModel->SetMinEnergy(theMin);
82 theNeutronCaptureModel->SetMaxEnergy(theMax);
83 aP->RegisterMe(theNeutronCaptureModel);
84}
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void RegisterMe(G4HadronicInteraction *a)

◆ Build() [2/4]

void G4LEPNeutronBuilder::Build ( G4HadronElasticProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 62 of file G4LEPNeutronBuilder.cc.

64{
65 G4cout << "Info - G4LEPNeutronBuilder::Build() not adding elastic" << G4endl;
66}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

◆ Build() [3/4]

void G4LEPNeutronBuilder::Build ( G4HadronFissionProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 68 of file G4LEPNeutronBuilder.cc.

70{
71 theNeutronFissionModel = new G4LFission();
72 theNeutronFissionModel->SetMinEnergy(theMin);
73 theNeutronFissionModel->SetMaxEnergy(theMax);
74 aP->RegisterMe(theNeutronFissionModel);
75}

◆ Build() [4/4]

void G4LEPNeutronBuilder::Build ( G4NeutronInelasticProcess aP)
virtual

Implements G4VNeutronBuilder.

Definition at line 86 of file G4LEPNeutronBuilder.cc.

88{
89 if ( theIMax > 1.*eV )
90 {
91 theLENeutronModel = new G4LENeutronInelastic();
92 theLENeutronModel->SetMinEnergy(theIMin);
93 theLENeutronModel->SetMaxEnergy(theIMax);
94 aP->RegisterMe(theLENeutronModel);
95 }
96}

◆ SetMaxEnergy()

void G4LEPNeutronBuilder::SetMaxEnergy ( G4double  aM)
inline

Definition at line 76 of file G4LEPNeutronBuilder.hh.

77 {
78 theIMax = aM;
79 theMax=aM;
80 }

◆ SetMaxInelasticEnergy()

void G4LEPNeutronBuilder::SetMaxInelasticEnergy ( G4double  aM)
inline

Definition at line 81 of file G4LEPNeutronBuilder.hh.

82 {
83 theIMax = aM;
84 }

◆ SetMinEnergy()

void G4LEPNeutronBuilder::SetMinEnergy ( G4double  aM)
inline

Definition at line 67 of file G4LEPNeutronBuilder.hh.

68 {
69 theMin=aM;
70 theIMin = theMin;
71 }

◆ SetMinInelasticEnergy()

void G4LEPNeutronBuilder::SetMinInelasticEnergy ( G4double  aM)
inline

Definition at line 72 of file G4LEPNeutronBuilder.hh.

73 {
74 theIMin=aM;
75 }

The documentation for this class was generated from the following files: