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

#include <G4LENDorBERTModel.hh>

+ Inheritance diagram for G4LENDorBERTModel:

Public Member Functions

 G4LENDorBERTModel (G4ParticleDefinition *pd)
 
 ~G4LENDorBERTModel ()
 
void BuildPhysicsTable (const G4ParticleDefinition &)
 
G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &aTargetNucleus)
 
- Public Member Functions inherited from G4LENDModel
 G4LENDModel (G4String name="LENDModel")
 
 ~G4LENDModel ()
 
void ChangeDefaultEvaluation (G4String name)
 
void AllowNaturalAbundanceTarget ()
 
void AllowAnyCandidateTarget ()
 
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 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 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 46 of file G4LENDorBERTModel.hh.

Constructor & Destructor Documentation

◆ G4LENDorBERTModel()

G4LENDorBERTModel::G4LENDorBERTModel ( G4ParticleDefinition * pd)

Definition at line 32 of file G4LENDorBERTModel.cc.

33 :G4LENDModel( "LENDorBERTModel" ), secID( -1 ) {
34 proj = pd;
35 lend = new G4LENDCombinedModel( proj );
36 bert = new G4CascadeInterface;
37 secID = G4PhysicsModelCatalog::GetModelID( "model_" + GetModelName() );
38}
const G4String & GetModelName() const
G4LENDModel(G4String name="LENDModel")
G4ParticleDefinition * proj
static G4int GetModelID(const G4int modelIndex)

◆ ~G4LENDorBERTModel()

G4LENDorBERTModel::~G4LENDorBERTModel ( )
inline

Definition at line 50 of file G4LENDorBERTModel.hh.

50{;};

Member Function Documentation

◆ ApplyYourself()

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

Reimplemented from G4LENDModel.

Definition at line 45 of file G4LENDorBERTModel.cc.

45 {
46 //G4cout << "Hello from G4LENDorBERTModel::ApplyYourself" << G4endl;
47
48 G4int iZ = aTarg.GetZ_asInt();
49 G4int iA = aTarg.GetA_asInt();
50 G4int iM = 0;
51 if ( aTarg.GetIsotope() != nullptr ) iM = aTarg.GetIsotope()->Getm();
52
53 G4DynamicParticle* dp = new G4DynamicParticle( aTrack.GetDefinition() , G4ThreeVector(0.,0.,1.) , aTrack.GetKineticEnergy() );
54 G4bool lendIsOK = lend->HasData( dp , iZ , iA , iM , aTarg.GetIsotope() , nullptr , aTrack.GetMaterial() );
55 delete dp;
56
57 G4HadronicInteraction* model = nullptr;
58 if ( lendIsOK ) {
59 //G4cout << "LEND is selected" << G4endl;
60 model = lend;
61 } else {
62 //G4cout << "BERT is selected" << G4endl;
63 model = bert;
64 }
65
66 G4HadFinalState* result = model->ApplyYourself(aTrack,aTarg);
67
68 // Assign the creator model ID to the secondaries
69 if ( result != nullptr ) {
70 for ( size_t i = 0; i < result->GetNumberOfSecondaries(); ++i ) {
71 result->GetSecondary( i )->SetCreatorModelID( secID );
72 }
73 }
74
75 return result;
76}
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
std::size_t GetNumberOfSecondaries() const
G4HadSecondary * GetSecondary(size_t i)
const G4Material * GetMaterial() const
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
void SetCreatorModelID(G4int id)
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
G4bool HasData(const G4DynamicParticle *, G4int iZ, G4int iA, G4int iM, const G4Isotope *, const G4Element *, const G4Material *)

◆ BuildPhysicsTable()

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

Reimplemented from G4LENDModel.

Definition at line 40 of file G4LENDorBERTModel.cc.

40 {
41 lend->BuildPhysicsTable( projectile );
43}
void BuildPhysicsTable(const G4ParticleDefinition &)
void create_used_target_map()

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