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

#include <G4NeutronHPorLEInelasticModel.hh>

+ Inheritance diagram for G4NeutronHPorLEInelasticModel:

Public Member Functions

 G4NeutronHPorLEInelasticModel ()
 
 ~G4NeutronHPorLEInelasticModel ()
 
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 G4NeutronHPorLEInelasticModel.hh.

Constructor & Destructor Documentation

◆ G4NeutronHPorLEInelasticModel()

G4NeutronHPorLEInelasticModel::G4NeutronHPorLEInelasticModel ( )

Definition at line 36 of file G4NeutronHPorLEInelasticModel.cc.

37{
38 //theHPElastic = new G4NeutronHPElastic();
39 theHPInelastic = new G4NeutronHPorLEInelastic();
40 theLEInelastic = new G4LENeutronInelastic();
41 theHPNames = new G4NeutronHPNames();
42}

◆ ~G4NeutronHPorLEInelasticModel()

G4NeutronHPorLEInelasticModel::~G4NeutronHPorLEInelasticModel ( )

Definition at line 43 of file G4NeutronHPorLEInelasticModel.cc.

44{
45 delete theHPInelastic;
46 delete theLEInelastic;
47 delete theHPNames;
48}

Member Function Documentation

◆ ApplyYourself()

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

Implements G4HadronicInteraction.

Definition at line 50 of file G4NeutronHPorLEInelasticModel.cc.

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

◆ GiveHPXSectionDataSet()

G4VCrossSectionDataSet * G4NeutronHPorLEInelasticModel::GiveHPXSectionDataSet ( )
inline

Definition at line 49 of file G4NeutronHPorLEInelasticModel.hh.

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

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