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

#include <G4RPGNeutronInelastic.hh>

+ Inheritance diagram for G4RPGNeutronInelastic:

Public Member Functions

 G4RPGNeutronInelastic ()
 
 ~G4RPGNeutronInelastic ()
 
G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
 
- Public Member Functions inherited from G4RPGNucleonInelastic
 G4RPGNucleonInelastic (const G4String &modelName="RPGNucleonInelastic")
 
 ~G4RPGNucleonInelastic ()
 
- Public Member Functions inherited from G4RPGInelastic
 G4RPGInelastic (const G4String &modelName="RPGInelastic")
 
virtual ~G4RPGInelastic ()
 
- 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 Types inherited from G4RPGInelastic
enum  {
  pi0 , pip , pim , kp ,
  km , k0 , k0b , pro ,
  neu , lam , sp , s0 ,
  sm , xi0 , xim , om ,
  ap , an
}
 
- Protected Member Functions inherited from G4RPGNucleonInelastic
G4int GetMultiplicityT1 (G4double KE) const
 
G4int GetMultiplicityT0 (G4double KE) const
 
std::vector< G4intGetFSPartTypesForT1 (G4int mult, G4double KE, G4int tindex) const
 
std::vector< G4intGetFSPartTypesForT0 (G4int mult, G4double KE) const
 
std::vector< G4intGetFSPartTypesForPP (G4int mult, G4double KE) const
 
std::vector< G4intGetFSPartTypesForNN (G4int mult, G4double KE) const
 
std::vector< G4intGetFSPartTypesForPN (G4int mult, G4double KE) const
 
std::vector< G4intGetFSPartTypesForNP (G4int mult, G4double KE) const
 
- Protected Member Functions inherited from G4RPGInelastic
G4double Pmltpc (G4int np, G4int nm, G4int nz, G4int n, G4double b, G4double c)
 
G4int Factorial (G4int n)
 
G4bool MarkLeadingStrangeParticle (const G4ReactionProduct &currentParticle, const G4ReactionProduct &targetParticle, G4ReactionProduct &leadParticle)
 
void SetUpPions (const G4int np, const G4int nm, const G4int nz, G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen)
 
void GetNormalizationConstant (const G4double availableEnergy, G4double &n, G4double &anpn)
 
void CalculateMomenta (G4FastVector< G4ReactionProduct, 256 > &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, 256 > &vec, G4int &vecLen, G4ReactionProduct &currentParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged)
 
std::pair< G4int, G4doubleinterpolateEnergy (G4double ke) const
 
G4int sampleFlat (std::vector< G4double > sigma) const
 
void CheckQnums (G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen, G4ReactionProduct &currentParticle, G4ReactionProduct &targetParticle, G4double Q, G4double B, G4double S)
 
- Protected Member Functions inherited from G4HadronicInteraction
void SetModelName (const G4String &nam)
 
G4bool IsBlocked () const
 
void Block ()
 
- Protected Attributes inherited from G4RPGInelastic
G4RPGFragmentation fragmentation
 
G4RPGTwoCluster twoCluster
 
G4RPGPionSuppression pionSuppression
 
G4RPGStrangeProduction strangeProduction
 
G4RPGTwoBody twoBody
 
G4ParticleDefinitionparticleDef [18]
 
- Protected Attributes inherited from G4HadronicInteraction
G4HadFinalState theParticleChange
 
G4int verboseLevel
 
G4double theMinEnergy
 
G4double theMaxEnergy
 
G4bool isBlocked
 
- Static Protected Attributes inherited from G4RPGNucleonInelastic
static const G4int pPindex [8][2]
 
static const G4int pNindex [8][2]
 
static const G4int T1_2bfs [2][1][2]
 
static const G4int T1_3bfs [2][6][3]
 
static const G4int T1_4bfs [2][18][4]
 
static const G4int T1_5bfs [2][32][5]
 
static const G4int T1_6bfs [2][7][6]
 
static const G4int T1_7bfs [2][8][7]
 
static const G4int T1_8bfs [2][10][8]
 
static const G4int T1_9bfs [2][11][9]
 
static const G4int T0_2bfs [1][2]
 
static const G4int T0_3bfs [9][3]
 
static const G4int T0_4bfs [22][4]
 
static const G4int T0_5bfs [38][5]
 
static const G4int T0_6bfs [7][6]
 
static const G4int T0_7bfs [9][7]
 
static const G4int T0_8bfs [10][8]
 
static const G4int T0_9bfs [12][9]
 
static G4ThreadLocal G4double pPtot [30]
 
static G4ThreadLocal G4double pNtot [30]
 
static G4ThreadLocal G4double t1_dSigma_dMult [8][30]
 
static G4ThreadLocal G4double t0_dSigma_dMult [8][30]
 
static const G4float pPCrossSections [93][30]
 
static const G4float pNCrossSections [108][30]
 

Detailed Description

Definition at line 42 of file G4RPGNeutronInelastic.hh.

Constructor & Destructor Documentation

◆ G4RPGNeutronInelastic()

G4RPGNeutronInelastic::G4RPGNeutronInelastic ( )
inline

Definition at line 46 of file G4RPGNeutronInelastic.hh.

46 : G4RPGNucleonInelastic("RPGNeutronInelastic")
47 {}

◆ ~G4RPGNeutronInelastic()

G4RPGNeutronInelastic::~G4RPGNeutronInelastic ( )
inline

Definition at line 49 of file G4RPGNeutronInelastic.hh.

50 {}

Member Function Documentation

◆ ApplyYourself()

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

Reimplemented from G4HadronicInteraction.

Definition at line 34 of file G4RPGNeutronInelastic.cc.

36{
38 const G4HadProjectile* originalIncident = &aTrack;
39
40 // create the target particle
41 G4DynamicParticle* originalTarget = targetNucleus.ReturnTargetParticle();
42
43 G4ReactionProduct modifiedOriginal;
44 modifiedOriginal = *originalIncident;
45 G4ReactionProduct targetParticle;
46 targetParticle = *originalTarget;
47 if( originalIncident->GetKineticEnergy()/GeV < 0.01 + 2.*G4UniformRand()/9. )
48 {
49 SlowNeutron(originalIncident,modifiedOriginal,targetParticle,targetNucleus );
50 delete originalTarget;
51 return &theParticleChange;
52 }
53
54 // Fermi motion and evaporation
55 // As of Geant3, the Fermi energy calculation had not been Done
56 G4double ek = originalIncident->GetKineticEnergy()/MeV;
57 G4double amas = originalIncident->GetDefinition()->GetPDGMass()/MeV;
58
59 G4double tkin = targetNucleus.Cinema( ek );
60 ek += tkin;
61 modifiedOriginal.SetKineticEnergy( ek*MeV );
62 G4double et = ek + amas;
63 G4double p = std::sqrt( std::abs((et-amas)*(et+amas)) );
64 G4double pp = modifiedOriginal.GetMomentum().mag()/MeV;
65 if( pp > 0.0 )
66 {
67 G4ThreeVector momentum = modifiedOriginal.GetMomentum();
68 modifiedOriginal.SetMomentum( momentum * (p/pp) );
69 }
70 //
71 // calculate black track energies
72 //
73 tkin = targetNucleus.EvaporationEffects( ek );
74 ek -= tkin;
75 modifiedOriginal.SetKineticEnergy(ek);
76 et = ek + amas;
77 p = std::sqrt( std::abs((et-amas)*(et+amas)) );
78 pp = modifiedOriginal.GetMomentum().mag();
79 if( pp > 0.0 )
80 {
81 G4ThreeVector momentum = modifiedOriginal.GetMomentum();
82 modifiedOriginal.SetMomentum( momentum * (p/pp) );
83 }
84 const G4double cutOff = 0.1;
85 if( modifiedOriginal.GetKineticEnergy()/MeV <= cutOff )
86 {
87 SlowNeutron( originalIncident, modifiedOriginal, targetParticle, targetNucleus );
88 delete originalTarget;
89 return &theParticleChange;
90 }
91
92 G4ReactionProduct currentParticle = modifiedOriginal;
93 currentParticle.SetSide( 1 ); // incident always goes in forward hemisphere
94 targetParticle.SetSide( -1 ); // target always goes in backward hemisphere
95 G4bool incidentHasChanged = false;
96 G4bool targetHasChanged = false;
97 G4bool quasiElastic = false;
98 G4FastVector<G4ReactionProduct,256> vec; // vec will contain sec. particles
99 G4int vecLen = 0;
100 vec.Initialize( 0 );
101
102 InitialCollision(vec, vecLen, currentParticle, targetParticle,
103 incidentHasChanged, targetHasChanged);
104
105 CalculateMomenta(vec, vecLen,
106 originalIncident, originalTarget, modifiedOriginal,
107 targetNucleus, currentParticle, targetParticle,
108 incidentHasChanged, targetHasChanged, quasiElastic);
109
110 SetUpChange(vec, vecLen,
111 currentParticle, targetParticle,
112 incidentHasChanged);
113
114 delete originalTarget;
115 return &theParticleChange;
116}
double G4double
Definition: G4Types.hh:83
bool G4bool
Definition: G4Types.hh:86
int G4int
Definition: G4Types.hh:85
#define G4UniformRand()
Definition: Randomize.hh:52
double mag() const
void Initialize(G4int items)
Definition: G4FastVector.hh:59
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4double EvaporationEffects(G4double kineticEnergy)
Definition: G4Nucleus.cc:278
G4double Cinema(G4double kineticEnergy)
Definition: G4Nucleus.cc:382
G4DynamicParticle * ReturnTargetParticle() const
Definition: G4Nucleus.cc:241
void CalculateMomenta(G4FastVector< G4ReactionProduct, 256 > &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, 256 > &vec, G4int &vecLen, G4ReactionProduct &currentParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged)
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)

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