55 G4cout <<
"G4RPGAntiSigmaPlusInelastic::ApplyYourself called" <<
G4endl;
57 G4cout <<
"target material = " << targetMaterial->
GetName() <<
", ";
68 modifiedOriginal = *originalIncident;
74 G4double p = std::sqrt( std::abs((et-amas)*(et+amas)) );
88 p = std::sqrt( std::abs((et-amas)*(et+amas)) );
97 targetParticle = *originalTarget;
100 G4bool incidentHasChanged =
false;
101 G4bool targetHasChanged =
false;
102 G4bool quasiElastic =
false;
111 originalIncident, currentParticle, targetParticle,
112 incidentHasChanged, targetHasChanged, quasiElastic );
115 originalIncident, originalTarget, modifiedOriginal,
116 targetNucleus, currentParticle, targetParticle,
117 incidentHasChanged, targetHasChanged, quasiElastic );
120 currentParticle, targetParticle,
121 incidentHasChanged );
123 delete originalTarget;
134 G4bool &incidentHasChanged,
151 G4double centerofmassEnergy = std::sqrt( mOriginal*mOriginal +
152 targetMass*targetMass +
153 2.0*targetMass*etOriginal );
154 G4double availableEnergy = centerofmassEnergy-(targetMass+mOriginal);
157 const G4int numMul = 1200;
158 const G4int numMulA = 400;
159 const G4int numSec = 60;
165 G4int counter, nt=0, np=0, nneg=0, nz=0;
173 for( i=0; i<numMul; ++i )protmul[i] = 0.0;
174 for( i=0; i<numSec; ++i )protnorm[i] = 0.0;
176 for( np=0; np<(numSec/3); ++np )
178 for( nneg=
std::max(0,np-1); nneg<=(np+1); ++nneg )
180 for( nz=0; nz<numSec/3; ++nz )
182 if( ++counter < numMul )
185 if( nt>0 && nt<=numSec )
187 protmul[counter] =
Pmltpc(np,nneg,nz,nt,b[0],c);
188 protnorm[nt-1] += protmul[counter];
194 for( i=0; i<numMul; ++i )neutmul[i] = 0.0;
195 for( i=0; i<numSec; ++i )neutnorm[i] = 0.0;
197 for( np=0; np<numSec/3; ++np )
199 for( nneg=np; nneg<=(np+2); ++nneg )
201 for( nz=0; nz<numSec/3; ++nz )
203 if( ++counter < numMul )
206 if( nt>0 && nt<=numSec )
208 neutmul[counter] =
Pmltpc(np,nneg,nz,nt,b[1],c);
209 neutnorm[nt-1] += neutmul[counter];
215 for( i=0; i<numSec; ++i )
217 if( protnorm[i] > 0.0 )protnorm[i] = 1.0/protnorm[i];
218 if( neutnorm[i] > 0.0 )neutnorm[i] = 1.0/neutnorm[i];
223 for( i=0; i<numMulA; ++i )protmulA[i] = 0.0;
224 for( i=0; i<numSec; ++i )protnormA[i] = 0.0;
226 for( np=1; np<(numSec/3); ++np )
229 for( nz=0; nz<numSec/3; ++nz )
231 if( ++counter < numMulA )
234 if( nt>1 && nt<=numSec )
236 protmulA[counter] =
Pmltpc(np,nneg,nz,nt,b[0],c);
237 protnormA[nt-1] += protmulA[counter];
242 for( i=0; i<numMulA; ++i )neutmulA[i] = 0.0;
243 for( i=0; i<numSec; ++i )neutnormA[i] = 0.0;
245 for( np=0; np<numSec/3; ++np )
248 for( nz=0; nz<numSec/3; ++nz )
250 if( ++counter < numMulA )
253 if( nt>1 && nt<=numSec )
255 neutmulA[counter] =
Pmltpc(np,nneg,nz,nt,b[1],c);
256 neutnormA[nt-1] += neutmulA[counter];
261 for( i=0; i<numSec; ++i )
263 if( protnormA[i] > 0.0 )protnormA[i] = 1.0/protnormA[i];
264 if( neutnormA[i] > 0.0 )neutnormA[i] = 1.0/neutnormA[i];
278 const G4double anhl[] = {1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,0.97,0.88,
279 0.85,0.81,0.75,0.64,0.64,0.55,0.55,0.45,0.47,0.40,
280 0.39,0.36,0.33,0.10,0.01};
282 if( iplab > 9 )iplab =
G4int( (pOriginal/
GeV- 1.0)*5.0 ) + 10;
283 if( iplab > 14 )iplab =
G4int( pOriginal/
GeV- 2.0 ) + 15;
284 if( iplab > 22 )iplab =
G4int( (pOriginal/
GeV-10.0)/10.0 ) + 23;
285 if( iplab > 24 )iplab = 24;
288 if( availableEnergy <= aPiPlus->GetPDGMass()/
MeV )
300 for( np=0; np<numSec/3 && ran>=excs; ++np )
302 for( nneg=
std::max(0,np-1); nneg<=(np+1) && ran>=excs; ++nneg )
304 for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
306 if( ++counter < numMul )
309 if( (nt>0) && (nt<=numSec) )
312 dum = (
pi/anpn)*nt*protmul[counter]*protnorm[nt-1]/(2.0*n*n);
313 if( std::fabs(dum) < 1.0 )
315 if( test >= 1.0
e-10 )excs += dum*test;
338 incidentHasChanged =
true;
347 incidentHasChanged =
true;
350 targetHasChanged =
true;
354 targetHasChanged =
true;
361 for( np=0; np<numSec/3 && ran>=excs; ++np )
363 for( nneg=np; nneg<=(np+2) && ran>=excs; ++nneg )
365 for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
367 if( ++counter < numMul )
370 if( (nt>0) && (nt<=numSec) )
373 dum = (
pi/anpn)*nt*neutmul[counter]*neutnorm[nt-1]/(2.0*n*n);
374 if( std::fabs(dum) < 1.0 )
376 if( test >= 1.0
e-10 )excs += dum*test;
399 incidentHasChanged =
true;
401 targetHasChanged =
true;
409 incidentHasChanged =
true;
414 targetHasChanged =
true;
422 incidentHasChanged =
true;
427 targetHasChanged =
true;
438 if( centerofmassEnergy <= aPiPlus->GetPDGMass()/
MeV+aKaonPlus->
GetPDGMass()/
MeV )
450 for( np=1; np<numSec/3 && ran>=excs; ++np )
453 for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
455 if( ++counter < numMulA )
458 if( nt>1 && nt<=numSec )
461 dum = (
pi/anpn)*nt*protmulA[counter]*protnormA[nt-1]/(2.0*n*n);
462 if( std::fabs(dum) < 1.0 )
464 if( test >= 1.0
e-10 )excs += dum*test;
482 for( np=0; np<numSec/3 && ran>=excs; ++np )
485 for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
487 if( ++counter < numMulA )
490 if( nt>1 && nt<=numSec )
493 dum = (
pi/anpn)*nt*neutmulA[counter]*neutnormA[nt-1]/(2.0*n*n);
494 if( std::fabs(dum) < 1.0 )
496 if( test >= 1.0
e-10 )excs += dum*test;
556 currentParticle.
SetMass( 0.0 );
void Initialize(G4int items)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
T max(const T t1, const T t2)
brief Return the largest of the two arguments
void SetUpChange(G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen, G4ReactionProduct ¤tParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged)
static constexpr double MeV
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
G4double Cinema(G4double kineticEnergy)
void SetMomentumChange(const G4ThreeVector &aV)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
void SetMomentum(const G4double x, const G4double y, const G4double z)
void SetDefinitionAndUpdateE(const G4ParticleDefinition *aParticleDefinition)
const G4String & GetParticleName() const
static G4PionPlus * PionPlus()
void GetNormalizationConstant(const G4double availableEnergy, G4double &n, G4double &anpn)
G4double GetTotalMomentum() const
const G4ParticleDefinition * GetDefinition() const
static G4Proton * Proton()
G4double GetTotalEnergy() const
static G4KaonMinus * KaonMinus()
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)
G4double GetPDGMass() const
static G4KaonPlus * KaonPlus()
G4DynamicParticle * ReturnTargetParticle() const
void SetMass(const G4double mas)
const G4String & GetName() const
void SetEnergyChange(G4double anEnergy)
G4double Pmltpc(G4int np, G4int nm, G4int nz, G4int n, G4double b, G4double c)
static G4KaonZeroLong * KaonZeroLong()
void SetKineticEnergy(const G4double en)
G4double GetKineticEnergy() const
G4ParticleDefinition * GetDefinition() const
const G4Material * GetMaterial() const
G4double GetTotalMomentum() const
void SetUpPions(const G4int np, const G4int nm, const G4int nz, G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen)
G4ThreeVector GetMomentum() const
void SetSide(const G4int sid)
static G4AntiSigmaZero * AntiSigmaZero()
const G4LorentzVector & Get4Momentum() const
G4double GetKineticEnergy() const
void SetElement(G4int anIndex, Type *anElement)
const G4ParticleDefinition * GetDefinition() const
static G4Neutron * Neutron()
G4GLOB_DLL std::ostream G4cout
void Cascade(G4FastVector< G4ReactionProduct, GHADLISTSIZE > &vec, G4int &vecLen, const G4HadProjectile *originalIncident, G4ReactionProduct ¤tParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged, G4bool &targetHasChanged, G4bool &quasiElastic)
static constexpr double pi
G4double EvaporationEffects(G4double kineticEnergy)
static constexpr double GeV
G4HadFinalState theParticleChange
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
void SetStatusChange(G4HadFinalStateStatus aS)
static G4AntiLambda * AntiLambda()