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

#include <G4LEAlphaInelastic.hh>

+ Inheritance diagram for G4LEAlphaInelastic:

Public Member Functions

 G4LEAlphaInelastic (const G4String &name="G4LEAlphaInelastic")
 
 ~G4LEAlphaInelastic ()
 
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 43 of file G4LEAlphaInelastic.hh.

Constructor & Destructor Documentation

◆ G4LEAlphaInelastic()

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

Definition at line 38 of file G4LEAlphaInelastic.cc.

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

◆ ~G4LEAlphaInelastic()

G4LEAlphaInelastic::~G4LEAlphaInelastic ( )
inline

Definition at line 49 of file G4LEAlphaInelastic.hh.

49{ }

Member Function Documentation

◆ ApplyYourself()

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

Implements G4HadronicInteraction.

Definition at line 63 of file G4LEAlphaInelastic.cc.

65{
67 const G4HadProjectile* originalIncident = &aTrack;
68
69 G4double A = targetNucleus.GetA_asInt();
70 G4double Z = targetNucleus.GetZ_asInt();
71
72 G4double kineticEnergy = aTrack.Get4Momentum().e()-aTrack.GetDefinition()->GetPDGMass();
73 if (verboseLevel > 1) {
74 const G4Material *targetMaterial = aTrack.GetMaterial();
75 G4cout << "G4LEAlphaInelastic::ApplyYourself called" << G4endl;
76 G4cout << "kinetc energy = " <<kineticEnergy/MeV << "MeV, ";
77 G4cout << "target material = " << targetMaterial->GetName() << G4endl;
78 }
79
80 // Work-around for lack of model above 100 MeV
81 if (kineticEnergy/MeV > 100. || kineticEnergy <= 0.1*MeV) {
85 return &theParticleChange;
86 }
87 G4double theAtomicMass = targetNucleus.AtomicMass( A, Z );
88 G4double massVec[9];
89 massVec[0] = targetNucleus.AtomicMass( A+4.0, Z+2.0 );
90 massVec[1] = targetNucleus.AtomicMass( A+3.0, Z+2.0 );
91 massVec[2] = targetNucleus.AtomicMass( A+3.0, Z+1.0 );
92 massVec[3] = targetNucleus.AtomicMass( A+2.0, Z+1.0 );
93 massVec[4] = targetNucleus.AtomicMass( A+1.0, Z+1.0 );
94 massVec[5] = theAtomicMass;
95 massVec[6] = targetNucleus.AtomicMass( A+2.0, Z+2.0 );
96 massVec[7] = massVec[3];
97 massVec[8] = targetNucleus.AtomicMass( A+2.0, Z );
98
99 G4FastVector<G4ReactionProduct,4> vec; // vec will contain the secondary particles
100 G4int vecLen = 0;
101 vec.Initialize( 0 );
102
103 theReactionDynamics.NuclearReaction(vec, vecLen, &aTrack,
104 targetNucleus, theAtomicMass, massVec);
105
106 G4double p = vec[0]->GetMomentum().mag();
107 theParticleChange.SetMomentumChange( vec[0]->GetMomentum() *(1./p));
108 theParticleChange.SetEnergyChange( vec[0]->GetKineticEnergy() );
109 delete vec[0];
110
111 if (vecLen <= 1)
112 {
116 return &theParticleChange;
117 }
118
120 for (G4int i = 1; i < vecLen; ++i) {
121 pd = new G4DynamicParticle();
122 pd->SetDefinition( vec[i]->GetDefinition() );
123 pd->SetMomentum( vec[i]->GetMomentum() );
125 delete vec[i];
126 }
127
128 if (isotopeProduction) DoIsotopeCounting(originalIncident, targetNucleus);
129 return &theParticleChange;
130}
@ isAlive
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
Hep3Vector unit() const
Hep3Vector vect() const
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
void SetMomentum(const G4ThreeVector &momentum)
void Initialize(G4int items)
Definition: G4FastVector.hh:63
void SetStatusChange(G4HadFinalStateStatus aS)
void AddSecondary(G4DynamicParticle *aP)
void SetEnergyChange(G4double anEnergy)
void SetMomentumChange(const G4ThreeVector &aV)
const G4Material * GetMaterial() const
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4ReactionDynamics theReactionDynamics
void DoIsotopeCounting(const G4HadProjectile *theProjectile, const G4Nucleus &aNucleus)
const G4String & GetName() const
Definition: G4Material.hh:177
G4int GetA_asInt() const
Definition: G4Nucleus.hh:109
G4int GetZ_asInt() const
Definition: G4Nucleus.hh:115
G4double AtomicMass(const G4double A, const G4double Z) const
Definition: G4Nucleus.cc:240
void NuclearReaction(G4FastVector< G4ReactionProduct, 4 > &vec, G4int &vecLen, const G4HadProjectile *originalIncident, const G4Nucleus &aNucleus, const G4double theAtomicMass, const G4double *massVec)

◆ ModelDescription()

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

Reimplemented from G4HadronicInteraction.

Definition at line 48 of file G4LEAlphaInelastic.cc.

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

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