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
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4DiffractiveExcitation.hh,v 1.1 2007/05/25 06:56:53 vuzhinsk Exp $
// $Id: G4DiffractiveExcitation.hh,v 1.2 2008/04/25 14:20:13 vuzhinsk Exp $
#ifndef G4DiffractiveExcitation_h
#define G4DiffractiveExcitation_h 1
@@ -41,6 +41,7 @@
#include "globals.hh"
class G4VSplitableHadron;
class G4ExcitedString;
#include "G4FTFParameters.hh" // Uzhi 19.04.08
#include "G4ThreeVector.hh"
class G4DiffractiveExcitation
@@ -51,35 +52,23 @@ class G4DiffractiveExcitation
G4DiffractiveExcitation(); // Uzhi
virtual ~G4DiffractiveExcitation();
virtual G4bool ExciteParticipants (G4VSplitableHadron *aPartner, G4VSplitableHadron * bPartner) const;
virtual G4ExcitedString * String(G4VSplitableHadron * aHadron, G4bool isProjectile) const;
// void SetPtWidth(G4double aValue) { widthOfPtSquare = aValue*aValue; }
// void SetExtraMass(G4double aValue) { minExtraMass = aValue; }
// void SetMinimumMass(G4double aValue) { minmass = aValue; }
virtual G4bool ExciteParticipants (G4VSplitableHadron *aPartner,
G4VSplitableHadron * bPartner,
G4FTFParameters *theParameters) const;
virtual G4ExcitedString * String(G4VSplitableHadron * aHadron, G4bool isProjectile) const;
private:
G4DiffractiveExcitation(const G4DiffractiveExcitation &right);
// G4double ChooseX(G4double Xmin, G4double Xmax) const; // Uzhi
G4ThreeVector GaussianPt(G4double AveragePt2, G4double maxPtSquare) const; // Uzhi
G4double ChooseP(G4double Pmin, G4double Pmax) const; // Uzhi
// G4ThreeVector GaussianPt(G4double widthSquare, G4double maxPtSquare) const;
G4ThreeVector GaussianPt(G4double AveragePt2, G4double maxPtSquare) const; // Uzhi
const G4DiffractiveExcitation & operator=(const G4DiffractiveExcitation &right);
int operator==(const G4DiffractiveExcitation &right) const;
int operator!=(const G4DiffractiveExcitation &right) const;
private:
// Model Parameters:
/* // Uzhi
const G4double widthOfPtSquare; // width^2 of pt for string excitation
const G4double minExtraMass; // minimum excitation mass
const G4double minmass; // mean pion transverse mass; used for Xmin
*/ // Uzhi
};
#endif
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: G4DiffractiveHHScatterer.hh,v 1.3 2006/06/29 20:54:25 gunter Exp $
// $Id: G4DiffractiveHHScatterer.hh,v 1.4 2008/04/25 14:20:13 vuzhinsk Exp $
#ifndef G4DiffractiveHHScatterer_h
#define G4DiffractiveHHScatterer_h 1
@@ -43,6 +43,7 @@ class G4DiffractiveExcitation;
class G4LundStringFragmentation;
class G4KineticTrack;
#include "G4KineticTrackVector.hh"
#include "G4FTFParameters.hh" // Uzhi 21.04.08
class G4DiffractiveHHScatterer
{
@@ -56,6 +57,7 @@ private:
const G4DiffractiveExcitation * theExcitation;
G4LundStringFragmentation * theStringFragmentation;
G4FTFParameters *theParameters; // Uzhi 21.04.08
};
#endif
@@ -25,7 +25,7 @@
//
//
// $Id: G4DiffractiveSplitableHadron.hh,v 1.4 2006/06/29 20:54:27 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4DiffractiveSplitableHadron_h
@@ -0,0 +1,72 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
//
// $Id: G4ElasticHNScattering.hh,v 1.1 2008/03/31 15:34:01 vuzhinsk Exp $
#ifndef G4ElasticHNScattering_h
#define G4ElasticHNScattering_h 1
// ------------------------------------------------------------
// GEANT 4 class header file
//
// ---------------- G4ElasticHNScattering --------------
// by V. Uzhinsky, March 2008.
// elastic scattering used by Fritiof model
// Take a projectile and a target
// scatter the projectile and target
// ------------------------------------------------------------
#include "globals.hh"
class G4VSplitableHadron;
class G4ExcitedString;
#include "G4FTFParameters.hh" // Uzhi 29.03.08
#include "G4ThreeVector.hh"
class G4ElasticHNScattering
{
public:
G4ElasticHNScattering(); // Uzhi
virtual ~G4ElasticHNScattering();
virtual G4bool ElasticScattering (G4VSplitableHadron *aPartner,
G4VSplitableHadron * bPartner,
G4FTFParameters *theParameters) const;
private:
G4ElasticHNScattering(const G4ElasticHNScattering &right);
G4ThreeVector GaussianPt(G4double AveragePt2, G4double maxPtSquare) const; // Uzhi
const G4ElasticHNScattering & operator=(const G4ElasticHNScattering &right);
int operator==(const G4ElasticHNScattering &right) const;
int operator!=(const G4ElasticHNScattering &right) const;
};
#endif
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4FTFModel.hh,v 1.5 2007/04/24 10:32:59 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4FTFModel.hh,v 1.7 2008/04/25 14:20:13 vuzhinsk Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
// Class Description
// Final state production code for hadron inelastic scattering above 20 GeV
@@ -51,11 +51,13 @@
class G4VSplitableHadron;
class G4ExcitedString;
#include "G4FTFParameters.hh" // Uzhi 29.03.08
#include "G4FTFParticipants.hh"
#include "G4ExcitedStringVector.hh"
#include "G4DiffractiveExcitation.hh"
#include "G4ElasticHNScattering.hh"
class G4FTFModel : public G4VPartonStringModel
{
@@ -83,16 +85,18 @@ class G4FTFModel : public G4VPartonStringModel
G4ExcitedStringVector * BuildStrings();
private:
G4FTFParticipants theParticipants;
G4ReactionProduct theProjectile;
G4DiffractiveExcitation * theExcitation;
G4ReactionProduct theProjectile;
G4FTFParticipants theParticipants;
G4FTFParameters *theParameters; // Uzhi 29.03.08
G4DiffractiveExcitation * theExcitation;
G4ElasticHNScattering * theElastic; // Uzhi 29.03.08
};
// ------------------------------------------------------------
inline
G4V3DNucleus * G4FTFModel::GetWoundedNucleus() const
{
@@ -0,0 +1,223 @@
//
// ********************************************************************
// * 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 G4FTFParameters_h
#define G4FTFParameters_h 1
//
// $Id: G4FTFParameters.hh,v 1.2 2008/06/13 12:49:23 vuzhinsk Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
#include "G4Proton.hh"
class G4FTFParameters
{
public:
G4FTFParameters(const G4ParticleDefinition * , G4double theA,
G4double theZ,
G4double s);
~G4FTFParameters();
// --------- Set geometrical parameteres -----------------------------
void SethNcmsEnergy(const G4double s);
void SetTotalCrossSection(const G4double Xtotal);
void SetElastisCrossSection(const G4double Xelastic);
void SetInelasticCrossSection(const G4double Xinelastic);
void SetProbabilityOfElasticScatt(const G4double Xtotal, const G4double Xelastic);
void SetProbabilityOfElasticScatt(const G4double aValue);
void SetRadiusOfHNinteractions2(const G4double Radius2);
void SetSlope(const G4double Slope);
void SetGamma0(const G4double Gamma0);
G4double GammaElastic(const G4double impactsquare)
{return (FTFGamma0 * std::exp(-FTFSlope * impactsquare));};
// --------- Set parameters of elastic scattering --------------------
void SetAvaragePt2ofElasticScattering(const G4double aPt2);
// --------- Set parameters of excitations ---------------------------
void SetProjMinDiffMass(const G4double aValue); // Uzhi 19.04.08
void SetProjMinNonDiffMass(const G4double aValue);
void SetProbabilityOfProjDiff(const G4double aValue);
void SetTarMinDiffMass(const G4double aValue); // Uzhi 19.04.08
void SetTarMinNonDiffMass(const G4double aValue);
void SetProbabilityOfTarDiff(const G4double aValue);
void SetAveragePt2(const G4double aValue);
// Perevod mass*GeV Pt2*GeV*GeV
// --------- Get geometrical parameteres -----------------------------
G4double GetTotalCrossSection();
G4double GetElasticCrossSection();
G4double GetInelasticCrossSection();
G4double GetProbabilityOfElasticScatt();
G4double GetSlope();
G4double GetProbabilityOfInteraction(const G4double impactsquare);
G4double GetInelasticProbability(const G4double impactsquare);
// --------- Get parameters of elastic scattering --------------------
G4double GetAvaragePt2ofElasticScattering();
// --------- Get parameters of excitations ---------------------------
G4double GetProjMinDiffMass(); // Uzhi 19.04.08
G4double GetProjMinNonDiffMass();
G4double GetProbabilityOfProjDiff();
G4double GetTarMinDiffMass(); // Uzhi 19.04.08
G4double GetTarMinNonDiffMass();
G4double GetProbabilityOfTarDiff();
G4double GetAveragePt2();
// private:
G4FTFParameters();
// ------------ Initial energy of hN interactions --------------------
G4double FTFhNcmsEnergy; // Initial hN CMS energy
// ------------ Geometrical parameteres ------------------------------
G4double FTFXtotal; // Total X in mb
G4double FTFXelastic; // Elastic X in mb
G4double FTFXinelastic; // Inelastic X in mb
G4double ProbabilityOfElasticScatt; // Xel/Xtot
G4double RadiusOfHNinteractions2; // Xtot/pi, in fn^2
G4double FTFSlope; // in fm^-1
G4double AvaragePt2ofElasticScattering; // in MeV^2
G4double FTFGamma0;
// --------- Parameters of excitations -------------------------------
G4double ProjMinDiffMass; // Uzhi 19.04.08
G4double ProjMinNonDiffMass;
G4double ProbabilityOfProjDiff;
G4double TarMinDiffMass;
G4double TarMinNonDiffMass;
G4double ProbabilityOfTarDiff;
G4double AveragePt2;
};
// --------------------------------------------------------------------
inline void G4FTFParameters::SethNcmsEnergy(const G4double s)
{FTFhNcmsEnergy = s;}
// --------- Set geometrical parameteres ------------------------------
inline void G4FTFParameters::SetTotalCrossSection(const G4double Xtotal)
{FTFXtotal = Xtotal;}
inline void G4FTFParameters::SetElastisCrossSection(const G4double Xelastic)
{FTFXelastic = Xelastic;}
inline void G4FTFParameters::SetInelasticCrossSection(const G4double Xinelastic)
{FTFXinelastic = Xinelastic;}
inline void G4FTFParameters::SetProbabilityOfElasticScatt(const G4double Xtotal,
const G4double Xelastic)
{
if(Xtotal==0.) {ProbabilityOfElasticScatt = 0.;}
else {ProbabilityOfElasticScatt = Xelastic/Xtotal;};
}
inline void G4FTFParameters::SetProbabilityOfElasticScatt(const G4double aValue)
{ProbabilityOfElasticScatt = aValue;}
inline void G4FTFParameters::SetRadiusOfHNinteractions2(const G4double Radius2)
{RadiusOfHNinteractions2 = Radius2;}
inline void G4FTFParameters::SetSlope(const G4double Slope)
{FTFSlope = 12.84/Slope;} // Slope is in GeV^-2, FTFSlope in fm^-2
inline void G4FTFParameters::SetGamma0(const G4double Gamma0)
{FTFGamma0 = Gamma0;}
// --------- Set parameters of elastic scattering ---------------------
inline void G4FTFParameters::SetAvaragePt2ofElasticScattering(const G4double aPt2)
{
//G4cout<<"Pt2 El "<<aPt2<<" "<<std::sqrt(aPt2)<<G4endl;
//G4int Uzhi; G4cin>>Uzhi;
AvaragePt2ofElasticScattering = aPt2;}
// --------- Set parameters of excitations ----------------------------
inline void G4FTFParameters::SetProjMinDiffMass(const G4double aValue) // Uzhi 19.04.08
{ProjMinDiffMass = aValue*GeV;}
inline void G4FTFParameters::SetProjMinNonDiffMass(const G4double aValue)
{ProjMinNonDiffMass = aValue*GeV;}
inline void G4FTFParameters::SetProbabilityOfProjDiff(const G4double aValue)
{ProbabilityOfProjDiff = aValue;}
inline void G4FTFParameters::SetTarMinDiffMass(const G4double aValue) // Uzhi 19.04.08
{TarMinDiffMass = aValue*GeV;}
inline void G4FTFParameters::SetTarMinNonDiffMass(const G4double aValue)
{TarMinNonDiffMass = aValue*GeV;}
inline void G4FTFParameters::SetProbabilityOfTarDiff(const G4double aValue)
{ProbabilityOfTarDiff = aValue;}
inline void G4FTFParameters::SetAveragePt2(const G4double aValue)
{AveragePt2 = aValue*GeV*GeV;}
// --------- Get geometrical parameteres ------------------------------
inline G4double G4FTFParameters::GetTotalCrossSection() {return FTFXtotal;}
inline G4double G4FTFParameters::GetElasticCrossSection() {return FTFXelastic;}
inline G4double G4FTFParameters::GetInelasticCrossSection() {return FTFXinelastic;}
inline G4double G4FTFParameters::GetSlope() {return FTFSlope;}
inline G4double G4FTFParameters::GetProbabilityOfInteraction(const G4double impactsquare)
{
if(RadiusOfHNinteractions2 > impactsquare) {return 1.;}
else {return 0.;}
}
inline G4double G4FTFParameters::GetProbabilityOfElasticScatt()
{return ProbabilityOfElasticScatt;}
inline G4double G4FTFParameters::GetInelasticProbability( const G4double impactsquare)
{
G4double Gamma = GammaElastic(impactsquare);
return 2 * Gamma - Gamma *Gamma;
}
// --------- Get parameters of elastic scattering ---------------------
inline G4double G4FTFParameters::GetAvaragePt2ofElasticScattering()
{return AvaragePt2ofElasticScattering;}
// --------- Get parameters of excitations ---------------------------
inline G4double G4FTFParameters::GetProjMinDiffMass() {return ProjMinDiffMass;}
inline G4double G4FTFParameters::GetProjMinNonDiffMass() {return ProjMinNonDiffMass;}
inline G4double G4FTFParameters::GetProbabilityOfProjDiff() {return ProbabilityOfProjDiff;}
inline G4double G4FTFParameters::GetTarMinDiffMass() {return TarMinDiffMass;}
inline G4double G4FTFParameters::GetTarMinNonDiffMass() {return TarMinNonDiffMass;}
inline G4double G4FTFParameters::GetProbabilityOfTarDiff() {return ProbabilityOfTarDiff;}
inline G4double G4FTFParameters::GetAveragePt2() {return AveragePt2;}
#endif
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4FTFParticipants.hh,v 1.4 2006/06/29 20:54:32 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4FTFParticipants.hh,v 1.5 2008/03/31 15:34:01 vuzhinsk Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
#ifndef G4FTFParticipants_h
@@ -40,6 +40,7 @@
// ------------------------------------------------------------
#include "G4VParticipants.hh"
#include "G4FTFParameters.hh" // Uzhi 29.03.08
#include <vector>
#include "G4Nucleon.hh"
#include "G4V3DNucleus.hh"
@@ -59,15 +60,17 @@ class G4FTFParticipants : public G4VParticipants
int operator==(const G4FTFParticipants &right) const;
int operator!=(const G4FTFParticipants &right) const;
void BuildInteractions(const G4ReactionProduct &thePrimary);
G4bool Next();
const G4InteractionContent & GetInteraction() const;
void GetList(const G4ReactionProduct &thePrimary,
G4FTFParameters *theParameters); // Uzhi 29.03.08
void StartLoop();
G4bool Next();
const G4InteractionContent & GetInteraction() const;
std::vector<G4InteractionContent *> theInteractions;
private:
std::vector<G4InteractionContent *> theInteractions;
// std::vector<G4InteractionContent *> theInteractions;
G4int currentInteraction;
@@ -94,5 +97,3 @@ const G4InteractionContent & G4FTFParticipants::GetInteraction() const
}
#endif