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

#include <G4HadronElasticPhysicsHP.hh>

+ Inheritance diagram for G4HadronElasticPhysicsHP:

Public Member Functions

 G4HadronElasticPhysicsHP (G4int ver=1)
 
virtual ~G4HadronElasticPhysicsHP ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
- 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
 

Additional Inherited Members

- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
- Protected Attributes inherited from G4VPhysicsConstructor
G4int verboseLevel
 
G4String namePhysics
 
G4int typePhysics
 
G4ParticleTabletheParticleTable
 
G4ParticleTable::G4PTblDicIteratortheParticleIterator
 
G4PhysicsListHelperthePLHelper
 

Detailed Description

Definition at line 47 of file G4HadronElasticPhysicsHP.hh.

Constructor & Destructor Documentation

◆ G4HadronElasticPhysicsHP()

G4HadronElasticPhysicsHP::G4HadronElasticPhysicsHP ( G4int  ver = 1)

Definition at line 56 of file G4HadronElasticPhysicsHP.cc.

57 : G4VPhysicsConstructor("hElasticWEL_CHIPS_HP"), verbose(ver),
58 wasActivated(false)
59{
60 if(verbose > 1) {
61 G4cout << "### G4HadronElasticPhysicsHP: " << GetPhysicsName()
62 << G4endl;
63 }
64 mainElasticBuilder = new G4HadronElasticPhysics(verbose);
65}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
const G4String & GetPhysicsName() const

◆ ~G4HadronElasticPhysicsHP()

G4HadronElasticPhysicsHP::~G4HadronElasticPhysicsHP ( )
virtual

Definition at line 67 of file G4HadronElasticPhysicsHP.cc.

68{
69 delete mainElasticBuilder;
70}

Member Function Documentation

◆ ConstructParticle()

void G4HadronElasticPhysicsHP::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 72 of file G4HadronElasticPhysicsHP.cc.

73{
74 // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl;
75 mainElasticBuilder->ConstructParticle();
76}

◆ ConstructProcess()

void G4HadronElasticPhysicsHP::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 78 of file G4HadronElasticPhysicsHP.cc.

79{
80 if(wasActivated) { return; }
81 wasActivated = true;
82
83 mainElasticBuilder->ConstructProcess();
84
85 mainElasticBuilder->GetNeutronModel()->SetMinEnergy(19.5*MeV);
86
87 G4HadronicProcess* hel = mainElasticBuilder->GetNeutronProcess();
89 hel->RegisterMe(hp);
91
92 if(verbose > 1) {
93 G4cout << "### HadronElasticPhysicsHP is constructed "
94 << G4endl;
95 }
96}
G4HadronicProcess * GetNeutronProcess()
G4HadronElastic * GetNeutronModel()
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
void RegisterMe(G4HadronicInteraction *a)

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