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

#include <G4LEPionMinusInelastic.hh>

+ Inheritance diagram for G4LEPionMinusInelastic:

Public Member Functions

 G4LEPionMinusInelastic (const G4String &name="G4LEPionMinusInelastic")
 
 ~G4LEPionMinusInelastic ()
 
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 G4LEPionMinusInelastic.hh.

Constructor & Destructor Documentation

◆ G4LEPionMinusInelastic()

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

Definition at line 37 of file G4LEPionMinusInelastic.cc.

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

◆ ~G4LEPionMinusInelastic()

G4LEPionMinusInelastic::~G4LEPionMinusInelastic ( )
inline

Definition at line 50 of file G4LEPionMinusInelastic.hh.

50{}

Member Function Documentation

◆ ApplyYourself()

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

Implements G4HadronicInteraction.

Definition at line 62 of file G4LEPionMinusInelastic.cc.

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

◆ ModelDescription()

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

Reimplemented from G4HadronicInteraction.

Definition at line 47 of file G4LEPionMinusInelastic.cc.

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

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