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

#include <G4NeutronHPorLElasticModel.hh>

+ Inheritance diagram for G4NeutronHPorLElasticModel:

Public Member Functions

 G4NeutronHPorLElasticModel ()
 
 ~G4NeutronHPorLElasticModel ()
 
G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
 
G4VCrossSectionDataSetGiveHPXSectionDataSet ()
 
- Public Member Functions inherited from G4HadronicInteraction
 G4HadronicInteraction (const G4String &modelName="HadronicModel")
 
virtual ~G4HadronicInteraction ()
 
virtual G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)=0
 
virtual G4double SampleInvariantT (const G4ParticleDefinition *p, G4double plab, G4int Z, G4int A)
 
virtual G4bool IsApplicable (const G4HadProjectile &, G4Nucleus &)
 
G4double GetMinEnergy () const
 
G4double GetMinEnergy (const G4Material *aMaterial, const G4Element *anElement) const
 
void SetMinEnergy (G4double anEnergy)
 
void SetMinEnergy (G4double anEnergy, const G4Element *anElement)
 
void SetMinEnergy (G4double anEnergy, const G4Material *aMaterial)
 
G4double GetMaxEnergy () const
 
G4double GetMaxEnergy (const G4Material *aMaterial, const G4Element *anElement) const
 
void SetMaxEnergy (const G4double anEnergy)
 
void SetMaxEnergy (G4double anEnergy, const G4Element *anElement)
 
void SetMaxEnergy (G4double anEnergy, const G4Material *aMaterial)
 
const G4HadronicInteractionGetMyPointer () const
 
G4int GetVerboseLevel () const
 
void SetVerboseLevel (G4int value)
 
const G4StringGetModelName () const
 
void DeActivateFor (const G4Material *aMaterial)
 
void ActivateFor (const G4Material *aMaterial)
 
void DeActivateFor (const G4Element *anElement)
 
void ActivateFor (const G4Element *anElement)
 
G4bool IsBlocked (const G4Material *aMaterial) const
 
G4bool IsBlocked (const G4Element *anElement) const
 
void SetRecoilEnergyThreshold (G4double val)
 
G4double GetRecoilEnergyThreshold () const
 
G4bool operator== (const G4HadronicInteraction &right) const
 
G4bool operator!= (const G4HadronicInteraction &right) const
 
virtual const std::pair< G4double, G4doubleGetFatalEnergyCheckLevels () const
 
virtual std::pair< G4double, G4doubleGetEnergyMomentumCheckLevels () const
 
void SetEnergyMomentumCheckLevels (G4double relativeLevel, G4double absoluteLevel)
 
virtual void ModelDescription (std::ostream &outFile) const
 

Additional Inherited Members

- Protected Member Functions inherited from G4HadronicInteraction
void SetModelName (const G4String &nam)
 
G4bool IsBlocked () const
 
void Block ()
 
- Protected Attributes inherited from G4HadronicInteraction
G4HadFinalState theParticleChange
 
G4int verboseLevel
 
G4double theMinEnergy
 
G4double theMaxEnergy
 
G4bool isBlocked
 

Detailed Description

Definition at line 42 of file G4NeutronHPorLElasticModel.hh.

Constructor & Destructor Documentation

◆ G4NeutronHPorLElasticModel()

G4NeutronHPorLElasticModel::G4NeutronHPorLElasticModel ( )

Definition at line 38 of file G4NeutronHPorLElasticModel.cc.

39{
40 //theHPElastic = new G4NeutronHPElastic();
41 theHPElastic = new G4NeutronHPorLElastic();
42 theLElastic = new G4LElastic();
43 theHPNames = new G4NeutronHPNames();
44}

◆ ~G4NeutronHPorLElasticModel()

G4NeutronHPorLElasticModel::~G4NeutronHPorLElasticModel ( )

Definition at line 45 of file G4NeutronHPorLElasticModel.cc.

46{
47 delete theHPElastic;
48 delete theLElastic;
49 delete theHPNames;
50}

Member Function Documentation

◆ ApplyYourself()

G4HadFinalState * G4NeutronHPorLElasticModel::ApplyYourself ( const G4HadProjectile aTrack,
G4Nucleus aTargetNucleus 
)
virtual

Implements G4HadronicInteraction.

Definition at line 52 of file G4NeutronHPorLElasticModel.cc.

53{
54 if ( aTrack.GetKineticEnergy() > 20*MeV )
55 {
56 //G4cout << "Select LE model " << G4endl;
57 return theLElastic->ApplyYourself( aTrack , aTargetNucleus );
58 }
59
60 //G4int Z = (G4int)(aTargetNucleus.GetZ()+0.5);
61 //migrate to integer A and Z
62 G4int Z = aTargetNucleus.GetZ_asInt();
63 G4String theNameOfElement = theHPNames->GetName( Z-1 ); // GetName(0) reply "Hydrogen"
64
65 if ( theHPElastic->IsThisElementOK( theNameOfElement ) )
66 {
67 //G4cout << "Select HP model " << G4endl;
68 return theHPElastic->ApplyYourself( aTrack , aTargetNucleus );
69 }
70 else
71 {
72 //G4cout << "Select LE model " << G4endl;
73 return theLElastic->ApplyYourself( aTrack , aTargetNucleus );
74 }
75}
int G4int
Definition: G4Types.hh:66
G4double GetKineticEnergy() const
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
Definition: G4LElastic.cc:68
G4NeutronHPDataUsed GetName(G4int A, G4int Z, G4String base, G4String rest, G4bool &active)
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
G4bool IsThisElementOK(G4String)
G4int GetZ_asInt() const
Definition: G4Nucleus.hh:115

◆ GiveHPXSectionDataSet()

G4VCrossSectionDataSet * G4NeutronHPorLElasticModel::GiveHPXSectionDataSet ( )
inline

Definition at line 49 of file G4NeutronHPorLElasticModel.hh.

49{ return theHPElastic->GiveXSectionDataSet(); }
G4VCrossSectionDataSet * GiveXSectionDataSet()

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