LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
MyG4BiasedBertiniNeutronBuilder Class Reference

#include "MyG4BiasedBertiniNeutronBuilder.hh"

Inheritance diagram for MyG4BiasedBertiniNeutronBuilder:

Public Member Functions

 MyG4BiasedBertiniNeutronBuilder ()
 
 MyG4BiasedBertiniNeutronBuilder (G4double XSMultiplier)
 
void Build (G4HadronElasticProcess *aP) override
 
void Build (G4HadronFissionProcess *aP) override
 
void Build (G4HadronCaptureProcess *aP) override
 
void Build (G4NeutronInelasticProcess *aP) override
 
void SetMinEnergy (G4double aM) override
 
void SetMaxEnergy (G4double aM) override
 

Private Attributes

G4CascadeInterface * theModel
 
G4double theXSMultiplier
 
G4double theMin
 
G4double theMax
 

Detailed Description

Definition at line 55 of file MyG4BiasedBertiniNeutronBuilder.hh.

Constructor & Destructor Documentation

MyG4BiasedBertiniNeutronBuilder::MyG4BiasedBertiniNeutronBuilder ( )

Definition at line 49 of file MyG4BiasedBertiniNeutronBuilder.cc.

References theMax, theMin, theModel, and theXSMultiplier.

50 {
51  theMin = 0;
52  theMax = 9.9 * GeV;
53  theXSMultiplier = 1.0; // -- no bias
54  theModel = new G4CascadeInterface;
55 }
MyG4BiasedBertiniNeutronBuilder::MyG4BiasedBertiniNeutronBuilder ( G4double  XSMultiplier)

Definition at line 57 of file MyG4BiasedBertiniNeutronBuilder.cc.

References theMax, theMin, theModel, and theXSMultiplier.

58 {
59  theMin = 0;
60  theMax = 9.9 * GeV;
61  G4cout << "(MyG4BiasedBertiniNeutronBuilder) theBertiniNeutronBuilder was passed XSMultiplier = "
62  << XSMultiplier << G4endl;
63  theXSMultiplier = XSMultiplier;
64  theModel = new G4CascadeInterface;
65 }

Member Function Documentation

void MyG4BiasedBertiniNeutronBuilder::Build ( G4HadronElasticProcess *  aP)
override

Definition at line 79 of file MyG4BiasedBertiniNeutronBuilder.cc.

80 {}
void MyG4BiasedBertiniNeutronBuilder::Build ( G4HadronFissionProcess *  aP)
override

Definition at line 83 of file MyG4BiasedBertiniNeutronBuilder.cc.

84 {}
void MyG4BiasedBertiniNeutronBuilder::Build ( G4HadronCaptureProcess *  aP)
override

Definition at line 87 of file MyG4BiasedBertiniNeutronBuilder.cc.

88 {}
void MyG4BiasedBertiniNeutronBuilder::Build ( G4NeutronInelasticProcess *  aP)
override

Definition at line 68 of file MyG4BiasedBertiniNeutronBuilder.cc.

References theMax, theMin, theModel, and theXSMultiplier.

69 {
70  theModel->SetMinEnergy(theMin);
71  theModel->SetMaxEnergy(theMax);
72  G4cout << "(MyG4BiasedBertiniNeutronBuilder) Multiplying the G4NeutronInelastic XS by : "
73  << theXSMultiplier << G4endl;
74  aP->MultiplyCrossSectionBy(theXSMultiplier);
75  aP->RegisterMe(theModel);
76 }
void MyG4BiasedBertiniNeutronBuilder::SetMaxEnergy ( G4double  aM)
inlineoverride

Definition at line 71 of file MyG4BiasedBertiniNeutronBuilder.hh.

References theMax.

void MyG4BiasedBertiniNeutronBuilder::SetMinEnergy ( G4double  aM)
inlineoverride

Definition at line 66 of file MyG4BiasedBertiniNeutronBuilder.hh.

References theMin.

Member Data Documentation

G4double MyG4BiasedBertiniNeutronBuilder::theMax
private
G4double MyG4BiasedBertiniNeutronBuilder::theMin
private
G4CascadeInterface* MyG4BiasedBertiniNeutronBuilder::theModel
private

Definition at line 77 of file MyG4BiasedBertiniNeutronBuilder.hh.

Referenced by Build(), and MyG4BiasedBertiniNeutronBuilder().

G4double MyG4BiasedBertiniNeutronBuilder::theXSMultiplier
private

Definition at line 78 of file MyG4BiasedBertiniNeutronBuilder.hh.

Referenced by Build(), and MyG4BiasedBertiniNeutronBuilder().


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