Import Geant4 6.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 10:41:53 +02:00
parent 4aea781e80
commit 96686e0c8f
6560 changed files with 153347 additions and 238155 deletions
@@ -0,0 +1,58 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * 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. *
// * *
// * This code implementation is the intellectual property of the *
// * 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: G4DiffractiveHHScatterer.hh,v 1.2 2003/10/08 13:48:47 hpw Exp $
#ifndef G4DiffractiveHHScatterer_h
#define G4DiffractiveHHScatterer_h 1
// ------------------------------------------------------------
// GEANT 4 class header file
//
// ---------------- G4DiffractiveExcitation --------------
// by Gunter Folger, October 1998.
// diffractive Excitation used by strings models
// Take a projectile and a target
// excite the projectile and target
// ------------------------------------------------------------
#include "globals.hh"
class G4DiffractiveExcitation;
class G4LundStringFragmentation;
class G4KineticTrack;
#include "G4KineticTrackVector.hh"
class G4DiffractiveHHScatterer
{
public:
G4DiffractiveHHScatterer();
G4KineticTrackVector * Scatter(const G4KineticTrack & aTrack, const G4KineticTrack & bTrack);
private:
const G4DiffractiveExcitation * theExcitation;
G4LundStringFragmentation * theStringFragmentation;
};
#endif
@@ -0,0 +1,77 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * 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. *
// * *
// * This code implementation is the intellectual property of the *
// * 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: G4DiffractiveSplitableHadron.hh,v 1.2 2003/10/08 13:48:47 hpw Exp $
// GEANT4 tag $Name: geant4-06-00 $
//
#ifndef G4DiffractiveSplitableHadron_h
#define G4DiffractiveSplitableHadron_h 1
// ------------------------------------------------------------
// GEANT 4 class header file
//
// ---------------- G4DiffractiveSplitableHadron----------------
// by Gunter Folger, August 1998.
// class splitting an interacting particle. Used by FTF String Model.
// ------------------------------------------------------------
#include "G4VSplitableHadron.hh"
#include "G4Nucleon.hh"
#include "G4Parton.hh"
class G4DiffractiveSplitableHadron : public G4VSplitableHadron
{
public:
G4DiffractiveSplitableHadron(const G4ReactionProduct & aPrimary);
G4DiffractiveSplitableHadron(const G4Nucleon & aNucleon);
G4DiffractiveSplitableHadron(const G4VKineticNucleon * aNucleon);
~G4DiffractiveSplitableHadron();
int operator==(const G4DiffractiveSplitableHadron &right) const;
int operator!=(const G4DiffractiveSplitableHadron &right) const;
void SplitUp();
G4Parton * GetNextParton() ;
G4Parton * GetNextAntiParton();
private:
G4DiffractiveSplitableHadron();
G4DiffractiveSplitableHadron(const G4DiffractiveSplitableHadron &right);
const G4DiffractiveSplitableHadron & operator=(const G4DiffractiveSplitableHadron &right);
//implementation
G4int Diquark(G4int aquark,G4int bquark,G4int Spin) const; // to splitable hadron
void ChooseStringEnds(G4int PDGcode,G4int * aEnd, G4int * bEnd) const; // to splitable hadron
private:
G4Parton *Parton[2];
G4int PartonIndex;
};
#endif
@@ -0,0 +1,100 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * 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. *
// * *
// * This code implementation is the intellectual property of the *
// * 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: G4FTFModel.hh,v 1.2 2003/10/08 13:48:47 hpw Exp $
// GEANT4 tag $Name: geant4-06-00 $
//
// Class Description
// Final state production code for hadron inelastic scattering above 20 GeV
// based on the modeling ansatz used in FRITIOF.
// To be used in your physics list in case you need this physics.
// In this case you want to register an object of this class with an object
// of G4TheoFSGenerator.
// Class Description - End
#ifndef G4FTFModel_h
#define G4FTFModel_h 1
// ------------------------------------------------------------
// GEANT 4 class header file
//
// ---------------- G4FTFModel ----------------
// by Gunter Folger, May 1998.
// class implementing the excitation in the FTF Parton String Model
// ------------------------------------------------------------
#include "G4VPartonStringModel.hh"
class G4VSplitableHadron;
class G4ExcitedString;
#include "G4FTFParticipants.hh"
#include "G4ExcitedStringVector.hh"
#include "G4DiffractiveExcitation.hh"
class G4FTFModel : public G4VPartonStringModel
{
public:
G4FTFModel(G4double sigmaPt=800*MeV, G4double minExtraMass=300*MeV,G4double x0Mass=150*MeV);
G4FTFModel(G4DiffractiveExcitation * anExcitation);
G4FTFModel(const G4FTFModel &right);
~G4FTFModel();
const G4FTFModel & operator=(const G4FTFModel &right);
int operator==(const G4FTFModel &right) const;
int operator!=(const G4FTFModel &right) const;
void Init(const G4Nucleus & aNucleus, const G4DynamicParticle & aProjectile);
G4ExcitedStringVector * GetStrings();
G4V3DNucleus * GetWoundedNucleus() const;
protected:
private:
G4bool ExciteParticipants();
G4ExcitedStringVector * BuildStrings();
private:
G4FTFParticipants theParticipants;
G4ReactionProduct theProjectile;
G4DiffractiveExcitation * theExcitation;
};
inline
G4V3DNucleus * G4FTFModel::GetWoundedNucleus() const
{
return theParticipants.GetWoundedNucleus();
}
#endif
@@ -0,0 +1,95 @@
//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * 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. *
// * *
// * This code implementation is the intellectual property of the *
// * 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: G4FTFParticipants.hh,v 1.2 2003/10/08 13:48:47 hpw Exp $
// GEANT4 tag $Name: geant4-06-00 $
//
#ifndef G4FTFParticipants_h
#define G4FTFParticipants_h 1
// ------------------------------------------------------------
// GEANT 4 class header file
//
// ---------------- G4FTFParticipants----------------
// by Gunter Folger, June 1998.
// class finding colliding particles in FTFPartonStringModel
// ------------------------------------------------------------
#include "G4VParticipants.hh"
#include <vector>
#include "G4Nucleon.hh"
#include "G4V3DNucleus.hh"
#include "G4Fancy3DNucleus.hh"
#include "G4ReactionProduct.hh"
#include "G4InteractionContent.hh"
class G4FTFParticipants : public G4VParticipants
{
public:
G4FTFParticipants();
G4FTFParticipants(const G4FTFParticipants &right);
const G4FTFParticipants & operator=(const G4FTFParticipants &right);
~G4FTFParticipants();
int operator==(const G4FTFParticipants &right) const;
int operator!=(const G4FTFParticipants &right) const;
void BuildInteractions(const G4ReactionProduct &thePrimary);
G4bool Next();
const G4InteractionContent & GetInteraction() const;
void StartLoop();
private:
std::vector<G4InteractionContent *> theInteractions;
G4int currentInteraction;
};
inline
void G4FTFParticipants::StartLoop()
{
currentInteraction=-1;
}
inline
G4bool G4FTFParticipants::Next()
{
return ++currentInteraction < static_cast<G4int>(theInteractions.size());
}
inline
const G4InteractionContent & G4FTFParticipants::GetInteraction() const
{
return *theInteractions[currentInteraction];
}
#endif