Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4HadronElasticPhysicsPHP Class Reference

#include <G4HadronElasticPhysicsPHP.hh>

Inheritance diagram for G4HadronElasticPhysicsPHP:
Collaboration diagram for G4HadronElasticPhysicsPHP:

Public Member Functions

 G4HadronElasticPhysicsPHP (G4int ver=1)
 
virtual ~G4HadronElasticPhysicsPHP ()
 
virtual void ConstructParticle ()
 
virtual void ConstructProcess ()
 
- 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
 
void SetVerboseLevel (G4int value)
 
G4int GetVerboseLevel () const
 
G4int GetInstanceID () const
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VPhysicsConstructor
static const G4VPCManagerGetSubInstanceManager ()
 
- Protected Member Functions inherited from G4VPhysicsConstructor
G4bool RegisterProcess (G4VProcess *process, G4ParticleDefinition *particle)
 
G4ParticleTable::G4PTblDicIteratorGetParticleIterator () const
 
- 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 G4HadronElasticPhysicsPHP.hh.

Constructor & Destructor Documentation

G4HadronElasticPhysicsPHP::G4HadronElasticPhysicsPHP ( G4int  ver = 1)

Definition at line 53 of file G4HadronElasticPhysicsPHP.cc.

54  : G4VPhysicsConstructor("hElasticPhysics_PHP"), verbose(ver)
55 {
56  if(verbose > 1) {
57  G4cout << "### G4HadronElasticPhysicsPHP: " << GetPhysicsName()
58  << G4endl;
59  }
60  mainElasticBuilder = new G4HadronElasticPhysics(verbose);
61 }
G4GLOB_DLL std::ostream G4cout
const G4String & GetPhysicsName() const
G4VPhysicsConstructor(const G4String &="")
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

G4HadronElasticPhysicsPHP::~G4HadronElasticPhysicsPHP ( )
virtual

Definition at line 63 of file G4HadronElasticPhysicsPHP.cc.

64 {
65  delete mainElasticBuilder; mainElasticBuilder = 0;
66 }

Member Function Documentation

void G4HadronElasticPhysicsPHP::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 68 of file G4HadronElasticPhysicsPHP.cc.

69 {
70  // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl;
71  mainElasticBuilder->ConstructParticle();
72 }

Here is the call graph for this function:

void G4HadronElasticPhysicsPHP::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 74 of file G4HadronElasticPhysicsPHP.cc.

75 {
76  if(wasActivated) { return; }
77  wasActivated = true;
78  //Needed because this is a TLS object and this method is called by all threads
79  if ( ! mainElasticBuilder ) mainElasticBuilder = new G4HadronElasticPhysics(verbose);
80  mainElasticBuilder->ConstructProcess();
81 
82  mainElasticBuilder->GetNeutronModel()->SetMinEnergy(19.5*MeV);
83 
84  G4HadronicProcess* hel = mainElasticBuilder->GetNeutronProcess();
86  hel->RegisterMe(hp);
88 
89  if(verbose > 1) {
90  G4cout << "### HadronElasticPhysicsHP is constructed "
91  << G4endl;
92  }
93 }
G4HadronElastic * GetNeutronModel()
G4HadronicProcess * GetNeutronProcess()
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214

Here is the call graph for this function:


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