48 G4cout <<
"G4RPGAntiLambdaInelastic::ApplyYourself called" <<
G4endl;
50 G4cout <<
"target material = " << targetMaterial->
GetName() <<
", ";
61 modifiedOriginal = *originalIncident;
67 G4double p = std::sqrt( std::abs((et-amas)*(et+amas)) );
81 p = std::sqrt( std::abs((et-amas)*(et+amas)) );
91 targetParticle = *originalTarget;
94 G4bool incidentHasChanged =
false;
95 G4bool targetHasChanged =
false;
96 G4bool quasiElastic =
false;
104 Cascade( vec, vecLen,
105 originalIncident, currentParticle, targetParticle,
106 incidentHasChanged, targetHasChanged, quasiElastic );
109 originalIncident, originalTarget, modifiedOriginal,
110 targetNucleus, currentParticle, targetParticle,
111 incidentHasChanged, targetHasChanged, quasiElastic );
114 currentParticle, targetParticle,
115 incidentHasChanged );
117 delete originalTarget;
122 void G4RPGAntiLambdaInelastic::Cascade(
128 G4bool &incidentHasChanged,
145 G4double centerofmassEnergy = std::sqrt( mOriginal*mOriginal +
146 targetMass*targetMass +
147 2.0*targetMass*etOriginal );
148 G4double availableEnergy = centerofmassEnergy-(targetMass+mOriginal);
151 const G4int numMul = 1200;
152 const G4int numMulA = 400;
153 const G4int numSec = 60;
159 G4int nt=0, np=0, nneg=0, nz=0;
167 for( i=0; i<numMul; ++i )protmul[i] = 0.0;
168 for( i=0; i<numSec; ++i )protnorm[i] = 0.0;
170 for( np=0; np<(numSec/3); ++np )
172 for( nneg=
std::max(0,np-2); nneg<=(np+1); ++nneg )
174 for( nz=0; nz<numSec/3; ++nz )
176 if( ++counter < numMul )
179 if( nt>0 && nt<=numSec )
181 protmul[counter] =
Pmltpc(np,nneg,nz,nt,b[0],c);
182 protnorm[nt-1] += protmul[counter];
188 for( i=0; i<numMul; ++i )neutmul[i] = 0.0;
189 for( i=0; i<numSec; ++i )neutnorm[i] = 0.0;
191 for( np=0; np<numSec/3; ++np )
193 for( nneg=
std::max(0,np-1); nneg<=(np+2); ++nneg )
195 for( nz=0; nz<numSec/3; ++nz )
197 if( ++counter < numMul )
200 if( nt>0 && nt<=numSec )
202 neutmul[counter] =
Pmltpc(np,nneg,nz,nt,b[1],c);
203 neutnorm[nt-1] += neutmul[counter];
209 for( i=0; i<numSec; ++i )
211 if( protnorm[i] > 0.0 )protnorm[i] = 1.0/protnorm[i];
212 if( neutnorm[i] > 0.0 )neutnorm[i] = 1.0/neutnorm[i];
217 for( i=0; i<numMulA; ++i )protmulA[i] = 0.0;
218 for( i=0; i<numSec; ++i )protnormA[i] = 0.0;
220 for( np=1; np<(numSec/3); ++np )
223 for( nz=0; nz<numSec/3; ++nz )
225 if( ++counter < numMulA )
228 if( nt>1 && nt<=numSec )
230 protmulA[counter] =
Pmltpc(np,nneg,nz,nt,b[0],c);
231 protnormA[nt-1] += protmulA[counter];
236 for( i=0; i<numMulA; ++i )neutmulA[i] = 0.0;
237 for( i=0; i<numSec; ++i )neutnormA[i] = 0.0;
239 for( np=0; np<numSec/3; ++np )
242 for( nz=0; nz<numSec/3; ++nz )
244 if( ++counter < numMulA )
247 if( nt>1 && nt<=numSec )
249 neutmulA[counter] =
Pmltpc(np,nneg,nz,nt,b[1],c);
250 neutnormA[nt-1] += neutmulA[counter];
255 for( i=0; i<numSec; ++i )
257 if( protnormA[i] > 0.0 )protnormA[i] = 1.0/protnormA[i];
258 if( neutnormA[i] > 0.0 )neutnormA[i] = 1.0/neutnormA[i];
275 const G4double anhl[] = {1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,0.97,0.88,
276 0.85,0.81,0.75,0.64,0.64,0.55,0.55,0.45,0.47,0.40,
277 0.39,0.36,0.33,0.10,0.01};
279 if( iplab > 9 )iplab =
G4int( (pOriginal- 1.0)*5.0 ) + 10;
280 if( iplab > 14 )iplab =
G4int( pOriginal- 2.0 ) + 15;
281 if( iplab > 22 )iplab =
G4int( (pOriginal-10.0)/10.0 ) + 23;
282 if( iplab > 24 )iplab = 24;
285 if( availableEnergy <= aPiPlus->GetPDGMass()/
MeV )
297 for( np=0; np<numSec/3 && ran>=excs; ++np )
299 for( nneg=
std::max(0,np-2); nneg<=(np+1) && ran>=excs; ++nneg )
301 for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
303 if( ++counter < numMul )
306 if( nt>0 && nt<=numSec )
309 dum = (
pi/anpn)*nt*protmul[counter]*protnorm[nt-1]/(2.0*n*n);
310 if( std::fabs(dum) < 1.0 )
312 if( test >= 1.0e-10 )excs += dum*test;
332 incidentHasChanged =
true;
340 incidentHasChanged =
true;
345 incidentHasChanged =
true;
347 targetHasChanged =
true;
355 incidentHasChanged =
true;
357 targetHasChanged =
true;
367 incidentHasChanged =
true;
369 targetHasChanged =
true;
374 incidentHasChanged =
true;
382 targetHasChanged =
true;
387 incidentHasChanged =
true;
393 incidentHasChanged =
true;
395 targetHasChanged =
true;
402 for( np=0; np<numSec/3 && ran>=excs; ++np )
404 for( nneg=
std::max(0,np-1); nneg<=(np+2) && ran>=excs; ++nneg )
406 for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
408 if( ++counter < numMul )
411 if( nt>0 && nt<=numSec )
414 dum = (
pi/anpn)*nt*neutmul[counter]*neutnorm[nt-1]/(2.0*n*n);
415 if( std::fabs(dum) < 1.0 )
417 if( test >= 1.0e-10 )excs += dum*test;
437 incidentHasChanged =
true;
439 targetHasChanged =
true;
447 incidentHasChanged =
true;
449 targetHasChanged =
true;
454 incidentHasChanged =
true;
462 targetHasChanged =
true;
467 incidentHasChanged =
true;
477 incidentHasChanged =
true;
482 incidentHasChanged =
true;
484 targetHasChanged =
true;
492 incidentHasChanged =
true;
494 targetHasChanged =
true;
500 incidentHasChanged =
true;
507 if( centerofmassEnergy <= aPiPlus->GetPDGMass()/
MeV+aKaonPlus->
GetPDGMass()/
MeV )
522 for( np=1; np<numSec/3 && ran>=excs; ++np )
525 for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
527 if( ++counter < numMulA )
530 if( nt>1 && nt<=numSec )
533 dum = (
pi/anpn)*nt*protmulA[counter]*protnormA[nt-1]/(2.0*n*n);
534 if( std::fabs(dum) < 1.0 )
536 if( test >= 1.0e-10 )excs += dum*test;
548 for( np=0; np<numSec/3 && ran>=excs; ++np )
551 for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
553 if( ++counter < numMulA )
556 if( nt>1 && nt<=numSec )
559 dum = (
pi/anpn)*nt*neutmulA[counter]*neutnormA[nt-1]/(2.0*n*n);
560 if( std::fabs(dum) < 1.0 )
562 if( test >= 1.0e-10 )excs += dum*test;
577 currentParticle.
SetMass( 0.0 );
581 if( currentParticle.
GetMass() == 0.0 )
587 for(
G4int i=0; i<vecLen; ++i )
589 if( vec[i]->GetDefinition() == aPiMinus )
591 vec[i]->SetDefinitionAndUpdateE( aKaonMinus );
601 for(
G4int i=0; i<vecLen; ++i )
603 if( vec[i]->GetDefinition() == aPiZero )
605 vec[i]->SetDefinitionAndUpdateE( aKaonZL );
616 for(
G4int i=0; i<vecLen; ++i )
618 if( vec[i]->GetDefinition() == aPiMinus )
620 vec[i]->SetDefinitionAndUpdateE( aKaonMinus );
628 for(
G4int i=0; i<vecLen; ++i )
630 if( vec[i]->GetDefinition() == aPiZero )
632 vec[i]->SetDefinitionAndUpdateE( aKaonZL );
G4double EvaporationEffects(G4double kineticEnergy)
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
G4double GetTotalMomentum() const
void SetUpChange(G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen, G4ReactionProduct ¤tParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged)
void SetKineticEnergy(const G4double en)
void SetMomentum(const G4double x, const G4double y, const G4double z)
const G4String & GetName() const
static G4KaonZeroLong * KaonZeroLong()
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
static G4AntiSigmaPlus * AntiSigmaPlus()
void Initialize(G4int items)
G4DynamicParticle * ReturnTargetParticle() const
const G4String & GetParticleName() const
static G4KaonMinus * KaonMinus()
G4double Pmltpc(G4int np, G4int nm, G4int nz, G4int n, G4double b, G4double c)
static G4AntiSigmaMinus * AntiSigmaMinus()
const G4ParticleDefinition * GetDefinition() const
void SetMass(const G4double mas)
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()
static G4PionZero * PionZero()
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
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()
static G4AntiSigmaZero * AntiSigmaZero()
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
static constexpr double GeV
G4ThreeVector GetMomentum() const
G4HadFinalState theParticleChange
static constexpr double MeV
const G4Material * GetMaterial() const
static constexpr double pi
void GetNormalizationConstant(const G4double availableEnergy, G4double &n, G4double &anpn)
static G4KaonPlus * KaonPlus()
void SetUpPions(const G4int np, const G4int nm, const G4int nz, G4FastVector< G4ReactionProduct, 256 > &vec, G4int &vecLen)
G4double GetTotalMomentum() const
G4double GetTotalEnergy() const