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

#include <G4LELambdaInelastic.hh>

+ Inheritance diagram for G4LELambdaInelastic:

Public Member Functions

 G4LELambdaInelastic (const G4String &name="G4LELambdaInelastic")
 
 ~G4LELambdaInelastic ()
 
G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
 
virtual void ModelDescription (std::ostream &outFile) const
 
- Public Member Functions inherited from G4InelasticInteraction
 G4InelasticInteraction (const G4String &name="LEInelastic")
 
virtual ~G4InelasticInteraction ()
 
void RegisterIsotopeProductionModel (G4VIsotopeProduction *aModel)
 
void TurnOnIsotopeProduction ()
 
virtual const std::pair< G4double, G4doubleGetFatalEnergyCheckLevels () const
 
- 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

- Static Public Member Functions inherited from G4InelasticInteraction
static G4IsoParticleChangeGetIsotopeProductionInfo ()
 
- Protected Member Functions inherited from G4InelasticInteraction
G4double Pmltpc (G4int np, G4int nm, G4int nz, G4int n, G4double b, G4double c)
 
G4bool MarkLeadingStrangeParticle (const G4ReactionProduct &currentParticle, const G4ReactionProduct &targetParticle, G4ReactionProduct &leadParticle)
 
void SetUpPions (const G4int np, const G4int nm, const G4int nz, G4FastVector< G4ReactionProduct, GHADLISTSIZE > &vec, G4int &vecLen)
 
void Rotate (G4FastVector< G4ReactionProduct, GHADLISTSIZE > &vec, G4int &vecLen)
 
void GetNormalizationConstant (const G4double availableEnergy, G4double &n, G4double &anpn)
 
void CalculateMomenta (G4FastVector< G4ReactionProduct, GHADLISTSIZE > &vec, G4int &vecLen, const G4HadProjectile *originalIncident, const G4DynamicParticle *originalTarget, G4ReactionProduct &modifiedOriginal, G4Nucleus &targetNucleus, G4ReactionProduct &currentParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged, G4bool &targetHasChanged, G4bool quasiElastic)
 
void SetUpChange (G4FastVector< G4ReactionProduct, GHADLISTSIZE > &vec, G4int &vecLen, G4ReactionProduct &currentParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged)
 
void DoIsotopeCounting (const G4HadProjectile *theProjectile, const G4Nucleus &aNucleus)
 
G4IsoResultExtractResidualNucleus (const G4Nucleus &aNucleus)
 
- Protected Member Functions inherited from G4HadronicInteraction
void SetModelName (const G4String &nam)
 
G4bool IsBlocked () const
 
void Block ()
 
- Protected Attributes inherited from G4InelasticInteraction
G4bool isotopeProduction
 
G4ReactionDynamics theReactionDynamics
 
- Protected Attributes inherited from G4HadronicInteraction
G4HadFinalState theParticleChange
 
G4int verboseLevel
 
G4double theMinEnergy
 
G4double theMaxEnergy
 
G4bool isBlocked
 

Detailed Description

Definition at line 44 of file G4LELambdaInelastic.hh.

Constructor & Destructor Documentation

◆ G4LELambdaInelastic()

G4LELambdaInelastic::G4LELambdaInelastic ( const G4String name = "G4LELambdaInelastic")

Definition at line 39 of file G4LELambdaInelastic.cc.

41{
42 SetMinEnergy(0.0);
43 SetMaxEnergy(25.*GeV);
44 G4cout << "WARNING: model G4LELambdaInelastic is being deprecated and will\n"
45 << "disappear in Geant4 version 10.0" << G4endl;
46}
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
void SetMinEnergy(G4double anEnergy)
void SetMaxEnergy(const G4double anEnergy)

◆ ~G4LELambdaInelastic()

G4LELambdaInelastic::~G4LELambdaInelastic ( )
inline

Definition at line 50 of file G4LELambdaInelastic.hh.

50{ }

Member Function Documentation

◆ ApplyYourself()

G4HadFinalState * G4LELambdaInelastic::ApplyYourself ( const G4HadProjectile aTrack,
G4Nucleus targetNucleus 
)
virtual

Implements G4HadronicInteraction.

Definition at line 64 of file G4LELambdaInelastic.cc.

66{
67 const G4HadProjectile *originalIncident = &aTrack;
68
69 // create the target particle
70
71 G4DynamicParticle* originalTarget = targetNucleus.ReturnTargetParticle();
72
73 if (verboseLevel > 1) {
74 const G4Material *targetMaterial = aTrack.GetMaterial();
75 G4cout << "G4LELambdaInelastic::ApplyYourself called" << G4endl;
76 G4cout << "kinetic energy = " << originalIncident->GetKineticEnergy()/MeV << "MeV, ";
77 G4cout << "target material = " << targetMaterial->GetName() << ", ";
78 G4cout << "target particle = " << originalTarget->GetDefinition()->GetParticleName()
79 << G4endl;
80 }
81
82 // Fermi motion and evaporation
83 // As of Geant3, the Fermi energy calculation had not been done
84 G4double ek = originalIncident->GetKineticEnergy()/MeV;
85 G4double amas = originalIncident->GetDefinition()->GetPDGMass()/MeV;
86 G4ReactionProduct modifiedOriginal;
87 modifiedOriginal = *originalIncident;
88
89 G4double tkin = targetNucleus.Cinema( ek );
90 ek += tkin;
91 modifiedOriginal.SetKineticEnergy( ek*MeV );
92 G4double et = ek + amas;
93 G4double p = std::sqrt( std::abs((et-amas)*(et+amas)) );
94 G4double pp = modifiedOriginal.GetMomentum().mag()/MeV;
95 if (pp > 0.0) {
96 G4ThreeVector momentum = modifiedOriginal.GetMomentum();
97 modifiedOriginal.SetMomentum( momentum * (p/pp) );
98 }
99
100 // calculate black track energies
101 tkin = targetNucleus.EvaporationEffects(ek);
102 ek -= tkin;
103 modifiedOriginal.SetKineticEnergy(ek*MeV);
104 et = ek + amas;
105 p = std::sqrt( std::abs((et-amas)*(et+amas)) );
106 pp = modifiedOriginal.GetMomentum().mag()/MeV;
107 if (pp > 0.0) {
108 G4ThreeVector momentum = modifiedOriginal.GetMomentum();
109 modifiedOriginal.SetMomentum( momentum * (p/pp) );
110 }
111
112 G4ReactionProduct currentParticle = modifiedOriginal;
113 G4ReactionProduct targetParticle;
114 targetParticle = *originalTarget;
115 currentParticle.SetSide(1); // incident always goes in forward hemisphere
116 targetParticle.SetSide(-1); // target always goes in backward hemisphere
117 G4bool incidentHasChanged = false;
118 G4bool targetHasChanged = false;
119 G4bool quasiElastic = false;
120 G4FastVector<G4ReactionProduct,GHADLISTSIZE> vec; // vec will contain the secondary particles
121 G4int vecLen = 0;
122 vec.Initialize(0);
123
124 const G4double cutOff = 0.1;
125 if (currentParticle.GetKineticEnergy()/MeV > cutOff)
126 Cascade(vec, vecLen, originalIncident, currentParticle, targetParticle,
127 incidentHasChanged, targetHasChanged, quasiElastic);
128
129 CalculateMomenta(vec, vecLen, originalIncident, originalTarget,
130 modifiedOriginal, targetNucleus, currentParticle,
131 targetParticle, incidentHasChanged, targetHasChanged,
132 quasiElastic);
133
134 SetUpChange(vec, vecLen, currentParticle, targetParticle, incidentHasChanged);
135
136 if (isotopeProduction) DoIsotopeCounting(originalIncident, targetNucleus);
137
138 delete originalTarget;
139 return &theParticleChange;
140}
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
bool G4bool
Definition: G4Types.hh:67
double mag() const
G4ParticleDefinition * GetDefinition() const
void Initialize(G4int items)
Definition: G4FastVector.hh:63
const G4Material * GetMaterial() const
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
void CalculateMomenta(G4FastVector< G4ReactionProduct, GHADLISTSIZE > &vec, G4int &vecLen, const G4HadProjectile *originalIncident, const G4DynamicParticle *originalTarget, G4ReactionProduct &modifiedOriginal, G4Nucleus &targetNucleus, G4ReactionProduct &currentParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged, G4bool &targetHasChanged, G4bool quasiElastic)
void DoIsotopeCounting(const G4HadProjectile *theProjectile, const G4Nucleus &aNucleus)
void SetUpChange(G4FastVector< G4ReactionProduct, GHADLISTSIZE > &vec, G4int &vecLen, G4ReactionProduct &currentParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged)
const G4String & GetName() const
Definition: G4Material.hh:177
G4double EvaporationEffects(G4double kineticEnergy)
Definition: G4Nucleus.cc:264
G4double Cinema(G4double kineticEnergy)
Definition: G4Nucleus.cc:368
G4DynamicParticle * ReturnTargetParticle() const
Definition: G4Nucleus.cc:227
const G4String & GetParticleName() const
void SetMomentum(const G4double x, const G4double y, const G4double z)
G4double GetKineticEnergy() const
G4ThreeVector GetMomentum() const
void SetSide(const G4int sid)
void SetKineticEnergy(const G4double en)

◆ ModelDescription()

void G4LELambdaInelastic::ModelDescription ( std::ostream &  outFile) const
virtual

Reimplemented from G4HadronicInteraction.

Definition at line 49 of file G4LELambdaInelastic.cc.

50{
51 outFile << "G4LELambdaInelastic is one of the Low Energy Parameterized\n"
52 << "(LEP) models used to implement inelastic Lambda scattering\n"
53 << "from nuclei. It is a re-engineered version of the GHEISHA\n"
54 << "code of H. Fesefeldt. It divides the initial collision\n"
55 << "products into backward- and forward-going clusters which are\n"
56 << "then decayed into final state hadrons. The model does not\n"
57 << "conserve energy on an event-by-event basis. It may be\n"
58 << "applied to lambdas with initial energies between 0 and 25\n"
59 << "GeV.\n";
60}

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