57     G4cout << 
"G4RPGOmegaMinusInelastic::ApplyYourself called" << 
G4endl;
 
   59     G4cout << 
"target material = " << targetMaterial->
GetName() << 
", ";
 
   76     currentParticle.SetKineticEnergy( ek );
 
   78     G4double p = std::sqrt( std::abs((et-amas)*(et+amas)) );
 
   79     G4double pp = currentParticle.GetMomentum().mag();
 
   83       currentParticle.SetMomentum( momentum * (p/pp) );
 
   90     currentParticle.SetKineticEnergy( ek );
 
   92     p = std::sqrt( std::abs((et-amas)*(et+amas)) );
 
   93     pp = currentParticle.GetMomentum().mag();
 
   97       currentParticle.SetMomentum( momentum * (p/pp) );
 
  103     targetParticle.SetSide( -1 );  
 
  104     G4bool incidentHasChanged = 
false;
 
  105     G4bool targetHasChanged = 
false;
 
  106     G4bool quasiElastic = 
false;
 
  112     if( currentParticle.GetKineticEnergy() > cutOff )
 
  113       Cascade( vec, vecLen,
 
  114                originalIncident, currentParticle, targetParticle,
 
  115                incidentHasChanged, targetHasChanged, quasiElastic );
 
  118                       originalIncident, originalTarget, modifiedOriginal,
 
  119                       targetNucleus, currentParticle, targetParticle,
 
  120                       incidentHasChanged, targetHasChanged, quasiElastic );
 
  123                  currentParticle, targetParticle,
 
  124                  incidentHasChanged );
 
  126   delete originalTarget;
 
  131 void G4RPGOmegaMinusInelastic::Cascade(
 
  137    G4bool &incidentHasChanged,
 
  154   G4double centerofmassEnergy = std::sqrt( mOriginal*mOriginal +
 
  155                                       targetMass*targetMass +
 
  156                                       2.0*targetMass*etOriginal );
 
  157   G4double availableEnergy = centerofmassEnergy-(targetMass+mOriginal);
 
  164     const G4int numMul = 1200;
 
  165     const G4int numSec = 60;
 
  169     G4int counter, nt=0, np=0, nneg=0, nz=0;
 
  172     const G4double b[] = { 0.70, 0.70 };
 
  177       for( i=0; i<numMul; ++i )protmul[i] = 0.0;
 
  178       for( i=0; i<numSec; ++i )protnorm[i] = 0.0;
 
  180       for( np=0; np<(numSec/3); ++np )
 
  182         for( nneg=
std::max(0,np-1); nneg<=(np+1); ++nneg )
 
  184           for( nz=0; nz<numSec/3; ++nz )
 
  186             if( ++counter < numMul )
 
  191                 protmul[counter] = 
Pmltpc(np,nneg,nz,nt,b[0],c);
 
  192                 protnorm[nt-1] += protmul[counter];
 
  198       for( i=0; i<numMul; ++i )neutmul[i] = 0.0;
 
  199       for( i=0; i<numSec; ++i )neutnorm[i] = 0.0;
 
  201       for( np=0; np<numSec/3; ++np )
 
  203         for( nneg=np; nneg<=(np+2); ++nneg )
 
  205           for( nz=0; nz<numSec/3; ++nz )
 
  207             if( ++counter < numMul )
 
  210               if( (nt>0) && (nt<=numSec) )
 
  212                 neutmul[counter] = 
Pmltpc(np,nneg,nz,nt,b[1],c);
 
  213                 neutnorm[nt-1] += neutmul[counter];
 
  219       for( i=0; i<numSec; ++i )
 
  221         if( protnorm[i] > 0.0 )protnorm[i] = 1.0/protnorm[i];
 
  222         if( neutnorm[i] > 0.0 )neutnorm[i] = 1.0/neutnorm[i];
 
  244       for( np=0; np<numSec/3 && ran>=excs; ++np )
 
  246         for( nneg=
std::max(0,np-1); nneg<=(np+1) && ran>=excs; ++nneg )
 
  248           for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
 
  250             if( ++counter < numMul )
 
  256                 dum = (
pi/anpn)*nt*protmul[counter]*protnorm[nt-1]/(2.0*n*n);
 
  257                 if( std::fabs(dum) < 1.0 )
 
  259                   if( test >= 1.0e-10 )excs += dum*test;
 
  278       for( np=0; np<numSec/3 && ran>=excs; ++np )
 
  280         for( nneg=np; nneg<=(np+2) && ran>=excs; ++nneg )
 
  282           for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
 
  284             if( ++counter < numMul )
 
  287               if( (nt>=1) && (nt<=numSec) )
 
  290                 dum = (
pi/anpn)*nt*neutmul[counter]*neutnorm[nt-1]/(2.0*n*n);
 
  291                 if( std::fabs(dum) < 1.0 )
 
  293                   if( test >= 1.0e-10 )excs += dum*test;
 
  329         incidentHasChanged = 
true;
 
  334         targetHasChanged = 
true;
 
  344           incidentHasChanged = 
true;
 
  350           incidentHasChanged = 
true;
 
  354         targetHasChanged = 
true;
 
  356       else if( nneg == np+1 )
 
  359         targetHasChanged = 
true;
 
  364   for (
G4int i = 0; i < vecLen && nvefix > 0; ++i) {
 
  365     if (vec[i]->GetDefinition() == aPiMinus) {
 
  366       if( nvefix >= 1 )vec[i]->SetDefinitionAndUpdateE(aKaonMinus);
 
G4double EvaporationEffects(G4double kineticEnergy)
 
void SetUpChange(G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen, G4ReactionProduct ¤tParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged)
 
void SetMomentum(const G4double x, const G4double y, const G4double z)
 
const G4String & GetName() const 
 
void SetSide(const G4int sid)
 
void CalculateMomenta(G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen, const G4HadProjectile *originalIncident, const G4DynamicParticle *originalTarget, G4ReactionProduct &modifiedOriginal, G4Nucleus &targetNucleus, G4ReactionProduct ¤tParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged, G4bool &targetHasChanged, G4bool quasiElastic)
 
G4ParticleDefinition * GetDefinition() const 
 
void Initialize(G4int items)
 
G4DynamicParticle * ReturnTargetParticle() const 
 
const G4String & GetParticleName() const 
 
static G4KaonMinus * KaonMinus()
 
void SetStatusChange(G4HadFinalStateStatus aS)
 
G4double Pmltpc(G4int np, G4int nm, G4int nz, G4int n, G4double b, G4double c)
 
static G4XiZero * XiZero()
 
const G4ParticleDefinition * GetDefinition() const 
 
G4GLOB_DLL std::ostream G4cout
 
const G4ParticleDefinition * GetDefinition() const 
 
G4double GetKineticEnergy() const 
 
static G4Proton * Proton()
 
static G4PionPlus * PionPlus()
 
void SetDefinitionAndUpdateE(const G4ParticleDefinition *aParticleDefinition)
 
static G4Neutron * Neutron()
 
const G4LorentzVector & Get4Momentum() const 
 
G4double G4Exp(G4double initial_x)
Exponential Function double precision. 
 
void SetEnergyChange(G4double anEnergy)
 
G4double GetPDGMass() const 
 
T max(const T t1, const T t2)
brief Return the largest of the two arguments 
 
G4double Cinema(G4double kineticEnergy)
 
static G4PionMinus * PionMinus()
 
T min(const T t1, const T t2)
brief Return the smallest of the two arguments 
 
G4HadFinalState theParticleChange
 
static constexpr double MeV
 
const G4Material * GetMaterial() const 
 
static constexpr double pi
 
static G4SigmaPlus * SigmaPlus()
 
void GetNormalizationConstant(const G4double availableEnergy, G4double &n, G4double &anpn)
 
void SetUpPions(const G4int np, const G4int nm, const G4int nz, G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen)
 
void SetMomentumChange(const G4ThreeVector &aV)
 
G4double GetTotalEnergy() const 
 
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)