Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4HadronElasticPhysicsLEND Class Reference

#include <G4HadronElasticPhysicsLEND.hh>

Inheritance diagram for G4HadronElasticPhysicsLEND:
Collaboration diagram for G4HadronElasticPhysicsLEND:

Public Member Functions

 G4HadronElasticPhysicsLEND (G4int ver=1, G4String evaluation="")
 
virtual ~G4HadronElasticPhysicsLEND ()
 
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 G4HadronElasticPhysicsLEND.hh.

Constructor & Destructor Documentation

G4HadronElasticPhysicsLEND::G4HadronElasticPhysicsLEND ( G4int  ver = 1,
G4String  evaluation = "" 
)

Definition at line 61 of file G4HadronElasticPhysicsLEND.cc.

62  : G4VPhysicsConstructor("hElasticWEL_CHIPS_LEND"), verbose(ver),
63  evaluation(eva)
64 {
65  if(verbose > 1) {
66  G4cout << "### G4HadronElasticPhysicsLEND: " << GetPhysicsName()
67  << G4endl;
68  }
69  mainElasticBuilder = new G4HadronElasticPhysics(verbose);
70 }
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:

G4HadronElasticPhysicsLEND::~G4HadronElasticPhysicsLEND ( )
virtual

Definition at line 72 of file G4HadronElasticPhysicsLEND.cc.

73 {
74  delete mainElasticBuilder;
75 }

Member Function Documentation

void G4HadronElasticPhysicsLEND::ConstructParticle ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 77 of file G4HadronElasticPhysicsLEND.cc.

78 {
79  // G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl;
80  mainElasticBuilder->ConstructParticle();
81 }

Here is the call graph for this function:

void G4HadronElasticPhysicsLEND::ConstructProcess ( void  )
virtual

Implements G4VPhysicsConstructor.

Definition at line 83 of file G4HadronElasticPhysicsLEND.cc.

84 {
85  if(wasActivated) return;
86  wasActivated = true;
87  //Needed because this is a TLS object and this method is called by all threads
88  if ( ! mainElasticBuilder ) mainElasticBuilder = new G4HadronElasticPhysics(verbose);
89  mainElasticBuilder->ConstructProcess();
90 
91  mainElasticBuilder->GetNeutronModel()->SetMinEnergy(19.5*MeV);
92 
93  G4HadronicProcess* hel = mainElasticBuilder->GetNeutronProcess();
94 
96  if ( evaluation.size() > 0 ) lend->ChangeDefaultEvaluation( evaluation );
97  //lend->AllowNaturalAbundanceTarget();
99  hel->RegisterMe(lend);
101  if ( evaluation.size() > 0 ) lend_XS->ChangeDefaultEvaluation( evaluation );
102  //lend_XS->AllowNaturalAbundanceTarget();
103  lend_XS->AllowAnyCandidateTarget();
104  hel->AddDataSet( lend_XS );
105 
106  if(verbose > 1) {
107  G4cout << "### HadronElasticPhysicsLEND is constructed"
108  << G4endl;
109  }
110 }
G4HadronElastic * GetNeutronModel()
void AllowAnyCandidateTarget()
Definition: G4LENDModel.hh:64
G4HadronicProcess * GetNeutronProcess()
void RegisterMe(G4HadronicInteraction *a)
void SetMinEnergy(G4double anEnergy)
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
G4GLOB_DLL std::ostream G4cout
void ChangeDefaultEvaluation(G4String name)
Definition: G4LENDModel.hh:62
static G4Neutron * Neutron()
Definition: G4Neutron.cc:104
#define G4endl
Definition: G4ios.hh:61
static constexpr double MeV
Definition: G4SIunits.hh:214
void ChangeDefaultEvaluation(G4String name_tmp)

Here is the call graph for this function:


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