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

#include <G4RPGPiPlusInelastic.hh>

+ Inheritance diagram for G4RPGPiPlusInelastic:

Public Member Functions

 G4RPGPiPlusInelastic ()
 
 ~G4RPGPiPlusInelastic ()
 
G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
 
- Public Member Functions inherited from G4RPGPionInelastic
 G4RPGPionInelastic (const G4String &modelName="RPGPionInelastic")
 
 ~G4RPGPionInelastic ()
 
- 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)=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

- 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 G4RPGPionInelastic
G4int GetMultiplicityT12 (G4double KE) const
 
G4int GetMultiplicityT32 (G4double KE) const
 
std::vector< G4intGetFSPartTypesForT32 (G4int mult, G4double KE, G4int tindex) const
 
std::vector< G4intGetFSPartTypesForT12 (G4int mult, G4double KE, G4int tindex) const
 
std::vector< G4intGetFSPartTypesForPipP (G4int mult, G4double KE) const
 
std::vector< G4intGetFSPartTypesForPimN (G4int mult, G4double KE) const
 
std::vector< G4intGetFSPartTypesForPipN (G4int mult, G4double KE) const
 
std::vector< G4intGetFSPartTypesForPimP (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 G4RPGPionInelastic
static const G4int pipPindex [8][2]
 
static const G4int pimPindex [8][2]
 
static const G4int T32_2bfs [2][2][2]
 
static const G4int T32_3bfs [2][7][3]
 
static const G4int T32_4bfs [2][15][4]
 
static const G4int T32_5bfs [2][24][5]
 
static const G4int T32_6bfs [2][5][6]
 
static const G4int T32_7bfs [2][6][7]
 
static const G4int T32_8bfs [2][7][8]
 
static const G4int T32_9bfs [2][8][9]
 
static const G4int T12_2bfs [2][5][2]
 
static const G4int T12_3bfs [2][13][3]
 
static const G4int T12_4bfs [2][22][4]
 
static const G4int T12_5bfs [2][31][5]
 
static const G4int T12_6bfs [2][6][6]
 
static const G4int T12_7bfs [2][7][7]
 
static const G4int T12_8bfs [2][8][8]
 
static const G4int T12_9bfs [2][9][9]
 
static G4double pipPtot [30]
 
static G4double pimPtot [30]
 
static G4double t12_dSigma_dMult [8][30]
 
static G4double t32_dSigma_dMult [8][30]
 
static const G4float pipPCrossSections [74][30]
 
static const G4float pimPCrossSections [101][30]
 

Detailed Description

Definition at line 41 of file G4RPGPiPlusInelastic.hh.

Constructor & Destructor Documentation

◆ G4RPGPiPlusInelastic()

G4RPGPiPlusInelastic::G4RPGPiPlusInelastic ( )
inline

Definition at line 45 of file G4RPGPiPlusInelastic.hh.

45 : G4RPGPionInelastic("RPGPiPlusInelastic")
46 {}

◆ ~G4RPGPiPlusInelastic()

G4RPGPiPlusInelastic::~G4RPGPiPlusInelastic ( )
inline

Definition at line 48 of file G4RPGPiPlusInelastic.hh.

49 {}

Member Function Documentation

◆ ApplyYourself()

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

Implements G4HadronicInteraction.

Definition at line 34 of file G4RPGPiPlusInelastic.cc.

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

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