Import Geant4 9.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:58:43 +02:00
parent 96c8bcd0af
commit b79225fb37
7544 changed files with 245407 additions and 91099 deletions
@@ -25,7 +25,7 @@
//
//
// $Id: G4EventGenerator.hh,v 1.3 2006/06/29 20:55:13 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4EventGenerator_h
#define G4EventGenerator_h 1
@@ -1,90 +0,0 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
#ifndef G4FTFCrossSection_h
#define G4FTFCrossSection_h 1
//
// $Id: G4FTFCrossSection.hh,v 1.2 2007/04/24 10:37:10 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
#include "G4Proton.hh"
class G4FTFCrossSection
{
public:
G4FTFCrossSection(const G4ParticleDefinition * , G4double );
~G4FTFCrossSection();
void SethNcmsEnergy(const G4double s);
void SetTotalCrossSection(const G4double Xtotal);
void SetElastisCrossSection(const G4double Xelastic);
void SetInelasticCrossSection(const G4double Xinelastic);
void SetSlope(const G4double Slope);
void SetGamma0(const G4double Gamma0);
G4double GetTotalCrossSection();
G4double GetElasticCrossSection();
G4double GetInelasticCrossSection();
G4double GetSlope();
G4double GetInelasticProbability(const G4double impactsquare);
// private:
G4FTFCrossSection();
G4double GammaElastic(const G4double impactsquare) {return (FTFGamma0 * std::exp(-FTFSlope * impactsquare));};
G4double FTFhNcmsEnergy; // Uzhi Initial hN CMS energy
G4double FTFXtotal;
G4double FTFXelastic;
G4double FTFXinelastic;
G4double FTFSlope;
G4double FTFGamma0;
};
inline void G4FTFCrossSection::SethNcmsEnergy(const G4double s) {FTFhNcmsEnergy = s;}
inline void G4FTFCrossSection::SetTotalCrossSection(const G4double Xtotal) {FTFXtotal = Xtotal;}
inline void G4FTFCrossSection::SetElastisCrossSection(const G4double Xelastic) {FTFXelastic = Xelastic;}
inline void G4FTFCrossSection::SetInelasticCrossSection(const G4double Xinelastic) {FTFXinelastic = Xinelastic;}
inline void G4FTFCrossSection::SetSlope(const G4double Slope) {FTFSlope = 12.84/Slope;}
inline void G4FTFCrossSection::SetGamma0(const G4double Gamma0) {FTFGamma0 = Gamma0;}
inline G4double G4FTFCrossSection::GetTotalCrossSection() {return FTFXtotal;}
inline G4double G4FTFCrossSection::GetElasticCrossSection() {return FTFXelastic;}
inline G4double G4FTFCrossSection::GetInelasticCrossSection() {return FTFXinelastic;}
inline G4double G4FTFCrossSection::GetSlope() {return FTFSlope;}
inline G4double G4FTFCrossSection::GetInelasticProbability( const G4double impactsquare)
{
G4double Gamma = GammaElastic(impactsquare);
return 2 * Gamma - Gamma *Gamma;
}
#endif
@@ -25,7 +25,7 @@
//
//
// $Id: G4InteractionCode.hh,v 1.3 2006/06/29 20:55:15 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4InteractionCode_h
#define G4InteractionCode_h 1
@@ -25,7 +25,7 @@
//
//
// $Id: G4InteractionContent.hh,v 1.4 2007/01/24 10:28:54 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4InteractionContent_h
@@ -27,7 +27,7 @@
#define G4PomeronCrossSection_h 1
//
// $Id: G4PomeronCrossSection.hh,v 1.3 2006/06/29 20:55:19 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#include "G4Proton.hh"
#include "G4Neutron.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: G4StringModel.hh,v 1.3 2006/06/29 20:55:23 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4StringModel_h
#define G4StringModel_h 1
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4VParticipants.hh,v 1.3 2006/06/29 20:55:25 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4VParticipants.hh,v 1.4 2008/05/19 13:03:20 vuzhinsk Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4VParticipants_h
@@ -89,6 +89,7 @@ inline void G4VParticipants::Init(G4double theA, G4double theZ)
{
if ( theNucleus == NULL ) theNucleus = new G4Fancy3DNucleus();
theNucleus->Init(theA, theZ);
theNucleus->SortNucleonsInZ(); // Uzhi 16.05.08 Sorting of nucleon-Z
}
@@ -25,7 +25,7 @@
//
//
// $Id: G4VPartonStringModel.hh,v 1.3 2006/06/29 20:55:27 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4VPartonStringModel_h
#define G4VPartonStringModel_h 1
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4VSplitableHadron.hh,v 1.3 2006/06/29 20:55:29 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4VSplitableHadron.hh,v 1.4 2008/05/19 13:03:20 vuzhinsk Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4VSplitableHadron_h
@@ -74,6 +74,9 @@ class G4VSplitableHadron
void IncrementCollisionCount(G4int aCount);
void SetCollisionCount(G4int aCount);
void SetTimeOfCreation(G4double aTime); // Uzhi 7.05.08
G4double GetTimeOfCreation(); // Uzhi 7.05.08
void SetPosition(const G4ThreeVector &aPosition);
const G4ThreeVector & GetPosition() const;
@@ -82,9 +85,9 @@ class G4VSplitableHadron
virtual G4Parton * GetNextAntiParton() = 0 ;
G4bool IsSplit() { return isSplit;}
protected:
G4int GetSoftCollisionCount();
protected:
void Splitting() {isSplit = true;}
private:
@@ -98,6 +101,7 @@ class G4VSplitableHadron
G4LorentzVector the4Momentum;
G4double TimeOfCreation; // Uzhi 7.05.08
G4ThreeVector thePosition;
G4int theCollisionCount;
@@ -140,6 +144,15 @@ inline void G4VSplitableHadron::IncrementCollisionCount(G4int aCount)
theCollisionCount += aCount;
}
inline void G4VSplitableHadron::SetTimeOfCreation(G4double aTime) // Uzhi 7.05.08
{
TimeOfCreation=aTime;
}
inline G4double G4VSplitableHadron::GetTimeOfCreation() // Uzhi 7.05.08
{
return TimeOfCreation;
}
inline void G4VSplitableHadron::SetPosition(const G4ThreeVector &aPosition)
{
@@ -25,7 +25,7 @@
//
//
// $Id: G4VStringFragmentation.hh,v 1.3 2006/06/29 20:55:31 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4VStringFragmentation_h
#define G4VStringFragmentation_h 1
@@ -25,7 +25,7 @@
//
//
// $Id: G4VertexCode.hh,v 1.3 2006/06/29 20:55:33 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4VertexCode_h
#define G4VertexCode_h 1