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

#include <G4HadronElasticPhysicsHP.hh>

Inheritance diagram for G4HadronElasticPhysicsHP:
Collaboration 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 ()
 
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 47 of file G4HadronElasticPhysicsHP.hh.

Constructor & Destructor Documentation

G4HadronElasticPhysicsHP::G4HadronElasticPhysicsHP ( G4int  ver = 1)

Definition at line 59 of file G4HadronElasticPhysicsHP.cc.

60  : G4VPhysicsConstructor("hElasticWEL_CHIPS_HP"), verbose(ver)
61 {
62  if(verbose > 1) {
63  G4cout << "### G4HadronElasticPhysicsHP: " << GetPhysicsName()
64  << G4endl;
65  }
66  mainElasticBuilder = new G4HadronElasticPhysics(verbose);
67 }
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:

G4HadronElasticPhysicsHP::~G4HadronElasticPhysicsHP ( )
virtual

Definition at line 69 of file G4HadronElasticPhysicsHP.cc.

70 {
71  delete mainElasticBuilder;
72 }

Member Function Documentation

void G4HadronElasticPhysicsHP::ConstructParticle ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 74 of file G4HadronElasticPhysicsHP.cc.

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

Here is the call graph for this function:

void G4HadronElasticPhysicsHP::ConstructProcess ( )
virtual

Implements G4VPhysicsConstructor.

Definition at line 80 of file G4HadronElasticPhysicsHP.cc.

81 {
82  if(wasActivated) { return; }
83  wasActivated = true;
84  //Needed because this is a TLS object and this method is called by all threads
85  if ( ! mainElasticBuilder ) mainElasticBuilder = new G4HadronElasticPhysics(verbose);
86  mainElasticBuilder->ConstructProcess();
87 
88  mainElasticBuilder->GetNeutronModel()->SetMinEnergy(19.5*MeV);
89 
90  G4HadronicProcess* hel = mainElasticBuilder->GetNeutronProcess();
92  hel->RegisterMe(hp);
94 
95  if(verbose > 1) {
96  G4cout << "### HadronElasticPhysicsHP is constructed "
97  << G4endl;
98  }
99 }
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: