Import Geant4 5.0.0 source tree
This commit is contained in:
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LCapture.cc,v 1.7 2001/10/05 16:11:31 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LCapture.cc,v 1.8 2002/12/12 19:18:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
//
|
||||
// G4 Model: Low-energy Neutron Capture
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
@@ -76,6 +76,7 @@
|
||||
G4double p = vec[0]->GetMomentum().mag();
|
||||
theParticleChange.SetMomentumChange( vec[0]->GetMomentum() *(1./p));
|
||||
theParticleChange.SetEnergyChange( vec[0]->GetKineticEnergy() );
|
||||
delete vec[0];
|
||||
//
|
||||
theParticleChange.SetNumberOfSecondaries( vecLen-1 );
|
||||
G4DynamicParticle *pd;
|
||||
|
||||
+7
-7
@@ -14,26 +14,26 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LEKaonZeroLInelastic.cc,v 1.7 2001/10/05 16:11:32 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LEAntiKaonZeroInelastic.cc,v 1.2 2002/12/12 19:18:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: Low Energy KaonZeroLong Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 11-Feb-1997
|
||||
// Last modified: 27-Mar-1997
|
||||
// Modified by J.L.Chuma 30-Apr-97: added originalTarget for CalculateMomenta
|
||||
|
||||
#include "G4LEKaonZeroLInelastic.hh"
|
||||
#include "G4LEAntiKaonZeroInelastic.hh"
|
||||
#include "Randomize.hh"
|
||||
|
||||
G4VParticleChange *
|
||||
G4LEKaonZeroLInelastic::ApplyYourself( const G4Track &aTrack,
|
||||
G4LEAntiKaonZeroInelastic::ApplyYourself( const G4Track &aTrack,
|
||||
G4Nucleus &targetNucleus )
|
||||
{
|
||||
theParticleChange.Initialize( aTrack );
|
||||
@@ -47,7 +47,7 @@
|
||||
if( verboseLevel > 1 )
|
||||
{
|
||||
G4Material *targetMaterial = aTrack.GetMaterial();
|
||||
G4cout << "G4LEKaonZeroLInelastic::ApplyYourself called" << G4endl;
|
||||
G4cout << "G4LEAntiKaonZeroInelastic::ApplyYourself called" << G4endl;
|
||||
G4cout << "kinetic energy = " << originalIncident->GetKineticEnergy()/MeV << "MeV, ";
|
||||
G4cout << "target material = " << targetMaterial->GetName() << ", ";
|
||||
G4cout << "target particle = " << originalTarget->GetDefinition()->GetParticleName()
|
||||
@@ -119,7 +119,7 @@
|
||||
}
|
||||
|
||||
void
|
||||
G4LEKaonZeroLInelastic::Cascade(
|
||||
G4LEAntiKaonZeroInelastic::Cascade(
|
||||
G4FastVector<G4ReactionProduct,128> &vec,
|
||||
G4int& vecLen,
|
||||
const G4DynamicParticle *originalIncident,
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LEAntiLambdaInelastic.cc,v 1.4 2001/08/01 17:10:59 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LEAntiLambdaInelastic.cc,v 1.5 2002/12/12 19:18:07 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: AntiLambda Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 19-Feb-1997
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LEAntiNeutronInelastic.cc,v 1.7 2002/06/17 11:34:49 jwellisc Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LEAntiNeutronInelastic.cc,v 1.8 2002/12/12 19:18:07 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: AntiNeutron Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 18-Feb-1997
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LEAntiOmegaMinusInelastic.cc,v 1.5 2001/10/05 16:11:31 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LEAntiOmegaMinusInelastic.cc,v 1.6 2002/12/12 19:18:07 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: AntiOmegaMinus Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 20-Feb-1997
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LEAntiProtonInelastic.cc,v 1.7 2002/06/17 11:34:49 jwellisc Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LEAntiProtonInelastic.cc,v 1.8 2002/12/12 19:18:07 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: AntiProton Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 13-Feb-1997
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LEAntiSigmaMinusInelastic.cc,v 1.4 2001/08/01 17:11:02 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LEAntiSigmaMinusInelastic.cc,v 1.5 2002/12/12 19:18:07 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: AntiSigmaMinus Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 19-Feb-1997
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LEAntiSigmaPlusInelastic.cc,v 1.4 2001/08/01 17:11:03 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LEAntiSigmaPlusInelastic.cc,v 1.5 2002/12/12 19:18:07 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: AntiSigmaPlus Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 19-Feb-1997
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LEAntiXiMinusInelastic.cc,v 1.4 2001/08/01 17:11:04 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LEAntiXiMinusInelastic.cc,v 1.5 2002/12/12 19:18:07 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: AntiXiMinus Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 20-Feb-1997
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LEAntiXiZeroInelastic.cc,v 1.4 2001/08/01 17:11:04 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LEAntiXiZeroInelastic.cc,v 1.5 2002/12/12 19:18:07 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: AntiXiZero Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 20-Feb-1997
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
@@ -76,6 +76,7 @@
|
||||
G4double p = vec[0]->GetMomentum().mag();
|
||||
theParticleChange.SetMomentumChange( vec[0]->GetMomentum() * (1.0/p) );
|
||||
theParticleChange.SetEnergyChange( vec[0]->GetKineticEnergy() );
|
||||
delete vec[0];
|
||||
//
|
||||
theParticleChange.SetNumberOfSecondaries( vecLen-1 );
|
||||
G4DynamicParticle *pd;
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LEKaonMinusInelastic.cc,v 1.8 2002/06/07 15:30:55 jwellisc Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LEKaonMinusInelastic.cc,v 1.9 2002/12/12 19:18:07 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: Low Energy KaonMinus Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 12-Feb-1997
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LEKaonPlusInelastic.cc,v 1.6 2001/10/05 16:11:32 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LEKaonPlusInelastic.cc,v 1.7 2002/12/12 19:18:07 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: Low Energy KaonPlus Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 05-Feb-1997
|
||||
|
||||
+7
-7
@@ -14,26 +14,26 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LEKaonZeroSInelastic.cc,v 1.5 2001/08/01 17:11:09 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LEKaonZeroInelastic.cc,v 1.3 2002/12/12 19:18:07 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: Low Energy KaonZeroShort Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 11-Feb-1997
|
||||
// Last modified: 27-Mar-1997
|
||||
// Modified by J.L.Chuma 30-Apr-97: added originalTarget for CalculateMomenta
|
||||
|
||||
#include "G4LEKaonZeroSInelastic.hh"
|
||||
#include "G4LEKaonZeroInelastic.hh"
|
||||
#include "Randomize.hh"
|
||||
|
||||
G4VParticleChange *
|
||||
G4LEKaonZeroSInelastic::ApplyYourself( const G4Track &aTrack,
|
||||
G4LEKaonZeroInelastic::ApplyYourself( const G4Track &aTrack,
|
||||
G4Nucleus &targetNucleus )
|
||||
{
|
||||
theParticleChange.Initialize( aTrack );
|
||||
@@ -47,7 +47,7 @@
|
||||
if( verboseLevel > 1 )
|
||||
{
|
||||
G4Material *targetMaterial = aTrack.GetMaterial();
|
||||
G4cout << "G4LEKaonZeroSInelastic::ApplyYourself called" << G4endl;
|
||||
G4cout << "G4LEKaonZeroInelastic::ApplyYourself called" << G4endl;
|
||||
G4cout << "kinetic energy = " << originalIncident->GetKineticEnergy()/MeV << "MeV, ";
|
||||
G4cout << "target material = " << targetMaterial->GetName() << ", ";
|
||||
G4cout << "target particle = " << originalTarget->GetDefinition()->GetParticleName()
|
||||
@@ -119,7 +119,7 @@
|
||||
}
|
||||
|
||||
void
|
||||
G4LEKaonZeroSInelastic::Cascade(
|
||||
G4LEKaonZeroInelastic::Cascade(
|
||||
G4FastVector<G4ReactionProduct,128> &vec,
|
||||
G4int& vecLen,
|
||||
const G4DynamicParticle *originalIncident,
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LELambdaInelastic.cc,v 1.4 2001/08/01 17:11:09 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LELambdaInelastic.cc,v 1.5 2002/12/12 19:18:07 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: Lambda Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 18-Feb-1997
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LEOmegaMinusInelastic.cc,v 1.5 2001/10/05 16:11:32 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LEOmegaMinusInelastic.cc,v 1.6 2002/12/12 19:18:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: OmegaMinus Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 20-Feb-1997
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
@@ -150,11 +150,6 @@
|
||||
targetMass*targetMass +
|
||||
2.0*targetMass*etOriginal );
|
||||
G4double availableEnergy = centerofmassEnergy-(targetMass+mOriginal);
|
||||
if( availableEnergy <= G4PionMinus::PionMinus()->GetPDGMass() )
|
||||
{
|
||||
quasiElastic = true;
|
||||
return;
|
||||
}
|
||||
static G4bool first = true;
|
||||
const G4int numMul = 1200;
|
||||
const G4int numSec = 60;
|
||||
@@ -243,9 +238,14 @@
|
||||
incidentHasChanged = true;
|
||||
targetHasChanged = true;
|
||||
}
|
||||
else quasiElastic = true;
|
||||
}
|
||||
|
||||
if( availableEnergy <= G4PionMinus::PionMinus()->GetPDGMass() )
|
||||
{
|
||||
quasiElastic = true;
|
||||
return;
|
||||
}
|
||||
|
||||
nm = np = nz = 0;
|
||||
if( targetParticle.GetDefinition() == aProton )
|
||||
{
|
||||
@@ -279,6 +279,11 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
if( availableEnergy <= G4PionMinus::PionMinus()->GetPDGMass() )
|
||||
{
|
||||
quasiElastic = true;
|
||||
return;
|
||||
}
|
||||
G4double n, anpn;
|
||||
GetNormalizationConstant( availableEnergy, n, anpn );
|
||||
G4double ran = G4UniformRand();
|
||||
|
||||
@@ -14,20 +14,21 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LEPionPlusInelastic.cc,v 1.6 2001/10/05 16:11:32 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LEPionPlusInelastic.cc,v 1.8 2002/12/12 19:18:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: PionPlus Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 19-Nov-1996
|
||||
// Last modified: 27-Mar-1997
|
||||
// Modified by J.L.Chuma 30-Apr-97: added originalTarget for CalculateMomenta
|
||||
// fixing charge exchange - HPW Sep 2002.
|
||||
|
||||
#include "G4LEPionPlusInelastic.hh"
|
||||
#include "Randomize.hh"
|
||||
@@ -146,16 +147,12 @@
|
||||
//
|
||||
const G4double mOriginal = originalIncident->GetDefinition()->GetPDGMass();
|
||||
const G4double etOriginal = originalIncident->GetTotalEnergy();
|
||||
const G4double pOriginal = originalIncident->GetTotalMomentum();
|
||||
const G4double targetMass = targetParticle.GetMass();
|
||||
G4double centerofmassEnergy = sqrt( mOriginal*mOriginal +
|
||||
targetMass*targetMass +
|
||||
2.0*targetMass*etOriginal );
|
||||
G4double availableEnergy = centerofmassEnergy-(targetMass+mOriginal);
|
||||
if( availableEnergy <= G4PionPlus::PionPlus()->GetPDGMass() )
|
||||
{
|
||||
quasiElastic = true;
|
||||
return;
|
||||
}
|
||||
static G4bool first = true;
|
||||
const G4int numMul = 1200;
|
||||
const G4int numSec = 60;
|
||||
@@ -218,6 +215,26 @@
|
||||
{
|
||||
// suppress high multiplicity events at low momentum
|
||||
// only one pion will be produced
|
||||
// charge exchange reaction is included in inelastic cross section
|
||||
|
||||
const G4double cech[] = {1.,0.95,0.79,0.32,0.19,0.16,0.14,0.12,0.10,0.08};
|
||||
G4int iplab = G4int(G4std::min( 9.0, pOriginal/GeV*5.0 ));
|
||||
if( G4UniformRand() <= cech[iplab] )
|
||||
{
|
||||
if( targetParticle.GetDefinition() == aNeutron )
|
||||
{
|
||||
currentParticle.SetDefinitionAndUpdateE( aPiZero ); // charge exchange
|
||||
targetParticle.SetDefinitionAndUpdateE( aProton );
|
||||
incidentHasChanged = true;
|
||||
targetHasChanged = true;
|
||||
}
|
||||
}
|
||||
|
||||
if( availableEnergy <= G4PionMinus::PionMinus()->GetPDGMass() )
|
||||
{
|
||||
quasiElastic = true;
|
||||
return;
|
||||
}
|
||||
|
||||
nm = np = nz = 0;
|
||||
if( targetParticle.GetDefinition() == aProton ) {
|
||||
@@ -245,6 +262,11 @@
|
||||
nm = 1;
|
||||
}
|
||||
} else {
|
||||
if( availableEnergy <= G4PionMinus::PionMinus()->GetPDGMass() )
|
||||
{
|
||||
quasiElastic = true;
|
||||
return;
|
||||
}
|
||||
G4double n, anpn;
|
||||
GetNormalizationConstant( availableEnergy, n, anpn );
|
||||
G4double ran = G4UniformRand();
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LESigmaMinusInelastic.cc,v 1.4 2001/08/01 17:11:14 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LESigmaMinusInelastic.cc,v 1.5 2002/12/12 19:18:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: SigmaMinus Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 19-Feb-1997
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LESigmaPlusInelastic.cc,v 1.4 2001/08/01 17:11:15 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LESigmaPlusInelastic.cc,v 1.5 2002/12/12 19:18:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: SigmaPlus Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 19-Feb-1997
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
@@ -76,6 +76,7 @@
|
||||
G4double p = vec[0]->GetMomentum().mag();
|
||||
theParticleChange.SetMomentumChange( vec[0]->GetMomentum()*(1./p) );
|
||||
theParticleChange.SetEnergyChange( vec[0]->GetKineticEnergy() );
|
||||
delete vec[0];
|
||||
//
|
||||
theParticleChange.SetNumberOfSecondaries( vecLen-1 );
|
||||
G4DynamicParticle *pd;
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LEXiMinusInelastic.cc,v 1.4 2001/08/01 17:11:17 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LEXiMinusInelastic.cc,v 1.5 2002/12/12 19:18:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: XiMinus Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 20-Feb-1997
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LEXiZeroInelastic.cc,v 1.4 2001/08/01 17:11:17 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LEXiZeroInelastic.cc,v 1.5 2002/12/12 19:18:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Hadronic Process: XiZero Inelastic Process
|
||||
// J.L. Chuma, TRIUMF, 20-Feb-1997
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LElastic.cc,v 1.6 2001/10/05 16:11:32 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LElastic.cc,v 1.7 2002/12/12 19:18:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
// Physics model class G4LElastic
|
||||
//
|
||||
|
||||
@@ -14,15 +14,15 @@
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * authors in the GEANT4 collaboration. *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LFission.cc,v 1.8 2001/10/05 16:11:32 hpw Exp $
|
||||
// GEANT4 tag $Name: geant4-04-01 $
|
||||
// $Id: G4LFission.cc,v 1.9 2002/12/12 19:18:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-00 $
|
||||
//
|
||||
//
|
||||
// G4 Model: Low Energy Fission
|
||||
|
||||
Reference in New Issue
Block a user