47       G4cout << 
"G4RPGAntiNeutronInelastic::ApplyYourself called" << 
G4endl;
 
   49       G4cout << 
"target material = " << targetMaterial->
GetName() << 
", ";
 
   60     modifiedOriginal = *originalIncident;
 
   66     G4double p = std::sqrt( std::abs((et-amas)*(et+amas)) );
 
   80     p = std::sqrt( std::abs((et-amas)*(et+amas)) );
 
   90     targetParticle = *originalTarget;
 
   93     G4bool incidentHasChanged = 
false;
 
   94     G4bool targetHasChanged = 
false;
 
   95     G4bool quasiElastic = 
false;
 
  105       Cascade( vec, vecLen,
 
  106                originalIncident, currentParticle, targetParticle,
 
  107                incidentHasChanged, targetHasChanged, quasiElastic );
 
  112                       originalIncident, originalTarget, modifiedOriginal,
 
  113                       targetNucleus, currentParticle, targetParticle,
 
  114                       incidentHasChanged, targetHasChanged, quasiElastic );
 
  117                  currentParticle, targetParticle,
 
  118                  incidentHasChanged );
 
  120   delete originalTarget;
 
  125 void G4RPGAntiNeutronInelastic::Cascade(
 
  131    G4bool &incidentHasChanged,
 
  148   G4double centerofmassEnergy = std::sqrt( mOriginal*mOriginal +
 
  149                                       targetMass*targetMass +
 
  150                                       2.0*targetMass*etOriginal );
 
  151   G4double availableEnergy = centerofmassEnergy-(targetMass+mOriginal);
 
  154   const G4int numMul = 1200;
 
  155   const G4int numMulA = 400;
 
  156   const G4int numSec = 60;
 
  163   G4int counter, 
nt=0, np=0, nneg=0, nz=0;
 
  170     for (i = 0; i < numMul; ++i) protmul[i] = 0.0;
 
  171     for (i = 0; i < numSec; ++i) protnorm[i] = 0.0;
 
  173     for (np = 0; np < (numSec/3); ++np) {
 
  174       for (nneg = 
std::max(0,np-2); nneg <= np; ++nneg) {
 
  175         for (nz = 0; nz < numSec/3; ++nz) {
 
  176           if (++counter < numMul) {
 
  178             if (nt > 0 && nt <= numSec) {
 
  179               protmul[counter] = 
Pmltpc(np,nneg,nz,nt,b[0],c);
 
  180               protnorm[nt-1] += protmul[counter];
 
  187     for( i=0; i<numMul; ++i )neutmul[i] = 0.0;
 
  188     for( i=0; i<numSec; ++i )neutnorm[i] = 0.0;
 
  190     for (np = 0; np < numSec/3; ++np) {
 
  191         for( nneg=
std::max(0,np-1); nneg<=(np+1); ++nneg )
 
  193           for( nz=0; nz<numSec/3; ++nz )
 
  195             if( ++counter < numMul )
 
  198               if( (nt>0) && (nt<=numSec) )
 
  200                 neutmul[counter] = 
Pmltpc(np,nneg,nz,nt,b[1],c);
 
  201                 neutnorm[nt-1] += neutmul[counter];
 
  207       for( i=0; i<numSec; ++i )
 
  209         if( protnorm[i] > 0.0 )protnorm[i] = 1.0/protnorm[i];
 
  210         if( neutnorm[i] > 0.0 )neutnorm[i] = 1.0/neutnorm[i];
 
  215       for( i=0; i<numMulA; ++i )protmulA[i] = 0.0;
 
  216       for( i=0; i<numSec; ++i )protnormA[i] = 0.0;
 
  218       for( np=1; np<(numSec/3); ++np )
 
  221         for( nz=0; nz<numSec/3; ++nz )
 
  223           if( ++counter < numMulA )
 
  226             if( nt>1 && nt<=numSec )
 
  228               protmulA[counter] = 
Pmltpc(np,nneg,nz,nt,b[0],c);
 
  229               protnormA[nt-1] += protmulA[counter];
 
  234       for( i=0; i<numMulA; ++i )neutmulA[i] = 0.0;
 
  235       for( i=0; i<numSec; ++i )neutnormA[i] = 0.0;
 
  237       for( np=0; np<numSec/3; ++np )
 
  240         for( nz=0; nz<numSec/3; ++nz )
 
  242           if( ++counter < numMulA )
 
  245             if( nt>1 && nt<=numSec )
 
  247               neutmulA[counter] = 
Pmltpc(np,nneg,nz,nt,b[1],c);
 
  248               neutnormA[nt-1] += neutmulA[counter];
 
  253       for( i=0; i<numSec; ++i )
 
  255         if( protnormA[i] > 0.0 )protnormA[i] = 1.0/protnormA[i];
 
  256         if( neutnormA[i] > 0.0 )neutnormA[i] = 1.0/neutnormA[i];
 
  269     const G4double anhl[] = {1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,0.97,0.88,
 
  270                              0.85,0.81,0.75,0.64,0.64,0.55,0.55,0.45,0.47,0.40,
 
  271                              0.39,0.36,0.33,0.10,0.01};
 
  273     if( iplab >  9 )iplab = 
G4int( (pOriginal/
GeV- 1.0)*5.0 ) + 10;
 
  274     if( iplab > 14 )iplab = 
G4int(  pOriginal/
GeV- 2.0 ) + 15;
 
  275     if( iplab > 22 )iplab = 
G4int( (pOriginal/
GeV-10.0)/10.0 ) + 23;
 
  276     if( iplab > 24 )iplab = 24;
 
  279       if( availableEnergy <= aPiPlus->GetPDGMass()/
MeV )
 
  285       const G4double supp[] = {0.,0.4,0.55,0.65,0.75,0.82,0.86,0.90,0.94,0.98};
 
  295           test = std::exp( 
std::min( expxu, 
std::max( expxl, -(1.0+b[0])*(1.0+b[0])/(2.0*c*c) ) ) );
 
  305           test = std::exp( 
std::min( expxu, 
std::max( expxl, -(1.0+b[1])*(1.0+b[1])/(2.0*c*c) ) ) );
 
  308           test = std::exp( 
std::min( expxu, 
std::max( expxl, -(-1.0+b[1])*(-1.0+b[1])/(2.0*c*c) ) ) );
 
  315           else if( ran < wp/wt )
 
  330           for( np=0; np<numSec/3 && ran>=excs; ++np )
 
  332             for( nneg=
std::max(0,np-2); nneg<=np && ran>=excs; ++nneg )
 
  334               for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
 
  336                 if( ++counter < numMul )
 
  342                     dum = (
pi/anpn)*nt*protmul[counter]*protnorm[nt-1]/(2.0*n*n);
 
  343                     if( std::fabs(dum) < 1.0 )
 
  345                       if( test >= 1.0e-10 )excs += dum*
test;
 
  364           for( np=0; np<numSec/3 && ran>=excs; ++np )
 
  366             for( nneg=
std::max(0,np-1); nneg<=(np+1) && ran>=excs; ++nneg )
 
  368               for( nz=0; nz<numSec/3 && ran>=excs; ++nz )
 
  370                 if( ++counter < numMul )
 
  373                   if( (nt>=1) && (nt<=numSec) )
 
  376                     dum = (
pi/anpn)*nt*neutmul[counter]*neutnorm[nt-1]/(2.0*n*n);
 
  377                     if( std::fabs(dum) < 1.0 )
 
  379                       if( test >= 1.0e-10 )excs += dum*
test;
 
  404              incidentHasChanged = 
true;
 
  409              targetHasChanged = 
true;
 
  415            incidentHasChanged = 
true;
 
  416            targetHasChanged = 
true;
 
  431              incidentHasChanged = 
true;
 
  432              targetHasChanged = 
true;
 
  437            incidentHasChanged = 
true;
 
  441            targetHasChanged = 
true;
 
  448       if( centerofmassEnergy <= 2*aPiPlus->GetPDGMass()/
MeV )
 
  463         for( np=1; (np<numSec/3) && (ran>=excs); ++np )
 
  466           for( nz=0; (nz<numSec/3) && (ran>=excs); ++nz )
 
  468             if( ++counter < numMulA )
 
  471               if( nt>1 && nt<=numSec )
 
  474                 dum = (
pi/anpn)*nt*protmulA[counter]*protnormA[nt-1]/(2.0*n*n);
 
  475                 if( std::fabs(dum) < 1.0 )
 
  477                   if( test >= 1.0e-10 )excs += dum*
test;
 
  489         for( np=0; (np<numSec/3) && (ran>=excs); ++np )
 
  492           for( nz=0; (nz<numSec/3) && (ran>=excs); ++nz )
 
  494             if( ++counter < numMulA )
 
  497               if( (nt>1) && (nt<=numSec) )
 
  500                 dum = (
pi/anpn)*nt*neutmulA[counter]*neutnormA[nt-1]/(2.0*n*n);
 
  501                 if( std::fabs(dum) < 1.0 )
 
  503                   if( test >= 1.0e-10 )excs += dum*
test;
 
  518       currentParticle.
SetMass( 0.0 );
 
  521     while(np+nneg+nz<3) nz++;
 
G4double EvaporationEffects(G4double kineticEnergy)
 
G4double GetTotalMomentum() const 
 
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
 
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 
 
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 
 
void SetDefinitionAndUpdateE(G4ParticleDefinition *aParticleDefinition)
 
const G4String & GetParticleName() const 
 
G4ParticleDefinition * GetDefinition() const 
 
G4double Pmltpc(G4int np, G4int nm, G4int nz, G4int n, G4double b, G4double c)
 
void SetMass(const G4double mas)
 
G4GLOB_DLL std::ostream G4cout
 
const G4ParticleDefinition * GetDefinition() const 
 
static G4AntiProton * AntiProton()
 
G4double GetKineticEnergy() const 
 
static G4Proton * Proton()
 
static G4PionPlus * PionPlus()
 
static G4Neutron * Neutron()
 
G4double GetKineticEnergy() const 
 
G4double GetPDGMass() const 
 
T max(const T t1, const T t2)
brief Return the largest of the two arguments 
 
G4double Cinema(G4double kineticEnergy)
 
T min(const T t1, const T t2)
brief Return the smallest of the two arguments 
 
G4ThreeVector GetMomentum() const 
 
G4HadFinalState theParticleChange
 
const G4Material * GetMaterial() const 
 
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)
 
G4double GetTotalMomentum() const 
 
G4double GetTotalEnergy() const