Geant4 10.7.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)
 
 ~G4VHadronPhysics () override
 
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 ()
 
virtual void ConstructParticle ()=0
 
virtual void ConstructProcess ()=0
 
void SetPhysicsName (const G4String &="")
 
const G4StringGetPhysicsName () const
 
void SetPhysicsType (G4int)
 
G4int GetPhysicsType () const
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
G4int GetInstanceID () const
 
virtual void TerminateWorker ()
 

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
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4int g4vpcInstanceID
 
- 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 51 of file G4ThermalNeutrons.cc.

51 :
52 G4VHadronPhysics("G4ThermalNeutrons"), verbose(ver) {
53}

◆ ~G4ThermalNeutrons()

G4ThermalNeutrons::~G4ThermalNeutrons ( )
virtual

Definition at line 55 of file G4ThermalNeutrons.cc.

55{}

Member Function Documentation

◆ ConstructProcess()

void G4ThermalNeutrons::ConstructProcess ( )
overridevirtual

Implements G4VPhysicsConstructor.

Definition at line 57 of file G4ThermalNeutrons.cc.

57 {
58
59 if(verbose > 0) {
60 G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
61 }
64 if(!hpel) {
65 G4cout << "### " << GetPhysicsName()
66 << " WARNING: Fail to add thermal neutron scattering" << G4endl;
67 return;
68 }
69
70 G4int ni = (hpel->GetHadronicInteractionList()).size();
71 if(ni < 1) {
72 G4cout << "### " << GetPhysicsName()
73 << " WARNING: Fail to add thermal neutron scattering - Nint= "
74 << ni << G4endl;
75 return;
76 }
77 (hpel->GetHadronicInteractionList())[ni-1]->SetMinEnergy(4*CLHEP::eV);
78
81
82}
int G4int
Definition: G4Types.hh:85
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
std::vector< G4HadronicInteraction * > & GetHadronicInteractionList()
void RegisterMe(G4HadronicInteraction *a)
static G4Neutron * Neutron()
Definition: G4Neutron.cc:103
static G4HadronicProcess * FindElasticProcess(const G4ParticleDefinition *)
const G4String & GetPhysicsName() const

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