Import Geant4 0.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:09:25 +02:00
parent b97f8d0df7
commit aaa409b6ee
2922 changed files with 55107 additions and 81674 deletions
@@ -1,4 +1,4 @@
# $Id: GNUmakefile,v 2.1 1998/10/16 16:34:14 pia Exp $
# $Id: GNUmakefile,v 1.1 1999/01/07 16:13:37 gunter Exp $
# -----------------------------------------------------------
# GNUmakefile for hadronic stopping library. G.Folger 10-Dec-97
# --------------------------------------------------------------
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4AntiNeutronAnnihilationAtRest.hh,v 2.0 1998/07/02 16:36:54 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4AntiNeutronAnnihilationAtRest.hh,v 1.1 1999/01/07 16:13:37 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// ------------------------------------------------------------
// GEANT 4 class header file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4AntiProtonAnnihilationAtRest.hh,v 2.0 1998/07/02 16:36:56 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4AntiProtonAnnihilationAtRest.hh,v 1.1 1999/01/07 16:13:38 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// ------------------------------------------------------------
// GEANT 4 class header file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4DistributionGenerator.hh,v 2.1 1998/07/12 03:07:08 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4DistributionGenerator.hh,v 1.1 1999/01/07 16:13:38 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4KaonMinusAbsorption.hh,v 2.0 1998/07/02 16:36:59 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4KaonMinusAbsorption.hh,v 1.1 1999/01/07 16:13:38 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// ------------------------------------------------------------
// GEANT 4 class header file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4KaonMinusAbsorptionAtRest.hh,v 2.5 1998/10/02 17:25:44 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4KaonMinusAbsorptionAtRest.hh,v 1.1 1999/01/07 16:13:38 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4MuonMinusCaptureAtRest.hh,v 2.0 1998/07/02 16:37:02 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4MuonMinusCaptureAtRest.hh,v 1.1 1999/01/07 16:13:38 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// ------------------------------------------------------------
// GEANT 4 class header file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4NeutronCaptureAtRest.hh,v 2.0 1998/07/02 16:37:04 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4NeutronCaptureAtRest.hh,v 1.1 1999/01/07 16:13:38 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// ------------------------------------------------------------
// GEANT 4 class header file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusAbsorptionAtRest.hh,v 2.7 1998/10/01 19:29:33 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusAbsorptionAtRest.hh,v 1.1 1999/01/07 16:13:39 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopAbsorption.hh,v 2.4 1998/09/18 16:53:50 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopAbsorption.hh,v 1.2 1999/05/26 18:44:50 pia Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -76,8 +76,8 @@ private:
G4PiMinusStopMaterial* _materialAlgo; // owned pointer
G4DynamicParticleVector* _absorptionProducts;
G4double _A;
G4double _Z;
G4double _nucleusA;
G4double _nucleusZ;
G4int _level;
};
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopAl.hh,v 2.1 1998/07/12 03:07:11 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopAl.hh,v 1.1 1999/01/07 16:13:39 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopC.hh,v 2.2 1998/10/01 19:30:12 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopC.hh,v 1.1 1999/01/07 16:13:39 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopCo.hh,v 2.1 1998/07/12 03:07:12 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopCo.hh,v 1.1 1999/01/07 16:13:39 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopCu.hh,v 2.1 1998/07/12 03:07:13 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopCu.hh,v 1.1 1999/01/07 16:13:40 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopLi.hh,v 2.1 1998/07/12 03:07:14 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopLi.hh,v 1.1 1999/01/07 16:13:40 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopMaterial.hh,v 2.2 1998/09/18 16:53:51 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopMaterial.hh,v 1.1 1999/01/07 16:13:40 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopN.hh,v 2.1 1998/07/12 03:07:15 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopN.hh,v 1.1 1999/01/07 16:13:40 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopO.hh,v 2.1 1998/07/12 03:07:15 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopO.hh,v 1.1 1999/01/07 16:13:41 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopPb.hh,v 2.1 1998/07/12 03:07:16 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopPb.hh,v 1.1 1999/01/07 16:13:41 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopTa.hh,v 2.1 1998/07/12 03:07:16 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopTa.hh,v 1.1 1999/01/07 16:13:41 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PionMinusAbsorptionAtRest.hh,v 2.0 1998/07/02 16:37:26 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PionMinusAbsorptionAtRest.hh,v 1.1 1999/01/07 16:13:41 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// ------------------------------------------------------------
// GEANT 4 class header file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4StopDeexcitation.hh,v 2.3 1998/07/14 12:52:46 jwellisc Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4StopDeexcitation.hh,v 1.2 1999/04/18 11:28:56 hpw Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -28,8 +28,8 @@
#define G4STOPDEEXCITATION_HH
#include "globals.hh"
#include "G4DynamicParticle.hh"
#include "G4DynamicParticleVector.hh"
#include "G4ReactionProduct.hh"
#include "G4ReactionProductVector.hh"
#include "G4ThreeVector.hh"
#include "G4StopDeexcitationAlgorithm.hh"
@@ -45,7 +45,7 @@ public:
~G4StopDeexcitation();
// Return final absorption products
G4DynamicParticleVector* DoBreakUp(G4double A, G4double Z,
G4ReactionProductVector* DoBreakUp(G4double A, G4double Z,
G4double excitation, const G4ThreeVector& p) const;
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4StopDeexcitationAlgorithm.hh,v 2.3 1998/10/01 19:30:13 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4StopDeexcitationAlgorithm.hh,v 1.2 1999/04/18 11:28:56 hpw Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -28,8 +28,8 @@
#define G4STOPDEEXCITATIONALGORITHM_HH
#include "globals.hh"
#include "G4DynamicParticle.hh"
#include "G4DynamicParticleVector.hh"
#include "G4ReactionProduct.hh"
#include "G4ReactionProductVector.hh"
#include "G4ThreeVector.hh"
class G4StopDeexcitationAlgorithm
@@ -52,7 +52,7 @@ public:
virtual ~G4StopDeexcitationAlgorithm() {};
// Products
virtual G4DynamicParticleVector* BreakUp(G4double A, G4double Z,
virtual G4ReactionProductVector* BreakUp(G4double A, G4double Z,
G4double excitation, const G4ThreeVector& p) =0;
protected:
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4StopDummyDeexcitation.hh,v 2.2 1998/07/14 12:35:23 jwellisc Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4StopDummyDeexcitation.hh,v 1.2 1999/04/18 11:28:57 hpw Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -30,8 +30,8 @@
#include "G4StopDeexcitationAlgorithm.hh"
#include "globals.hh"
#include "G4DynamicParticle.hh"
#include "G4DynamicParticleVector.hh"
#include "G4ReactionProduct.hh"
#include "G4ReactionProductVector.hh"
#include "G4ThreeVector.hh"
class G4StopDummyDeexcitation: public G4StopDeexcitationAlgorithm
@@ -54,14 +54,14 @@ public:
virtual ~G4StopDummyDeexcitation();
// Products
virtual G4DynamicParticleVector* BreakUp(G4double A, G4double Z,
virtual G4ReactionProductVector* BreakUp(G4double A, G4double Z,
G4double excitation, const G4ThreeVector& p);
protected:
private:
G4DynamicParticleVector* _products;
G4ReactionProductVector* _products;
};
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4StopTheoDeexcitation.hh,v 2.5 1998/10/01 19:30:13 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4StopTheoDeexcitation.hh,v 1.2 1999/04/18 11:28:57 hpw Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -54,7 +54,7 @@ public:
virtual ~G4StopTheoDeexcitation();
// Products
virtual G4DynamicParticleVector* BreakUp(G4double A, G4double Z,
virtual G4ReactionProductVector* BreakUp(G4double A, G4double Z,
G4double excitation, const G4ThreeVector& p);
protected:
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4AntiNeutronAnnihilationAtRest.cc,v 2.3 1998/08/16 23:59:15 lfelawka Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4AntiNeutronAnnihilationAtRest.cc,v 1.1 1999/01/07 16:13:42 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// --------------------------------------------------------------
// GEANT 4 class implementation file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4AntiProtonAnnihilationAtRest.cc,v 2.3 1998/08/17 00:04:02 lfelawka Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4AntiProtonAnnihilationAtRest.cc,v 1.1 1999/01/07 16:13:42 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// --------------------------------------------------------------
// GEANT 4 class implementation file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4DistributionGenerator.cc,v 2.2 1998/07/13 17:26:46 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4DistributionGenerator.cc,v 1.2 1999/05/25 00:24:19 gcosmo Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -24,7 +24,7 @@
// Modifications:
// -------------------------------------------------------------------
#include "globals.hh"
#include "G4DistributionGenerator.hh"
#include "G4ios.hh"
#include <assert.h>
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4KaonMinusAbsorption.cc,v 2.4 1998/08/17 00:06:08 lfelawka Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4KaonMinusAbsorption.cc,v 1.1 1999/01/07 16:13:43 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// --------------------------------------------------------------
// GEANT 4 class implementation file --- Copyright CERN 1998
@@ -209,13 +209,13 @@ G4VParticleChange* G4KaonMinusAbsorptionAtRest::AtRestDoIt
delete nucleus;
G4DynamicParticleVector* fragmentationProducts = stopDeexcitation.DoBreakUp(newA,newZ,energyDeposit,pNucleus);
G4ReactionProductVector* fragmentationProducts = stopDeexcitation.DoBreakUp(newA,newZ,energyDeposit,pNucleus);
G4int nFragmentationProducts = 0;
if (fragmentationProducts != 0) nFragmentationProducts = fragmentationProducts->entries();
//Initialize ParticleChange
aParticleChange.Initialize(track);
aParticleChange.Initialize(track);
aParticleChange.SetNumberOfSecondaries(G4int(nAbsorptionProducts+nFragmentationProducts) );
// update List of alive particles. put energy deposit at the right place ...
@@ -223,8 +223,18 @@ G4VParticleChange* G4KaonMinusAbsorptionAtRest::AtRestDoIt
{aParticleChange.AddSecondary((*absorptionProducts)[i]); }
if (absorptionProducts != 0) delete absorptionProducts;
for (i = 0; i < nFragmentationProducts; i++)
{ aParticleChange.AddSecondary(fragmentationProducts->at(i)); }
// for (i = 0; i < nFragmentationProducts; i++)
// { aParticleChange.AddSecondary(fragmentationProducts->at(i)); }
for(i=0; i<nFragmentationProducts; i++)
{
G4DynamicParticle * aNew =
new G4DynamicParticle(fragmentationProducts->at(i)->GetDefinition(),
fragmentationProducts->at(i)->GetTotalEnergy(),
fragmentationProducts->at(i)->GetMomentum());
G4double newTime = aParticleChange.GetGlobalTime(fragmentationProducts->at(i)->GetFormationTime());
aParticleChange.AddSecondary(aNew, newTime);
delete fragmentationProducts->at(i);
}
if (fragmentationProducts != 0) delete fragmentationProducts;
// finally ...
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4MuonMinusCaptureAtRest.cc,v 2.5 1998/08/17 00:07:40 lfelawka Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4MuonMinusCaptureAtRest.cc,v 1.1 1999/01/07 16:13:44 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// --------------------------------------------------------------
// GEANT 4 class implementation file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4NeutronCaptureAtRest.cc,v 2.3 1998/08/17 00:10:19 lfelawka Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4NeutronCaptureAtRest.cc,v 1.1 1999/01/07 16:13:44 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// --------------------------------------------------------------
// GEANT 4 class implementation file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusAbsorptionAtRest.cc,v 2.8 1998/10/01 19:32:06 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusAbsorptionAtRest.cc,v 1.3 1999/05/06 14:37:01 stesting Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -130,7 +130,7 @@ G4VParticleChange* G4PiMinusAbsorptionAtRest::AtRestDoIt(const G4Track& track, c
G4double newN = A - Z - stopAbsorption.NNeutrons();
G4double newA = newZ + newN;
G4double pNucleus = (stopAbsorption.RecoilMomentum()).mag();
G4DynamicParticleVector* fragmentationProducts = stopDeexcitation.DoBreakUp(newA,newZ,excitation,pNucleus);
G4ReactionProductVector* fragmentationProducts = stopDeexcitation.DoBreakUp(newA,newZ,excitation,pNucleus);
G4int nAbsorptionProducts = 0;
if (absorptionProducts != 0)
@@ -155,8 +155,18 @@ G4VParticleChange* G4PiMinusAbsorptionAtRest::AtRestDoIt(const G4Track& track, c
for (i = 0; i<nAbsorptionProducts; i++)
{ aParticleChange.AddSecondary(absorptionProducts->at(i)); }
for (i = 0; i<nFragmentationProducts; i++)
{ aParticleChange.AddSecondary(fragmentationProducts->at(i)); }
// for (i = 0; i<nFragmentationProducts; i++)
// { aParticleChange.AddSecondary(fragmentationProducts->at(i)); }
for(i=0; i<nFragmentationProducts; i++)
{
G4DynamicParticle * aNew =
new G4DynamicParticle(fragmentationProducts->at(i)->GetDefinition(),
fragmentationProducts->at(i)->GetMomentum());
G4double newTime = aParticleChange.GetGlobalTime(fragmentationProducts->at(i)->GetFormationTime());
aParticleChange.AddSecondary(aNew, newTime);
delete fragmentationProducts->at(i);
}
if (fragmentationProducts != 0) delete fragmentationProducts;
if (_indexDeexcitation == 1) aParticleChange.SetLocalEnergyDeposit(excitation);
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopAbsorption.cc,v 2.7 1998/10/01 19:32:07 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopAbsorption.cc,v 1.3 1999/05/27 09:59:47 pia Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -32,11 +32,12 @@
#include "globals.hh"
#include "Randomize.hh"
#include "G4NucleiPropertiesTable.hh"
#include "G4NucleiProperties.hh"
#include "G4ParticleTypes.hh"
#include "G4Nucleus.hh"
#include "G4ReactionKinematics.hh"
#include "G4DynamicParticleVector.hh"
#include "G4NucleiPropertiesTable.hh"
#include "G4ParticleDefinition.hh"
#include "G4Proton.hh"
#include "G4Neutron.hh"
@@ -49,8 +50,8 @@ G4PiMinusStopAbsorption::G4PiMinusStopAbsorption(G4PiMinusStopMaterial* material
{
_materialAlgo = materialAlgo;
_Z = Z;
_A = A;
_nucleusZ = Z;
_nucleusA = A;
_level = 0;
_absorptionProducts = new G4DynamicParticleVector();
}
@@ -70,8 +71,8 @@ G4DynamicParticleVector* G4PiMinusStopAbsorption::DoAbsorption()
{
RWTPtrOrderedVector<G4ParticleDefinition>* defNucleons = _materialAlgo->DefinitionVector();
G4double newA = _A;
G4double newZ = _Z;
G4double newA = _nucleusA;
G4double newZ = _nucleusZ;
if (defNucleons != 0)
{
@@ -87,8 +88,8 @@ G4DynamicParticleVector* G4PiMinusStopAbsorption::DoAbsorption()
}
}
G4double binding = G4NucleiPropertiesTable::GetBindingEnergy(_Z,_A) / _A;
G4double mass = G4NucleiPropertiesTable::GetAtomicMass(newZ,newA);
G4double binding = G4NucleiPropertiesTable::GetBindingEnergy(_nucleusZ,_nucleusA) / _nucleusA;
G4double mass = G4NucleiProperties::GetNuclearMass(newA,newZ);
RWTPtrOrderedVector<G4LorentzVector>* p4Nucleons = _materialAlgo->P4Vector(binding,mass);
@@ -178,13 +179,13 @@ G4double G4PiMinusStopAbsorption::Energy()
if ((*_absorptionProducts)[i]->GetDefinition() == G4Proton::Proton()) nP++;
}
G4double productBinding = (G4NucleiPropertiesTable::GetBindingEnergy(_Z,_A) / _A) * nAbsorptionProducts;
G4double mass = G4NucleiPropertiesTable::GetAtomicMass(_Z - nP,_A - (nP + nN));
G4double productBinding = (G4NucleiPropertiesTable::GetBindingEnergy(_nucleusZ,_nucleusA) / _nucleusA) * nAbsorptionProducts;
G4double mass = G4NucleiProperties::GetNuclearMass(_nucleusA - (nP + nN),_nucleusZ - nP);
G4double pNucleus = pProducts.mag();
G4double eNucleus = sqrt(pNucleus*pNucleus + mass*mass);
G4double tNucleus = eNucleus - mass;
G4double temp = G4NucleiPropertiesTable::GetBindingEnergy(_Z - nP,_A - (nP + nN)) -
G4NucleiPropertiesTable::GetBindingEnergy(_Z,_A);
G4double temp = G4NucleiPropertiesTable::GetBindingEnergy(_nucleusZ - nP,_nucleusA - (nP + nN)) -
G4NucleiPropertiesTable::GetBindingEnergy(_nucleusZ,_nucleusA);
energy = productEnergy + productBinding + tNucleus;
if (_level > 0)
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopAl.cc,v 2.5 1998/09/18 16:53:58 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopAl.cc,v 1.1 1999/01/07 16:13:45 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopC.cc,v 2.5 1998/09/18 16:53:59 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopC.cc,v 1.1 1999/01/07 16:13:45 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopCo.cc,v 2.4 1998/09/18 16:54:00 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopCo.cc,v 1.1 1999/01/07 16:13:45 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopCu.cc,v 2.5 1998/09/18 16:54:00 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopCu.cc,v 1.1 1999/01/07 16:13:45 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopLi.cc,v 2.4 1998/09/18 16:54:01 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopLi.cc,v 1.1 1999/01/07 16:13:45 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopMaterial.cc,v 2.6 1998/10/01 19:32:07 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopMaterial.cc,v 1.1 1999/01/07 16:13:46 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopN.cc,v 2.5 1998/09/18 16:54:02 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopN.cc,v 1.1 1999/01/07 16:13:46 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopO.cc,v 2.5 1998/09/18 16:54:03 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopO.cc,v 1.1 1999/01/07 16:13:46 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopPb.cc,v 2.5 1998/09/18 16:54:04 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopPb.cc,v 1.1 1999/01/07 16:13:47 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PiMinusStopTa.cc,v 2.5 1998/09/18 16:54:04 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PiMinusStopTa.cc,v 1.1 1999/01/07 16:13:47 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PionMinusAbsorptionAtRest.cc,v 2.3 1998/08/17 00:13:45 lfelawka Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4PionMinusAbsorptionAtRest.cc,v 1.1 1999/01/07 16:13:47 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// --------------------------------------------------------------
// GEANT 4 class implementation file --- Copyright CERN 1998
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4StopDeexcitation.cc,v 2.2 1998/07/14 12:35:32 jwellisc Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4StopDeexcitation.cc,v 1.2 1999/04/18 11:28:59 hpw Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -33,7 +33,6 @@
#include "globals.hh"
#include "Randomize.hh"
#include "G4ParticleTypes.hh"
#include "G4DynamicParticleVector.hh"
#include "G4NucleiPropertiesTable.hh"
#include "G4ParticleDefinition.hh"
#include "G4ThreeVector.hh"
@@ -55,7 +54,7 @@ G4StopDeexcitation::~G4StopDeexcitation()
delete _algorithm;
}
G4DynamicParticleVector* G4StopDeexcitation::DoBreakUp(G4double A, G4double Z,
G4ReactionProductVector* G4StopDeexcitation::DoBreakUp(G4double A, G4double Z,
G4double excitation,
const G4ThreeVector& p) const
{
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4StopDummyDeexcitation.cc,v 2.5 1998/12/01 22:29:58 gcosmo Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4StopDummyDeexcitation.cc,v 1.2 1999/04/18 11:29:00 hpw Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -48,7 +48,7 @@ G4StopDummyDeexcitation::~G4StopDummyDeexcitation()
{
}
G4DynamicParticleVector* G4StopDummyDeexcitation::BreakUp(G4double A, G4double Z,
G4ReactionProductVector* G4StopDummyDeexcitation::BreakUp(G4double A, G4double Z,
G4double excitation,
const G4ThreeVector& p)
{
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4StopTheoDeexcitation.cc,v 2.9 1998/12/14 13:46:48 pia Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4StopTheoDeexcitation.cc,v 1.2 1999/04/18 11:29:00 hpw Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// -------------------------------------------------------------------
// GEANT 4 class file --- Copyright CERN 1998
@@ -51,7 +51,7 @@ G4StopTheoDeexcitation::G4StopTheoDeexcitation()
G4StopTheoDeexcitation::~G4StopTheoDeexcitation()
{}
G4DynamicParticleVector* G4StopTheoDeexcitation::BreakUp(G4double A, G4double Z,
G4ReactionProductVector* G4StopTheoDeexcitation::BreakUp(G4double A, G4double Z,
G4double excitation,
const G4ThreeVector& p)
{
@@ -86,7 +86,6 @@ G4DynamicParticleVector* G4StopTheoDeexcitation::BreakUp(G4double A, G4double Z,
// << theExcitedNucleus.GetMomentum().mag() << endl;
return theHandler.BreakItUp(theExcitedNucleus);
}