Import Geant4 0.0.0 source tree
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
// 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: G4BosonConstructor.hh,v 2.1 1998/07/13 17:14:32 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 class implementatBoson file
|
||||
//
|
||||
#ifndef G4BosonConstructor_h
|
||||
#define G4BosonConstructor_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
|
||||
class G4BosonConstructor
|
||||
{
|
||||
//This class is a utility class for constructBoson
|
||||
//short lived particles
|
||||
|
||||
public:
|
||||
G4BosonConstructor();
|
||||
~G4BosonConstructor();
|
||||
|
||||
public:
|
||||
void ConstructParticle();
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,72 @@
|
||||
// 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: G4ChargedGeantino.hh,v 2.3 1998/09/24 05:41:48 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 4-th April 1996, G.Cosmo
|
||||
// ****************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Revised, G.Cosmo, 6 June 1996
|
||||
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
// Each class inheriting from G4VBoson
|
||||
// corresponds to a particle type; one and only one
|
||||
// instance for each class is guaranteed.
|
||||
|
||||
#ifndef G4ChargedGeantino_h
|
||||
#define G4ChargedGeantino_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VBoson.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ChargedGeantino ###
|
||||
// ######################################################################
|
||||
|
||||
class G4ChargedGeantino : public G4VBoson
|
||||
{
|
||||
private:
|
||||
static G4ChargedGeantino theChargedGeantino;
|
||||
static G4double theChargedGeantinoLengthCut;
|
||||
static G4double* theChargedGeantinoKineticEnergyCuts;
|
||||
|
||||
private:
|
||||
G4ChargedGeantino(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable
|
||||
);
|
||||
|
||||
public:
|
||||
static G4ChargedGeantino* ChargedGeantinoDefinition();
|
||||
static G4ChargedGeantino* ChargedGeantino();
|
||||
static G4double GetCuts() {return theChargedGeantinoLengthCut;}
|
||||
static G4double* GetCutsInEnergy() {return theChargedGeantinoKineticEnergyCuts;};
|
||||
|
||||
void SetCuts(G4double aCut);
|
||||
};
|
||||
|
||||
inline G4ChargedGeantino* G4ChargedGeantino::ChargedGeantino()
|
||||
{ return &theChargedGeantino; }
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,126 @@
|
||||
// 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: G4Gamma.hh,v 2.3 1998/09/24 05:41:57 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 4-th April 1996, G.Cosmo
|
||||
// ****************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Revised, G.Cosmo, 6 June 1996
|
||||
// Added SetCuts, L.Urban, 12 June 1996
|
||||
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
// Each class inheriting from G4VBoson
|
||||
// corresponds to a particle type; one and only one
|
||||
// instance for each class is guaranteed.
|
||||
|
||||
#ifndef G4Gamma_h
|
||||
#define G4Gamma_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VBoson.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### GAMMA ###
|
||||
// ######################################################################
|
||||
|
||||
class G4Gamma : public G4VBoson
|
||||
{
|
||||
private:
|
||||
static G4Gamma theGamma;
|
||||
static G4double theGammaLengthCut;
|
||||
static G4double* theGammaKineticEnergyCuts;
|
||||
|
||||
//-------- the followings are used privately in G4Gamma ----
|
||||
private:
|
||||
typedef G4LossTable G4CrossSectionTable;
|
||||
void BuildAbsorptionLengthVector(
|
||||
const G4Material* aMaterial,
|
||||
const G4CrossSectionTable* aCrossSectionTable,
|
||||
G4double maxEnergy,
|
||||
G4double aMass,
|
||||
G4RangeVector* absorptionLengthVector
|
||||
);
|
||||
G4double ComputeCrossSection(
|
||||
G4double AtomicNumber,
|
||||
G4double KineticEnergy
|
||||
) const;
|
||||
|
||||
//--------------for SetCuts----------------------------------------------
|
||||
protected:
|
||||
G4double ComputeLoss(G4double AtomicNumber,G4double KineticEnergy) const
|
||||
{
|
||||
return ComputeCrossSection(AtomicNumber,KineticEnergy);
|
||||
};
|
||||
|
||||
void BuildRangeVector(
|
||||
const G4Material* aMaterial,
|
||||
const G4LossTable* aLossTable,
|
||||
G4double maxEnergy,
|
||||
G4double aMass,
|
||||
G4RangeVector* rangeVector)
|
||||
{
|
||||
BuildAbsorptionLengthVector(aMaterial,
|
||||
(const G4CrossSectionTable*)aLossTable,
|
||||
maxEnergy, aMass, rangeVector);
|
||||
}
|
||||
|
||||
G4double ConvertCutToKineticEnergy(
|
||||
G4RangeVector* absorptionLengthVector
|
||||
) const;
|
||||
|
||||
|
||||
private: // hide conxtructor as private
|
||||
G4Gamma(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable
|
||||
);
|
||||
|
||||
public:
|
||||
static G4Gamma* GammaDefinition();
|
||||
static G4Gamma* Gamma();
|
||||
static G4double GetCuts() {return theGammaLengthCut;}
|
||||
static G4double* GetCutsInEnergy() {return theGammaKineticEnergyCuts;};
|
||||
|
||||
void SetCuts(G4double aCut);
|
||||
};
|
||||
|
||||
inline void G4Gamma::SetCuts(G4double aCut)
|
||||
{
|
||||
CalcEnergyCuts(aCut);
|
||||
theGammaLengthCut = theCutInMaxInteractionLength;
|
||||
theGammaKineticEnergyCuts = theKineticEnergyCuts;
|
||||
|
||||
}
|
||||
|
||||
inline G4Gamma* G4Gamma::Gamma()
|
||||
{ return &theGamma; }
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
// 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: G4Geantino.hh,v 2.3 1998/09/24 05:42:03 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 4-th April 1996, G.Cosmo
|
||||
// ****************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Revised, G.Cosmo, 6 June 1996
|
||||
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
// Each class inheriting from G4VBoson
|
||||
// corresponds to a particle type; one and only one
|
||||
// instance for each class is guaranteed.
|
||||
|
||||
#ifndef G4Geantino_h
|
||||
#define G4Geantino_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VBoson.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### GEANTINO ###
|
||||
// ######################################################################
|
||||
|
||||
class G4Geantino : public G4VBoson
|
||||
{
|
||||
private:
|
||||
static G4Geantino theGeantino;
|
||||
static G4double theGeantinoLengthCut;
|
||||
static G4double* theGeantinoKineticEnergyCuts;
|
||||
|
||||
public:
|
||||
G4Geantino(
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable
|
||||
);
|
||||
static G4Geantino* GeantinoDefinition();
|
||||
static G4Geantino* Geantino();
|
||||
static G4double GetCuts() {return theGeantinoLengthCut;}
|
||||
static G4double* GetCutsInEnergy() {return theGeantinoKineticEnergyCuts;};
|
||||
|
||||
void SetCuts(G4double aCut);
|
||||
};
|
||||
|
||||
inline G4Geantino* G4Geantino::Geantino()
|
||||
{ return &theGeantino; }
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
// 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: G4OpticalPhoton.hh,v 2.3 1998/09/24 05:42:10 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 4-th April 1996, G.Cosmo
|
||||
// ****************************************************************
|
||||
// Added particle definitions, H.Kurashige, 19 April 1996
|
||||
// Revised, G.Cosmo, 6 June 1996
|
||||
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
// Each class inheriting from G4VBoson
|
||||
// corresponds to a particle type; one and only one
|
||||
// instance for each class is guaranteed.
|
||||
|
||||
#ifndef G4OpticalPhoton_h
|
||||
#define G4OpticalPhoton_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4VBoson.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### OPTICAL PHOTON ###
|
||||
// ######################################################################
|
||||
|
||||
class G4OpticalPhoton: public G4VBoson
|
||||
{
|
||||
private:
|
||||
static G4OpticalPhoton theOpticalPhoton;
|
||||
static G4double theOpticalPhotonLengthCut;
|
||||
static G4double* theOpticalPhotonKineticEnergyCuts;
|
||||
|
||||
private:
|
||||
G4OpticalPhoton (
|
||||
const G4String& aName, G4double mass,
|
||||
G4double width, G4double charge,
|
||||
G4int iSpin, G4int iParity,
|
||||
G4int iConjugation, G4int iIsospin,
|
||||
G4int iIsospin3, G4int gParity,
|
||||
const G4String& pType, G4int lepton,
|
||||
G4int baryon, G4int encoding,
|
||||
G4bool stable, G4double lifetime,
|
||||
G4DecayTable *decaytable
|
||||
);
|
||||
|
||||
public:
|
||||
static G4OpticalPhoton* OpticalPhotonDefinition();
|
||||
static G4OpticalPhoton* OpticalPhoton();
|
||||
static G4double GetCuts() {return theOpticalPhotonLengthCut;}
|
||||
static G4double* GetCutsInEnergy() {return theOpticalPhotonKineticEnergyCuts;};
|
||||
void SetCuts(G4double aCut);
|
||||
};
|
||||
|
||||
inline G4OpticalPhoton* G4OpticalPhoton::OpticalPhoton()
|
||||
{ return &theOpticalPhoton; }
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
// 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: G4VBoson.hh,v 2.2 1998/07/13 17:14:41 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
// History: first implementation, based on object model of
|
||||
// 2nd December 1995, G.Cosmo
|
||||
// Revised, Hisaya Kurashige, 15 Dec 1996
|
||||
// Revised, Hisaya Kurashige, 24 Feb 1997
|
||||
// ------------------------------------------------------------
|
||||
|
||||
#ifndef G4VBoson_h
|
||||
#define G4VBoson_h 1
|
||||
|
||||
#include "G4ios.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4Material.hh"
|
||||
|
||||
#include "G4PhysicsLogVector.hh"
|
||||
#include "G4ParticleWithCuts.hh"
|
||||
|
||||
class G4VBoson : public G4ParticleWithCuts
|
||||
{
|
||||
// A virtual class for Bosons particles. It defines
|
||||
// public methods which describe the behavior of a
|
||||
// boson.
|
||||
|
||||
private:
|
||||
|
||||
const G4VBoson & operator=(const G4VBoson &right);
|
||||
|
||||
public:
|
||||
|
||||
G4VBoson(const G4String& aName,
|
||||
G4double mass,
|
||||
G4double width,
|
||||
G4double charge,
|
||||
G4int iSpin,
|
||||
G4int iParity,
|
||||
G4int iConjugation,
|
||||
G4int iIsospin,
|
||||
G4int iIsospinZ,
|
||||
G4int gParity,
|
||||
const G4String& pType,
|
||||
G4int lepton,
|
||||
G4int baryon,
|
||||
G4int encoding,
|
||||
G4bool stable,
|
||||
G4double lifetime,
|
||||
G4DecayTable *decaytable)
|
||||
: G4ParticleWithCuts(aName, mass, width, charge, iSpin, iParity,
|
||||
iConjugation, iIsospin, iIsospinZ, gParity,
|
||||
pType, lepton, baryon, encoding, stable,
|
||||
lifetime, decaytable) {};
|
||||
|
||||
virtual ~G4VBoson() {};
|
||||
|
||||
G4int operator==(const G4VBoson &right) const;
|
||||
G4int operator!=(const G4VBoson &right) const;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user