Import Geant4 2.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:42:07 +02:00
parent 103bda00c8
commit e7d7193284
3106 changed files with 171117 additions and 90550 deletions
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4CrossSectionDataStore.hh,v 1.1.10.1 1999/12/07 20:51:27 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// $Id: G4CrossSectionDataStore.hh,v 1.2 1999/12/15 14:52:06 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// GEANT4 physics class: G4CrossSectionDataStore -- header file
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4HadronCaptureDataSet.hh,v 1.1.10.1 1999/12/07 20:51:27 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// $Id: G4HadronCaptureDataSet.hh,v 1.2 1999/12/15 14:52:06 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// GEANT4 physics class: G4HadronCaptureDataSet -- header file
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4HadronCrossSections.hh,v 1.2.4.1 1999/12/07 20:51:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// $Id: G4HadronCrossSections.hh,v 1.3 1999/12/15 14:52:06 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// GEANT4 Hadron physics class -- header file
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4HadronElasticDataSet.hh,v 1.1.10.1 1999/12/07 20:51:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// $Id: G4HadronElasticDataSet.hh,v 1.2 1999/12/15 14:52:06 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// GEANT4 physics class: G4HadronElasticDataSet -- header file
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4HadronFissionDataSet.hh,v 1.1.10.1 1999/12/07 20:51:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// $Id: G4HadronFissionDataSet.hh,v 1.2 1999/12/15 14:52:06 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// GEANT4 physics class: G4HadronFissionDataSet -- header file
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4HadronInelasticDataSet.hh,v 1.1.10.1 1999/12/07 20:51:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// $Id: G4HadronInelasticDataSet.hh,v 1.2 1999/12/15 14:52:06 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// GEANT4 physics class: G4HadronInelasticDataSet -- header file
@@ -0,0 +1,45 @@
#ifndef G4IonProtonCrossSection_h
#define G4IonProtonCrossSection_h
#include "globals.hh"
#include "G4Proton.hh"
#include "G4VCrossSectionDataSet.hh"
#include "G4ProtonInelasticCrossSection.hh"
class G4IonProtonCrossSection : public G4VCrossSectionDataSet
{
public:
virtual
G4bool IsApplicable(const G4DynamicParticle* aPart, const G4Element*anEle)
{
G4bool result = false;
if(( anEle->GetN()<1.1) &&
( aPart->GetKineticEnergy()/aPart->GetDefinition()->GetBaryonNumber()<20*GeV&&
aPart->GetDefinition()->GetBaryonNumber()>4)
) result = true;
return result;
}
virtual
G4double GetCrossSection(const G4DynamicParticle* aPart, const G4Element*anEle)
{
G4ProtonInelasticCrossSection theForward;
G4double result = theForward.GetCrossSection(aPart->GetKineticEnergy(),
aPart->GetDefinition()->GetBaryonNumber(),
aPart->GetDefinition()->GetPDGCharge());
return result;
}
virtual
void BuildPhysicsTable(const G4ParticleDefinition&)
{}
virtual
void DumpPhysicsTable(const G4ParticleDefinition&)
{G4cout << "G4IonProtonCrossSection: uses formula"<<endl;}
};
#endif
@@ -23,6 +23,8 @@ class G4ProtonInelasticCrossSection : public G4VCrossSectionDataSet
virtual
G4double GetCrossSection(const G4DynamicParticle*, const G4Element*);
G4double GetCrossSection(G4double anEnergy, G4double anA, G4double aZ);
virtual
void BuildPhysicsTable(const G4ParticleDefinition&)
@@ -0,0 +1,37 @@
// by JPW, working, but to be cleaned up. @@@@
#ifndef G4TripathiCrossSection_h
#define G4TripathiCrossSection_h
#include "globals.hh"
#include "G4Proton.hh"
#include "G4VCrossSectionDataSet.hh"
class G4TripathiCrossSection : public G4VCrossSectionDataSet
{
public:
virtual
G4bool IsApplicable(const G4DynamicParticle* aPart, const G4Element*)
{
G4bool result = false;
if(( aPart->GetDefinition()->GetBaryonNumber()>2.5) &&
( aPart->GetKineticEnergy()/aPart->GetDefinition()->GetBaryonNumber()<1*GeV) ) result = true;
return result;
}
virtual
G4double GetCrossSection(const G4DynamicParticle*, const G4Element*);
virtual
void BuildPhysicsTable(const G4ParticleDefinition&)
{}
virtual
void DumpPhysicsTable(const G4ParticleDefinition&)
{G4cout << "G4TripathiCrossSection: uses formula"<<G4endl;}
};
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VCrossSectionDataSet.hh,v 1.1.10.1 1999/12/07 20:51:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// $Id: G4VCrossSectionDataSet.hh,v 1.2 1999/12/15 14:52:06 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// GEANT4 physics abstract class: G4VCrossSectionData -- header file