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

#include <G4ThermalNeutrons.hh>

Inheritance diagram for G4ThermalNeutrons:

Public Member Functions

 G4ThermalNeutrons (G4int ver=1)
virtual ~G4ThermalNeutrons ()
void ConstructProcess () override
Public Member Functions inherited from G4VHadronPhysics
 G4VHadronPhysics (const G4String &name="hInelastic", G4int verbose=0)
virtual ~G4VHadronPhysics ()
void ConstructParticle () override
G4HadronicInteractionBuildModel (G4VHadronModelBuilder *, G4double emin, G4double emax)
G4HadronicInteractionNewModel (G4HadronicInteraction *, G4double emin, G4double emax)
 G4VHadronPhysics (G4VHadronPhysics &)=delete
G4VHadronPhysicsoperator= (const G4VHadronPhysics &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 45 of file G4ThermalNeutrons.hh.

Constructor & Destructor Documentation

◆ G4ThermalNeutrons()

G4ThermalNeutrons::G4ThermalNeutrons ( G4int ver = 1)
explicit

Definition at line 55 of file G4ThermalNeutrons.cc.

55 :
56 G4VHadronPhysics("ThermalNeutrons", ver) {
57 // because it is an addition, the type of this constructor is 0
58}
G4VHadronPhysics(const G4String &name="hInelastic", G4int verbose=0)

◆ ~G4ThermalNeutrons()

G4ThermalNeutrons::~G4ThermalNeutrons ( )
virtual

Definition at line 60 of file G4ThermalNeutrons.cc.

60{}

Member Function Documentation

◆ ConstructProcess()

void G4ThermalNeutrons::ConstructProcess ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 62 of file G4ThermalNeutrons.cc.

62 {
63
65 G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
66 }
67 G4Neutron* part = G4Neutron::Neutron();
68 G4HadronicProcess* hpel = G4PhysListUtil::FindElasticProcess(part);
69 if(nullptr == hpel) {
70 G4cout << "### " << GetPhysicsName()
71 << " WARNING: Fail to add thermal neutron scattering" << G4endl;
72 return;
73 }
74
75 std::size_t ni = (hpel->GetHadronicInteractionList()).size();
76 if(ni < 1) {
77 G4cout << "### " << GetPhysicsName()
78 << " WARNING: Fail to add thermal neutron scattering - Nint= "
79 << ni << G4endl;
80 return;
81 }
82 (hpel->GetHadronicInteractionList())[ni-1]->SetMinEnergy(4*CLHEP::eV);
83
84 hpel->RegisterMe(new G4ParticleHPThermalScattering());
85 hpel->AddDataSet(new G4ParticleHPThermalScatteringData());
86
87}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
static G4HadronicParameters * Instance()
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
std::vector< G4HadronicInteraction * > & GetHadronicInteractionList()
void RegisterMe(G4HadronicInteraction *a)
static G4Neutron * Neutron()
Definition G4Neutron.cc:101
static G4HadronicProcess * FindElasticProcess(const G4ParticleDefinition *)
const G4String & GetPhysicsName() const

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