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
@@ -5,13 +5,13 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4V3DNucleus.hh,v 1.2 1998/10/30 16:36:36 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4V3DNucleus.hh,v 1.2 1999/04/15 12:10:07 hpw Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
#ifndef G4V3DNucleus_h
#define G4V3DNucleus_h 1
#include "G4Nucleon.hh"
class G4Nucleon;
#include "G4DynamicParticle.hh"
class G4V3DNucleus
@@ -1,7 +1,8 @@
#ifndef G4VAnnihilator_h
#define G4VAnnihilator_h 1
#include "G4KineticTrackVector.hh"
class G4KineticTrackVector;
class G4KineticTrack;
class G4VAnnihilator
@@ -1,7 +1,8 @@
#ifndef G4VElasticScatterer_h
#define G4VElasticScatterer_h 1
#include "G4KineticTrackVector.hh"
class G4KineticTrackVector;
class G4KineticTrack;
class G4VElasticScatterer
{
@@ -5,15 +5,15 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VHighEnergyGenerator.hh,v 1.1 1998/08/22 08:55:44 hpw Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4VHighEnergyGenerator.hh,v 1.2 1999/04/15 12:10:08 hpw Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
#ifndef G4VHighEnergyGenerator_h
#define G4VHighEnergyGenerator_h 1
#include "G4Nucleus.hh"
#include "G4Track.hh"
#include "G4KineticTrackVector.hh"
class G4KineticTrackVector;
#include "G4ReactionProduct.hh"
#include "G4V3DNucleus.hh"
@@ -1,7 +1,8 @@
#ifndef G4VInElasticScatterer_h
#define G4VInElasticScatterer_h 1
#include "G4KineticTrackVector.hh"
class G4KineticTrackVector;
class G4KineticTrack;
class G4VInElasticScatterer
{
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VIntraNuclearTransportModel.hh,v 1.2 1998/11/27 08:26:52 pavliouk Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4VIntraNuclearTransportModel.hh,v 1.3 1999/04/15 12:10:09 hpw Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
// $Id: G4IntraNuclearTransportMode.hh,v 1.0 1998/06/30
// -----------------------------------------------------------------------------
@@ -26,9 +26,10 @@
#include "G4V3DNucleus.hh"
#include "G4VPreCompoundModel.hh"
#include "G4HadronicInteraction.hh"
#include "G4DynamicParticleVector.hh"
#include "G4ReactionProductVector.hh"
#include "G4ReactionProduct.hh"
#include "G4Track.hh"
class G4KineticTrackVector;
class G4VIntraNuclearTransportModel : public G4HadronicInteraction
@@ -51,7 +52,7 @@ class G4VIntraNuclearTransportModel : public G4HadronicInteraction
virtual G4VParticleChange* ApplyYourself(const G4Track& aTrack,
G4Nucleus& theNucleus) = 0;
virtual G4DynamicParticleVector* Propagate(G4KineticTrackVector* theSecondaries,
virtual G4ReactionProductVector* Propagate(G4KineticTrackVector* theSecondaries,
G4V3DNucleus* theNucleus) = 0;
void SetDeExcitation(G4VPreCompoundModel* const value);
@@ -0,0 +1,65 @@
// This code implementation is the intellectual property of
// the RD44 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: G4VKineticNucleon.hh,v 1.1 1999/04/15 12:10:09 hpw Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
#ifndef G4VKineticNucleon_h
#define G4VKineticNucleon_h 1
#include "G4ThreeVector.hh"
#include "G4LorentzVector.hh"
#include "G4ParticleDefinition.hh"
class G4KineticTrackVector;
class G4VKineticNucleon
{
public:
G4VKineticNucleon();
G4VKineticNucleon(const G4VKineticNucleon &right);
virtual ~G4VKineticNucleon();
const G4VKineticNucleon& operator=(const G4VKineticNucleon& right);
int operator==(const G4VKineticNucleon& right) const;
int operator!=(const G4VKineticNucleon& right) const;
virtual G4KineticTrackVector* Decay();
virtual const G4LorentzVector& Get4Momentum() const =0;
virtual G4ParticleDefinition* GetDefinition()const =0;
virtual const G4ThreeVector& GetPosition() const =0;
protected:
private:
};
// Class G4VKineticNucleon
inline G4KineticTrackVector* G4VKineticNucleon::Decay()
{
return NULL;
}
inline const G4VKineticNucleon& G4VKineticNucleon::operator=(const G4VKineticNucleon& right)
{
return *this;
}
#endif
@@ -1,75 +0,0 @@
// This code implementation is the intellectual property of
// the RD44 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: G4VLongitudinalStringDecay.hh,v 1.4 1998/12/01 15:40:47 maxim Exp $
// GEANT4 tag $Name: geant4-00 $
// Maxim Komogorov
//
// -----------------------------------------------------------------------------
// GEANT 4 class implementation file
//
// For information related to this code contact:
// CERN, CN Division, ASD Group
// History: first implementation, Maxim Komogorov, 1-Jul-1998
// -----------------------------------------------------------------------------
#ifndef G4VLongitudinalStringDecay_h
#define G4VLongitudinalStringDecay_h 1
#include "G4VStringFragmentation.hh"
#include "G4DynamicParticle.hh"
//**********************************************************************************************
class G4VLongitudinalStringDecay: public G4VStringFragmentation
{
public:
G4VLongitudinalStringDecay();
~G4VLongitudinalStringDecay();
private:
// G4VLongitudinalStringDecay(const G4VLongitudinalStringDecay &right);
// const G4VLongitudinalStringDecay & operator=(const G4VLongitudinalStringDecay &right);
int operator==(const G4VLongitudinalStringDecay &right) const;
int operator!=(const G4VLongitudinalStringDecay &right) const;
public:
G4KineticTrackVector* FragmentString(const G4ExcitedString& theString);
G4bool FragmentString(G4KineticTrackVector* aHadrons, const G4ExcitedString* theString);
G4KineticTrackVector* DecayResonans (G4KineticTrackVector* aHadrons);
G4int SampleQuarkFlavor(void);
void SampleQuarkPt(G4double* thePx, G4double* thePy);
protected:
// Additional protected declarations
virtual G4double GetLightConeZ(G4double zmin, G4double zmax, G4int PartonEncoding, G4ParticleDefinition* pHadron, G4double Px, G4double Py) = 0;
G4ParticleDefinition* CreateHadron(G4int id1, G4int id2, G4bool theGivenSpin, G4int theSpin);
void CalculateHadronTimePosition(G4double theInitialStringMass, G4KineticTrackVector *);
G4ParticleDefinition* FindParticle(G4int Encoding);
void Sample4Momentum(G4LorentzVector* Mom, G4double Mass, G4LorentzVector* AntiMom, G4double AntiMass, G4double InitialMass);
// Additional Implementation Declarations
private:
G4double MassCut;
G4double ClusterMass;
G4double SigmaQT; // sigma_q_t is quark transverse momentum distribution parameter
G4double DiquarkSuppress; // is Diquark suppression parameter
G4double DiquarkBreakProb; // is Diquark breaking probability
G4double SmoothParam; // model parameter
G4double StrangeSuppress ;
G4int StringLoopInterrupt;
G4int ClusterLoopInterrupt;
void ConstructParticle();
};
//**********************************************************************************************
// Class G4VLongitudinalStringDecay
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VNuclearDensity.hh,v 1.2 1998/10/30 16:35:21 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4VNuclearDensity.hh,v 1.1 1999/01/07 16:12:05 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
#ifndef G4VNuclearDensity_h
#define G4VNuclearDensity_h 1
@@ -1,80 +0,0 @@
// This code implementation is the intellectual property of
// the RD44 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: G4VParticipants.hh,v 1.1 1998/08/22 08:55:46 hpw Exp $
// GEANT4 tag $Name: geant4-00 $
//
#ifndef G4VParticipants_h
#define G4VParticipants_h 1
// ------------------------------------------------------------
// GEANT 4 class header file
//
// For information related to this code contact:
// CERN, CN Division, ASD group
// ---------------- G4VParticipants ----------------
// by Gunter Folger, May 1998.
// abstract class finding participants in a hadron Nucleus collision
// in Parton String Models.
// ------------------------------------------------------------
#include "globals.hh"
class G4V3DNucleus;
#include "G4Fancy3DNucleus.hh"
class G4VParticipants
{
public:
G4VParticipants();
G4VParticipants(const G4VParticipants &right);
virtual ~G4VParticipants();
const G4VParticipants & operator=(const G4VParticipants &right);
int operator==(const G4VParticipants &right) const;
int operator!=(const G4VParticipants &right) const;
void Init(G4double theZ, G4double theA);
void SetNucleus(G4V3DNucleus * aNucleus);
G4V3DNucleus * GetWoundedNucleus() const;
protected:
G4V3DNucleus *theNucleus;
private:
};
// Class G4VParticipants
inline G4V3DNucleus * G4VParticipants::GetWoundedNucleus() const
{
return theNucleus;
}
inline void G4VParticipants::SetNucleus(G4V3DNucleus * aNucleus)
{
theNucleus = aNucleus;
}
inline void G4VParticipants::Init(G4double theA, G4double theZ)
{
if ( theNucleus == NULL ) theNucleus = new G4Fancy3DNucleus();
theNucleus->Init(theA, theZ);
}
#endif
@@ -5,15 +5,16 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4VPreCompoundModel.hh,v 1.5 1998/11/13 17:27:29 larazb Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4VPreCompoundModel.hh,v 1.2 1999/04/12 15:45:38 hpw Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
#ifndef G4VPreCompoundModel_h
#define G4VPreCompoundModel_h 1
#include "G4HadronicInteraction.hh"
#include "G4DynamicParticleVector.hh"
#include "G4ReactionProductVector.hh"
#include "G4ReactionProduct.hh"
class G4Track;
class G4VParticleChange;
class G4Nucleus;
@@ -42,7 +43,7 @@ public:
virtual G4VParticleChange *
ApplyYourself(const G4Track & thePrimary, G4Nucleus & theNucleus) = 0;
virtual G4DynamicParticleVector*
virtual G4ReactionProductVector*
DeExcite(const G4Fragment& aFragment) const = 0;
void SetExcitationHandler(G4ExcitationHandler *const value);
@@ -1,131 +0,0 @@
// This code implementation is the intellectual property of
// the RD44 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: G4VSplitableHadron.hh,v 1.6 1998/11/06 10:02:54 gunter Exp $
// GEANT4 tag $Name: geant4-00 $
//
#ifndef G4VSplitableHadron_h
#define G4VSplitableHadron_h 1
// ------------------------------------------------------------
// GEANT 4 class header file
//
// For information related to this code contact:
// CERN, CN Division, ASD group
// ---------------- G4VSplitableHadron----------------
// by Gunter Folger, June 1998.
// class storing an interacting particle. Used by Parton String Models.
// ------------------------------------------------------------
#include "globals.hh"
class G4ParticleDefinition;
#include "G4ParticleDefinition.hh"
#include "G4ReactionProduct.hh"
#include "G4Nucleon.hh"
#include "G4ThreeVector.hh"
#include "G4LorentzVector.hh"
#include "G4Parton.hh"
#include <rw/tpordvec.h>
class G4VSplitableHadron
{
public:
G4VSplitableHadron();
G4VSplitableHadron(const G4ReactionProduct & aPrimary);
G4VSplitableHadron(const G4Nucleon & aNucleon);
G4VSplitableHadron(const G4VKineticNucleon * aNucleon);
virtual ~G4VSplitableHadron();
int operator==(const G4VSplitableHadron &right) const;
int operator!=(const G4VSplitableHadron &right) const;
void Set4Momentum(const G4LorentzVector &a4Momentum);
const G4LorentzVector & Get4Momentum() const;
void SetDefinition(G4ParticleDefinition *aDefinition);
G4ParticleDefinition * GetDefinition() const;
void IncrementCollisionCount(G4int aCount);
void SetPosition(const G4ThreeVector &aPosition);
const G4ThreeVector & GetPosition() const;
virtual void SplitUp() = 0;
virtual G4Parton * GetNextParton() = 0 ;
virtual G4Parton * GetNextAntiParton() = 0 ;
protected:
G4int GetSoftCollisionCount();
private:
G4VSplitableHadron(const G4VSplitableHadron &right);
const G4VSplitableHadron & operator=(const G4VSplitableHadron &right);
private:
G4ParticleDefinition *theDefinition;
G4LorentzVector the4Momentum;
G4ThreeVector thePosition;
G4int theCollisionCount;
};
inline G4int G4VSplitableHadron::GetSoftCollisionCount()
{
return theCollisionCount;
}
inline void G4VSplitableHadron::Set4Momentum(const G4LorentzVector &a4Momentum)
{
the4Momentum=a4Momentum;
}
inline const G4LorentzVector & G4VSplitableHadron::Get4Momentum() const
{
return the4Momentum;
}
inline void G4VSplitableHadron::SetDefinition(G4ParticleDefinition *aDefinition)
{
theDefinition=aDefinition;
}
inline G4ParticleDefinition * G4VSplitableHadron::GetDefinition() const
{
return theDefinition;
}
inline void G4VSplitableHadron::IncrementCollisionCount(G4int aCount)
{
theCollisionCount += aCount;
}
inline void G4VSplitableHadron::SetPosition(const G4ThreeVector &aPosition)
{
thePosition=aPosition;
}
inline const G4ThreeVector & G4VSplitableHadron::GetPosition() const
{
return thePosition;
}
#endif
@@ -1,40 +0,0 @@
// This code implementation is the intellectual property of
// the RD44 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: G4VStringFragmentation.hh,v 1.1 1998/08/22 08:55:48 hpw Exp $
// GEANT4 tag $Name: geant4-00 $
//
#ifndef G4VStringFragmentation_h
#define G4VStringFragmentation_h 1
#include "G4ExcitedString.hh"
//GF#include "G4ReactionProductVector.hh"
#include "G4KineticTrackVector.hh"
class G4VStringFragmentation
{
public:
G4VStringFragmentation();
~G4VStringFragmentation();
private:
G4VStringFragmentation(const G4VStringFragmentation &right);
const G4VStringFragmentation & operator=(const G4VStringFragmentation &right);
int operator==(const G4VStringFragmentation &right) const;
int operator!=(const G4VStringFragmentation &right) const;
public:
// virtual G4ReactionProductVector * FragmentString(const G4ExcitedString &theString)=0;
virtual G4KineticTrackVector * FragmentString(const G4ExcitedString &theString)=0;
private:
};
#endif