Geant4 11.2.2
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 52 of file G4ThermalNeutrons.cc.

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

◆ ~G4ThermalNeutrons()

G4ThermalNeutrons::~G4ThermalNeutrons ( )
virtual

Definition at line 57 of file G4ThermalNeutrons.cc.

57{}

Member Function Documentation

◆ ConstructProcess()

void G4ThermalNeutrons::ConstructProcess ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 59 of file G4ThermalNeutrons.cc.

59 {
60
62 G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
63 }
66 if(nullptr == hpel) {
67 G4cout << "### " << GetPhysicsName()
68 << " WARNING: Fail to add thermal neutron scattering" << G4endl;
69 return;
70 }
71
72 std::size_t ni = (hpel->GetHadronicInteractionList()).size();
73 if(ni < 1) {
74 G4cout << "### " << GetPhysicsName()
75 << " WARNING: Fail to add thermal neutron scattering - Nint= "
76 << ni << G4endl;
77 return;
78 }
79 (hpel->GetHadronicInteractionList())[ni-1]->SetMinEnergy(4*CLHEP::eV);
80
83
84}
#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: