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

#include <G4HadronElasticPhysicsPHP.hh>

+ Inheritance diagram for G4HadronElasticPhysicsPHP:

Public Member Functions

 G4HadronElasticPhysicsPHP (G4int ver=1)
 
 ~G4HadronElasticPhysicsPHP () override=default
 
void ConstructProcess () final
 
 G4HadronElasticPhysicsPHP (const G4HadronElasticPhysicsPHP &)=delete
 
G4HadronElasticPhysicsPHPoperator= (const G4HadronElasticPhysicsPHP &)=delete
 
- Public Member Functions inherited from G4HadronElasticPhysics
 G4HadronElasticPhysics (G4int ver=1, const G4String &nam="hElasticWEL_CHIPS_XS")
 
 ~G4HadronElasticPhysics () override=default
 
void ConstructParticle () override
 
G4HadronicProcessGetElasticProcess (const G4ParticleDefinition *part) const
 
G4HadronElasticGetElasticModel (const G4ParticleDefinition *part) const
 
G4HadronicProcessGetNeutronProcess () const
 
G4HadronElasticGetNeutronModel () const
 
void AddXSection (const G4ParticleDefinition *, G4VCrossSectionDataSet *) const
 
 G4HadronElasticPhysics (G4HadronElasticPhysics &)=delete
 
G4HadronElasticPhysicsoperator= (const G4HadronElasticPhysics &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 43 of file G4HadronElasticPhysicsPHP.hh.

Constructor & Destructor Documentation

◆ G4HadronElasticPhysicsPHP() [1/2]

G4HadronElasticPhysicsPHP::G4HadronElasticPhysicsPHP ( G4int ver = 1)
explicit

Definition at line 56 of file G4HadronElasticPhysicsPHP.cc.

57 : G4HadronElasticPhysics(ver, "hElasticPhysics_PHP")
58{
59 if(ver > 1) {
60 G4cout << "### G4HadronElasticPhysicsPHP: " << GetPhysicsName()
61 << G4endl;
62 }
63 auto param = G4HadronicParameters::Instance();
64 // HP is inconsistent with the neutron general process
65 param->SetEnableNeutronGeneralProcess(false);
66}
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout
G4HadronElasticPhysics(G4int ver=1, const G4String &nam="hElasticWEL_CHIPS_XS")
static G4HadronicParameters * Instance()
const G4String & GetPhysicsName() const

◆ ~G4HadronElasticPhysicsPHP()

G4HadronElasticPhysicsPHP::~G4HadronElasticPhysicsPHP ( )
overridedefault

◆ G4HadronElasticPhysicsPHP() [2/2]

G4HadronElasticPhysicsPHP::G4HadronElasticPhysicsPHP ( const G4HadronElasticPhysicsPHP & )
delete

Member Function Documentation

◆ ConstructProcess()

void G4HadronElasticPhysicsPHP::ConstructProcess ( )
finalvirtual

Reimplemented from G4HadronElasticPhysics.

Definition at line 68 of file G4HadronElasticPhysicsPHP.cc.

69{
71
74 if ( nullptr == hel ) {
75 hel = new G4HadronicProcess();
76 neutron->GetProcessManager()->AddDiscreteProcess(hel);
77 } else {
78 G4HadronElastic* he = GetElasticModel(neutron);
79 he->SetMinEnergy(19.5*CLHEP::MeV);
80 }
81 // apply alternative cross section
83
84 // add HP elastic
85 auto he = new G4ParticleHPElastic();
86 he->SetMaxEnergy(20*CLHEP::MeV);
87 hel->RegisterMe( he );
88
90 G4cout << "### HadronElasticPhysicsPHP is constructed "
91 << G4endl;
92 }
93}
G4HadronElastic * GetElasticModel(const G4ParticleDefinition *part) const
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)
static G4Neutron * Neutron()
Definition G4Neutron.cc:101
static G4HadronicProcess * FindElasticProcess(const G4ParticleDefinition *)

◆ operator=()

G4HadronElasticPhysicsPHP & G4HadronElasticPhysicsPHP::operator= ( const G4HadronElasticPhysicsPHP & )
delete

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