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

#include "MyG4NeutronPHPBuilder.hh"

Inheritance diagram for MyG4NeutronPHPBuilder:

Public Member Functions

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

Private Attributes

G4double theMin
 
G4double theIMin
 
G4double theMax
 
G4double theIMax
 
G4ParticleHPElastic * theHPElastic
 
G4ParticleHPElasticData * theHPElasticData
 
G4ParticleHPInelastic * theHPInelastic
 
G4ParticleHPInelasticData * theHPInelasticData
 
G4ParticleHPFission * theHPFission
 
G4ParticleHPFissionData * theHPFissionData
 
ArParticleHPCapturetheHPCapture
 
G4ParticleHPCaptureData * theHPCaptureData
 

Detailed Description

Definition at line 58 of file MyG4NeutronPHPBuilder.hh.

Constructor & Destructor Documentation

MyG4NeutronPHPBuilder::MyG4NeutronPHPBuilder ( )

Definition at line 43 of file MyG4NeutronPHPBuilder.cc.

References theHPCapture, theHPCaptureData, theHPElastic, theHPElasticData, theHPFission, theHPFissionData, theHPInelastic, theHPInelasticData, theIMax, theIMin, theMax, and theMin.

44 {
45  theHPElastic = 0;
46  theHPElasticData = 0;
47 
48  theHPFission = 0;
49  theHPFissionData = 0;
50 
51  theHPCapture = 0;
52  theHPCaptureData = 0;
53 
54  theHPInelastic = 0;
56 
57  theMin = 0;
58  theIMin = theMin;
59  theMax = 20 * MeV;
60  theIMax = theMax;
61 }
G4ParticleHPFission * theHPFission
G4ParticleHPCaptureData * theHPCaptureData
G4ParticleHPInelasticData * theHPInelasticData
G4ParticleHPFissionData * theHPFissionData
G4ParticleHPElasticData * theHPElasticData
G4ParticleHPInelastic * theHPInelastic
ArParticleHPCapture * theHPCapture
G4ParticleHPElastic * theHPElastic
virtual MyG4NeutronPHPBuilder::~MyG4NeutronPHPBuilder ( )
inlinevirtual

Definition at line 61 of file MyG4NeutronPHPBuilder.hh.

References Build().

61 {}

Member Function Documentation

void MyG4NeutronPHPBuilder::Build ( G4HadronElasticProcess *  aP)
finaloverride

Definition at line 64 of file MyG4NeutronPHPBuilder.cc.

References theHPElastic, theHPElasticData, theMax, and theMin.

Referenced by ~MyG4NeutronPHPBuilder().

65 {
66  if (theHPElastic == 0)
67  theHPElastic = new G4ParticleHPElastic;
68  theHPElastic->SetMinEnergy(theMin);
69  theHPElastic->SetMaxEnergy(theMax);
70  if (theHPElasticData == 0)
71  theHPElasticData = new G4ParticleHPElasticData;
72  aP->AddDataSet(theHPElasticData);
73  aP->RegisterMe(theHPElastic);
74 }
G4ParticleHPElasticData * theHPElasticData
G4ParticleHPElastic * theHPElastic
void MyG4NeutronPHPBuilder::Build ( G4HadronFissionProcess *  aP)
finaloverride

Definition at line 77 of file MyG4NeutronPHPBuilder.cc.

References theHPFission, theHPFissionData, theMax, and theMin.

78 {
79  if (theHPFission == 0)
80  theHPFission = new G4ParticleHPFission;
81  theHPFission->SetMinEnergy(theMin);
82  theHPFission->SetMaxEnergy(theMax);
83  if (theHPFissionData == 0)
84  theHPFissionData = new G4ParticleHPFissionData;
85  aP->AddDataSet(theHPFissionData);
86  aP->RegisterMe(theHPFission);
87 }
G4ParticleHPFission * theHPFission
G4ParticleHPFissionData * theHPFissionData
void MyG4NeutronPHPBuilder::Build ( G4HadronCaptureProcess *  aP)
finaloverride

Definition at line 90 of file MyG4NeutronPHPBuilder.cc.

References theHPCapture, theHPCaptureData, theMax, and theMin.

91 {
92  if (theHPCapture == 0)
94  theHPCapture->SetMinEnergy(theMin);
95  theHPCapture->SetMaxEnergy(theMax);
96  if (theHPCaptureData == 0)
97  theHPCaptureData = new G4ParticleHPCaptureData;
98  aP->AddDataSet(theHPCaptureData);
99  aP->RegisterMe(theHPCapture);
100 }
G4ParticleHPCaptureData * theHPCaptureData
ArParticleHPCapture * theHPCapture
void MyG4NeutronPHPBuilder::Build ( G4NeutronInelasticProcess *  aP)
finaloverride

Definition at line 103 of file MyG4NeutronPHPBuilder.cc.

References theHPInelastic, theHPInelasticData, theIMax, and theIMin.

104 {
105  if (theHPInelastic == 0)
106  theHPInelastic = new G4ParticleHPInelastic(G4Neutron::Neutron(), "NeutronHPInelastic");
107  theHPInelastic->SetMinEnergy(theIMin);
108  theHPInelastic->SetMaxEnergy(theIMax);
109  if (theHPInelasticData == 0)
110  theHPInelasticData = new G4ParticleHPInelasticData(G4Neutron::Neutron());
111  aP->AddDataSet(theHPInelasticData);
112  aP->RegisterMe(theHPInelastic);
113 }
G4ParticleHPInelasticData * theHPInelasticData
G4ParticleHPInelastic * theHPInelastic
virtual void MyG4NeutronPHPBuilder::SetMaxEnergy ( G4double  aM)
inlinefinaloverridevirtual

Definition at line 81 of file MyG4NeutronPHPBuilder.hh.

References theIMax, and theMax.

82  {
83  theIMax = aM;
84  theMax = aM;
85  }
void MyG4NeutronPHPBuilder::SetMaxInelasticEnergy ( G4double  aM)
inline

Definition at line 87 of file MyG4NeutronPHPBuilder.hh.

References theIMax.

88  {
89  theIMax = aM;
90  }
virtual void MyG4NeutronPHPBuilder::SetMinEnergy ( G4double  aM)
inlinefinaloverridevirtual

Definition at line 70 of file MyG4NeutronPHPBuilder.hh.

References theIMin, and theMin.

71  {
72  theMin = aM;
73  theIMin = theMin;
74  }
void MyG4NeutronPHPBuilder::SetMinInelasticEnergy ( G4double  aM)
inline

Definition at line 76 of file MyG4NeutronPHPBuilder.hh.

References theIMin.

77  {
78  theIMin = aM;
79  }

Member Data Documentation

ArParticleHPCapture* MyG4NeutronPHPBuilder::theHPCapture
private

Definition at line 106 of file MyG4NeutronPHPBuilder.hh.

Referenced by Build(), and MyG4NeutronPHPBuilder().

G4ParticleHPCaptureData* MyG4NeutronPHPBuilder::theHPCaptureData
private

Definition at line 107 of file MyG4NeutronPHPBuilder.hh.

Referenced by Build(), and MyG4NeutronPHPBuilder().

G4ParticleHPElastic* MyG4NeutronPHPBuilder::theHPElastic
private

Definition at line 100 of file MyG4NeutronPHPBuilder.hh.

Referenced by Build(), and MyG4NeutronPHPBuilder().

G4ParticleHPElasticData* MyG4NeutronPHPBuilder::theHPElasticData
private

Definition at line 101 of file MyG4NeutronPHPBuilder.hh.

Referenced by Build(), and MyG4NeutronPHPBuilder().

G4ParticleHPFission* MyG4NeutronPHPBuilder::theHPFission
private

Definition at line 104 of file MyG4NeutronPHPBuilder.hh.

Referenced by Build(), and MyG4NeutronPHPBuilder().

G4ParticleHPFissionData* MyG4NeutronPHPBuilder::theHPFissionData
private

Definition at line 105 of file MyG4NeutronPHPBuilder.hh.

Referenced by Build(), and MyG4NeutronPHPBuilder().

G4ParticleHPInelastic* MyG4NeutronPHPBuilder::theHPInelastic
private

Definition at line 102 of file MyG4NeutronPHPBuilder.hh.

Referenced by Build(), and MyG4NeutronPHPBuilder().

G4ParticleHPInelasticData* MyG4NeutronPHPBuilder::theHPInelasticData
private

Definition at line 103 of file MyG4NeutronPHPBuilder.hh.

Referenced by Build(), and MyG4NeutronPHPBuilder().

G4double MyG4NeutronPHPBuilder::theIMax
private
G4double MyG4NeutronPHPBuilder::theIMin
private
G4double MyG4NeutronPHPBuilder::theMax
private

Definition at line 97 of file MyG4NeutronPHPBuilder.hh.

Referenced by Build(), MyG4NeutronPHPBuilder(), and SetMaxEnergy().

G4double MyG4NeutronPHPBuilder::theMin
private

Definition at line 95 of file MyG4NeutronPHPBuilder.hh.

Referenced by Build(), MyG4NeutronPHPBuilder(), and SetMinEnergy().


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