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

#include <G4NeutronHPorLFissionModel.hh>

+ Inheritance diagram for G4NeutronHPorLFissionModel:

Public Member Functions

 G4NeutronHPorLFissionModel ()
 
 ~G4NeutronHPorLFissionModel ()
 
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 41 of file G4NeutronHPorLFissionModel.hh.

Constructor & Destructor Documentation

◆ G4NeutronHPorLFissionModel()

G4NeutronHPorLFissionModel::G4NeutronHPorLFissionModel ( )

Definition at line 36 of file G4NeutronHPorLFissionModel.cc.

37{
38 theHPFission = new G4NeutronHPorLFission();
39 theLFission = new G4LFission();
40 theHPNames = new G4NeutronHPNames();
41}

◆ ~G4NeutronHPorLFissionModel()

G4NeutronHPorLFissionModel::~G4NeutronHPorLFissionModel ( )

Definition at line 42 of file G4NeutronHPorLFissionModel.cc.

43{
44 delete theHPFission;
45 delete theLFission;
46 delete theHPNames;
47}

Member Function Documentation

◆ ApplyYourself()

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

Implements G4HadronicInteraction.

Definition at line 49 of file G4NeutronHPorLFissionModel.cc.

50{
51 if ( aTrack.GetKineticEnergy() > 20*MeV )
52 {
53 //G4cout << "Select LE model " << G4endl;
54 return theLFission->ApplyYourself( aTrack , aTargetNucleus );
55 }
56
57 //G4int Z = (G4int)(aTargetNucleus.GetZ()+0.5);
58 //migrate to integer A and Z
59 G4int Z = aTargetNucleus.GetZ_asInt();
60 G4String theNameOfElement = theHPNames->GetName( Z-1 ); // GetName(0) reply "Hydrogen"
61
62 if ( theHPFission->IsThisElementOK( theNameOfElement ) )
63 {
64 //G4cout << "Select HP model " << G4endl;
65 return theHPFission->ApplyYourself( aTrack , aTargetNucleus );
66 }
67 else
68 {
69 //G4cout << "Select LE model " << G4endl;
70 return theLFission->ApplyYourself( aTrack , aTargetNucleus );
71 }
72}
int G4int
Definition: G4Types.hh:66
G4double GetKineticEnergy() const
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
Definition: G4LFission.cc:94
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 * G4NeutronHPorLFissionModel::GiveHPXSectionDataSet ( )
inline

Definition at line 48 of file G4NeutronHPorLFissionModel.hh.

48{ return theHPFission->GiveXSectionDataSet(); }
G4VCrossSectionDataSet * GiveXSectionDataSet()

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