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

#include <G4LENDGammaModel.hh>

+ Inheritance diagram for G4LENDGammaModel:

Public Member Functions

 G4LENDGammaModel (G4ParticleDefinition *pd)
 
 ~G4LENDGammaModel ()
 
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 *)
 
- Public Member Functions inherited from G4LENDModel
 G4LENDModel (G4String name="LENDModel")
 
 ~G4LENDModel ()
 
virtual G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
 
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 G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
 
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 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
 
virtual void BuildPhysicsTable (const G4ParticleDefinition &)
 
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
 

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 50 of file G4LENDGammaModel.hh.

Constructor & Destructor Documentation

◆ G4LENDGammaModel()

G4LENDGammaModel::G4LENDGammaModel ( G4ParticleDefinition pd)

Definition at line 46 of file G4LENDGammaModel.cc.

47 :G4LENDModel("LENDGammaModel") {
48 proj = pd;
49 crossSection = new G4LENDGammaCrossSection(pd);
50 inelastic = new G4LENDInelastic(pd);
51 fission = new G4LENDFission(pd);
52 channels[0] = inelastic;
53 channels[1] = fission;
54}
G4ParticleDefinition * proj
Definition: G4LENDModel.hh:83

◆ ~G4LENDGammaModel()

G4LENDGammaModel::~G4LENDGammaModel ( )
inline

Definition at line 54 of file G4LENDGammaModel.hh.

54{;};

Member Function Documentation

◆ ApplyYourself()

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

Reimplemented from G4LENDModel.

Definition at line 71 of file G4LENDGammaModel.cc.

73{
74 G4LENDModel* channel = nullptr;
75
76 G4int iZ = aTarg.GetZ_asInt();
77 G4int iA = aTarg.GetA_asInt();
78 //To pass kinetic energy, need to generate dynamic particle
80 aTrack.GetKineticEnergy() );
81 G4int ichannel = crossSection->SelectChannel(dp, iZ, iA, aTarg.GetIsotope(),
82 nullptr, aTrack.GetMaterial() );
83 delete dp;
84 channel = channels[ichannel];
85 return channel->ApplyYourself(aTrack, aTarg);
86}
CLHEP::Hep3Vector G4ThreeVector
int G4int
Definition: G4Types.hh:85
const G4Material * GetMaterial() const
G4double GetKineticEnergy() const
G4int SelectChannel(const G4DynamicParticle *, G4int, G4int, const G4Isotope *, const G4Element *, const G4Material *)
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
Definition: G4LENDModel.cc:160

◆ BuildPhysicsTable()

void G4LENDGammaModel::BuildPhysicsTable ( const G4ParticleDefinition projectile)
virtual

Reimplemented from G4HadronicInteraction.

Definition at line 56 of file G4LENDGammaModel.cc.

56 {
57 crossSection->BuildPhysicsTable(projectile);
59}
void BuildPhysicsTable(const G4ParticleDefinition &)
void create_used_target_map()
Definition: G4LENDModel.cc:95

◆ HasData()

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

Definition at line 61 of file G4LENDGammaModel.cc.

64{
65 G4bool result = false;
66 if (get_target_from_map(lend_manager->GetNucleusEncoding(iZ, iA, iM) ) != nullptr) result = true;
67 return result;
68}
bool G4bool
Definition: G4Types.hh:86
G4int GetNucleusEncoding(G4int iZ, G4int iA, G4int iM)
G4LENDManager * lend_manager
Definition: G4LENDModel.hh:84
G4GIDI_target * get_target_from_map(G4int nuclear_code)
Definition: G4LENDModel.cc:269

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