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

#include <G4LENDCombinedModel.hh>

Inheritance diagram for G4LENDCombinedModel:

Public Member Functions

 G4LENDCombinedModel (G4ParticleDefinition *pd)
 ~G4LENDCombinedModel ()
void BuildPhysicsTable (const G4ParticleDefinition &)
G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
G4bool HasData (const G4DynamicParticle *, G4int iZ, G4int iA, G4int iM, const G4Isotope *, const G4Element *, const G4Material *)
virtual const std::pair< G4double, G4doubleGetFatalEnergyCheckLevels () const
Public Member Functions inherited from G4LENDModel
 G4LENDModel (G4String name="LENDModel")
 ~G4LENDModel ()
void ChangeDefaultEvaluation (G4String name)
void AllowNaturalAbundanceTarget ()
void AllowAnyCandidateTarget ()
void BuildPhysicsTable (const G4ParticleDefinition &)
void DumpLENDTargetInfo (G4bool force=false)
Public Member Functions inherited from G4HadronicInteraction
 G4HadronicInteraction (const G4String &modelName="HadronicModel")
virtual ~G4HadronicInteraction ()
virtual G4double SampleInvariantT (const G4ParticleDefinition *p, G4double plab, G4int Z, G4int A)
virtual G4bool IsApplicable (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
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)
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
virtual std::pair< G4double, G4doubleGetEnergyMomentumCheckLevels () const
void SetEnergyMomentumCheckLevels (G4double relativeLevel, G4double absoluteLevel)
virtual void ModelDescription (std::ostream &outFile) const
virtual void InitialiseModel ()
 G4HadronicInteraction (const G4HadronicInteraction &right)=delete
const G4HadronicInteractionoperator= (const G4HadronicInteraction &right)=delete
G4bool operator== (const G4HadronicInteraction &right) const =delete
G4bool operator!= (const G4HadronicInteraction &right) const =delete

Public Attributes

G4LENDModelchannel_selected

Additional Inherited Members

Protected Member Functions inherited from G4LENDModel
void create_used_target_map ()
void recreate_used_target_map ()
G4GIDI_targetget_target_from_map (G4int nuclear_code)
G4HadFinalStatereturnUnchanged (const G4HadProjectile &aTrack, G4HadFinalState *theResult)
Protected Member Functions inherited from G4HadronicInteraction
void SetModelName (const G4String &nam)
G4bool IsBlocked () const
void Block ()
Protected Attributes inherited from G4LENDModel
G4ParticleDefinitionproj
G4LENDManagerlend_manager
std::map< G4int, G4LENDUsedTarget * > usedTarget_map
G4int secID
Protected Attributes inherited from G4HadronicInteraction
G4HadFinalState theParticleChange
G4int verboseLevel
G4double theMinEnergy
G4double theMaxEnergy
G4bool isBlocked

Detailed Description

Definition at line 51 of file G4LENDCombinedModel.hh.

Constructor & Destructor Documentation

◆ G4LENDCombinedModel()

G4LENDCombinedModel::G4LENDCombinedModel ( G4ParticleDefinition * pd)

Definition at line 39 of file G4LENDCombinedModel.cc.

40:G4LENDModel( "LENDCombinedModel" ) {
41 proj = pd;
42 crossSection = new G4LENDCombinedCrossSection( pd );
43 elastic = new G4LENDElastic( pd );
44 inelastic = new G4LENDInelastic( pd );
45 capture = new G4LENDCapture( pd );
46 fission = new G4LENDFission( pd );
47 channels[0] = elastic;
48 channels[1] = inelastic;
49 channels[2] = capture;
50 channels[3] = fission;
51}
G4LENDModel(G4String name="LENDModel")
G4ParticleDefinition * proj

◆ ~G4LENDCombinedModel()

G4LENDCombinedModel::~G4LENDCombinedModel ( )
inline

Definition at line 55 of file G4LENDCombinedModel.hh.

55{;};

Member Function Documentation

◆ ApplyYourself()

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

Reimplemented from G4LENDModel.

Definition at line 67 of file G4LENDCombinedModel.cc.

67 {
68
69 G4LENDModel* channel = NULL;
70
71 G4int iZ = aTarg.GetZ_asInt();
72 G4int iA = aTarg.GetA_asInt();
73 //To pass kinetic energy, need to generate dynamic particle
74 G4DynamicParticle* dp = new G4DynamicParticle( proj , G4ThreeVector(0.,0.,1.) , aTrack.GetKineticEnergy() );
75 G4int ichannel = crossSection->SelectChannel( dp , iZ , iA , aTarg.GetIsotope(), NULL , aTrack.GetMaterial() );
76 delete dp;
77 channel = channels[ichannel];
78 channel_selected = channel; // needed by std::pair() defined below
79 return channel->ApplyYourself(aTrack,aTarg);
80}
CLHEP::Hep3Vector G4ThreeVector
int G4int
Definition G4Types.hh:85
const G4Material * GetMaterial() const
G4double GetKineticEnergy() const
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)

◆ BuildPhysicsTable()

void G4LENDCombinedModel::BuildPhysicsTable ( const G4ParticleDefinition & projectile)
virtual

Reimplemented from G4HadronicInteraction.

Definition at line 53 of file G4LENDCombinedModel.cc.

53 {
54 crossSection->BuildPhysicsTable( projectile );
56}
void create_used_target_map()

◆ GetFatalEnergyCheckLevels()

const std::pair< G4double, G4double > G4LENDCombinedModel::GetFatalEnergyCheckLevels ( ) const
virtual

Reimplemented from G4HadronicInteraction.

Definition at line 83 of file G4LENDCombinedModel.cc.

84{
85 /* D. M. Wright debug statement
86 std::cout << "G4LENDCombinedModel "
87 << " " << channel_selected->GetModelName()
88 << " GetFatalEnergyCheckLevels"
89 << std::endl;
90 */
91 return channel_selected->GetFatalEnergyCheckLevels();
92}

◆ HasData()

G4bool G4LENDCombinedModel::HasData ( const G4DynamicParticle * ,
G4int iZ,
G4int iA,
G4int iM,
const G4Isotope * ,
const G4Element * ,
const G4Material *  )

Definition at line 58 of file G4LENDCombinedModel.cc.

59 {
60
61 G4bool result = false;
62 if ( get_target_from_map ( lend_manager->GetNucleusEncoding ( iZ, iA , iM ) ) != NULL ) result=true;
63 return result;
64}
bool G4bool
Definition G4Types.hh:86
G4LENDManager * lend_manager
G4GIDI_target * get_target_from_map(G4int nuclear_code)

Member Data Documentation

◆ channel_selected

G4LENDModel* G4LENDCombinedModel::channel_selected

Definition at line 64 of file G4LENDCombinedModel.hh.

Referenced by ApplyYourself(), and GetFatalEnergyCheckLevels().


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