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

#include <G4HadronPhysicsLEND.hh>

Inheritance diagram for G4HadronPhysicsLEND:

Public Member Functions

 G4HadronPhysicsLEND (G4int verbose=1, const G4String &eval="")
 ~G4HadronPhysicsLEND () override=default
void ConstructProcess () override
void ConstructParticle () override
 G4HadronPhysicsLEND (G4HadronPhysicsLEND &)=delete
G4HadronPhysicsLENDoperator= (const G4HadronPhysicsLEND &right)=delete
Public Member Functions inherited from G4VPhysicsConstructor
 G4VPhysicsConstructor (const G4String &="")
 G4VPhysicsConstructor (const G4String &name, G4int physics_type)
virtual ~G4VPhysicsConstructor ()
void SetPhysicsName (const G4String &="")
const G4StringGetPhysicsName () const
void SetPhysicsType (G4int)
G4int GetPhysicsType () const
G4int GetInstanceID () const
virtual void TerminateWorker ()
void SetVerboseLevel (G4int value)
G4int GetVerboseLevel () const

Additional Inherited Members

Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
Protected Types inherited from G4VPhysicsConstructor
using PhysicsBuilder_V = G4VPCData::PhysicsBuilders_V
Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
PhysicsBuilder_V GetBuilders () const
void AddBuilder (G4PhysicsBuilderInterface *bld)
Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel = 0
G4String namePhysics = ""
G4int typePhysics = 0
G4ParticleTabletheParticleTable = nullptr
G4int g4vpcInstanceID = 0
Static Protected Attributes inherited from G4VPhysicsConstructor
static G4RUN_DLL G4VPCManager subInstanceManager

Detailed Description

Definition at line 44 of file G4HadronPhysicsLEND.hh.

Constructor & Destructor Documentation

◆ G4HadronPhysicsLEND() [1/2]

G4HadronPhysicsLEND::G4HadronPhysicsLEND ( G4int verbose = 1,
const G4String & eval = "" )

Definition at line 56 of file G4HadronPhysicsLEND.cc.

57 : G4VPhysicsConstructor("hadron inelastic LEND")
58{
59 verbose = verb;
60 evaluation = eva;
61}
G4VPhysicsConstructor(const G4String &="")

Referenced by G4HadronPhysicsLEND(), and operator=().

◆ ~G4HadronPhysicsLEND()

G4HadronPhysicsLEND::~G4HadronPhysicsLEND ( )
overridedefault

◆ G4HadronPhysicsLEND() [2/2]

G4HadronPhysicsLEND::G4HadronPhysicsLEND ( G4HadronPhysicsLEND & )
delete

Member Function Documentation

◆ ConstructParticle()

void G4HadronPhysicsLEND::ConstructParticle ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 126 of file G4HadronPhysicsLEND.cc.

127{
130}
static G4Gamma * Gamma()
Definition G4Gamma.cc:81
static G4Neutron * Neutron()
Definition G4Neutron.cc:101

◆ ConstructProcess()

void G4HadronPhysicsLEND::ConstructProcess ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 63 of file G4HadronPhysicsLEND.cc.

64{
65 //....neutron-induced reactions
66
67 //....create neutron processes if they do not exist
69 auto neutron_processes = new G4NeutronBuilder( true ); // Fission on
70 AddBuilder(neutron_processes);
71 neutron_processes->Build();
72 }
73
74 //....get pointers to neutron processes so can add LEND model
75 auto* neutron_inelastic = (G4HadronInelasticProcess*)G4PhysListUtil::FindInelasticProcess( G4Neutron::Neutron() );
76 auto* neutron_capture = (G4NeutronCaptureProcess*)G4PhysListUtil::FindCaptureProcess( G4Neutron::Neutron() );
77 auto* neutron_fission = (G4NeutronFissionProcess*)G4PhysListUtil::FindFissionProcess( G4Neutron::Neutron() );
78
79 auto* neutronLENDBuilder = new G4NeutronLENDBuilder(evaluation);
80 neutronLENDBuilder->Build(neutron_inelastic);
81 neutronLENDBuilder->Build(neutron_capture);
82 neutronLENDBuilder->Build(neutron_fission);
83
84 //....photon-induced reactions
85
86 //....use gamma hadronic process if it exists
87 // check Inelastic process using G4PhysListUtil
88 // then check for GammaNuclear in G4GammaGeneralProcess
89 auto* gamma_inelastic = (G4HadronInelasticProcess*)G4PhysListUtil::FindInelasticProcess( G4Gamma::Gamma() );
90
91 if( gamma_inelastic == nullptr){
92 G4LossTableManager* emManager = G4LossTableManager::Instance();
93 auto gproc = dynamic_cast<G4GammaGeneralProcess*>(emManager->GetGammaGeneralProcess());
94 if (gproc != nullptr) {
95 G4HadronicProcess* gnuc = gproc->GetGammaNuclear();
96 if (gnuc != nullptr )
97 gamma_inelastic = (G4HadronInelasticProcess*)gnuc;
98 }
99 }
100 //....did not find existing process, so create photonuclear process
101 if( gamma_inelastic == nullptr){
102 //std::cout << "DMW: HadPhysLEND = gamma inelastic pointer not found\n";
103 gamma_inelastic = new G4HadronInelasticProcess( "photonNuclear", G4Gamma::Gamma() );
104 G4PhysicsListHelper* plHelper = G4PhysicsListHelper::GetPhysicsListHelper();
105 plHelper->RegisterProcess(gamma_inelastic, G4Gamma::Gamma());
106
107 //....need these XS or LENDonly crashes
109 G4VCrossSectionDataSet* xs = nullptr;
110 xs = xsreg->GetCrossSectionDataSet("GammaNuclearXS");
111 if(nullptr == xs) xs = new G4GammaNuclearXS();
112 gamma_inelastic->AddDataSet(xs);
113 }
114
115 //....add LEND photonuclear models
116 //auto* theGammaReactionLowE = new G4LENDorBERTModel( G4Gamma::Gamma() );
117 auto* theGammaReactionLowE = new G4LENDCombinedModel( G4Gamma::Gamma() ); // use combined LEND models
118 theGammaReactionLowE->SetMaxEnergy(maxLEND_Energy);
119 theGammaReactionLowE->DumpLENDTargetInfo(true);
120 gamma_inelastic->RegisterMe(theGammaReactionLowE);
121
122 G4LENDCombinedCrossSection* theGammaCrossSectionLowE = new G4LENDCombinedCrossSection( G4Gamma::Gamma() );
123 gamma_inelastic->AddDataSet(theGammaCrossSectionLowE);
124}
const G4double maxLEND_Energy
static G4CrossSectionDataSetRegistry * Instance()
static G4LossTableManager * Instance()
G4VEmProcess * GetGammaGeneralProcess()
static G4HadronicProcess * FindInelasticProcess(const G4ParticleDefinition *)
static G4HadronicProcess * FindCaptureProcess(const G4ParticleDefinition *)
static G4HadronicProcess * FindFissionProcess(const G4ParticleDefinition *)
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4PhysicsListHelper * GetPhysicsListHelper()
void AddBuilder(G4PhysicsBuilderInterface *bld)

◆ operator=()

G4HadronPhysicsLEND & G4HadronPhysicsLEND::operator= ( const G4HadronPhysicsLEND & right)
delete

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