Import Geant4 0.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-01 15:25:35 +02:00
parent 54d6b71f95
commit b97f8d0df7
3237 changed files with 807095 additions and 0 deletions
@@ -0,0 +1,70 @@
// 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: G4AntiNeutrinoE.hh,v 2.3 1998/09/24 05:49:36 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 G4VLepton
// corresponds to a particle type; one and only one
// instance for each class is guaranteed.
#ifndef G4AntiNeutrinoE_h
#define G4AntiNeutrinoE_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VLepton.hh"
// ######################################################################
// ### ANTI NEUTRINO ###
// ######################################################################
class G4AntiNeutrinoE : public G4VLepton
{
private:
static G4AntiNeutrinoE theAntiNeutrinoE;
static G4double theAntiNeutrinoELengthCut;
static G4double* theAntiNeutrinoEKineticEnergyCuts;
private: // constructors are hide as private
G4AntiNeutrinoE(
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 G4AntiNeutrinoE* AntiNeutrinoEDefinition();
static G4AntiNeutrinoE* AntiNeutrinoE(){return &theAntiNeutrinoE;}
static G4double GetCuts() {return theAntiNeutrinoELengthCut;}
static G4double* GetCutsInEnergy() {return theAntiNeutrinoEKineticEnergyCuts;};
void SetCuts(G4double aCut);
};
#endif
@@ -0,0 +1,69 @@
// 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: G4AntiNeutrinoMu.hh,v 2.3 1998/09/24 05:49:40 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 G4VLepton
// corresponds to a particle type; one and only one
// instance for each class is guaranteed.
#ifndef G4AntiNeutrinoMu_h
#define G4AntiNeutrinoMu_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VLepton.hh"
// ######################################################################
// ### ANTI NEUTRINO ###
// ######################################################################
class G4AntiNeutrinoMu : public G4VLepton
{
private:
static G4AntiNeutrinoMu theAntiNeutrinoMu;
static G4double theAntiNeutrinoMuLengthCut;
static G4double* theAntiNeutrinoMuKineticEnergyCuts;
private: // constructors are hide as private
G4AntiNeutrinoMu(
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 G4AntiNeutrinoMu* AntiNeutrinoMuDefinition();
static G4AntiNeutrinoMu* AntiNeutrinoMu() {return &theAntiNeutrinoMu;}
static G4double GetCuts() {return theAntiNeutrinoMuLengthCut;}
static G4double* GetCutsInEnergy() {return theAntiNeutrinoMuKineticEnergyCuts;};
void SetCuts(G4double aCut);
};
#endif
@@ -0,0 +1,68 @@
// 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: G4AntiNeutrinoTau.hh,v 2.3 1998/09/24 05:49:43 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 G4VLepton
// corresponds to a particle type; one and only one
// instance for each class is guaranteed.
#ifndef G4AntiNeutrinoTau_h
#define G4AntiNeutrinoTau_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VLepton.hh"
// ######################################################################
// ### ANTI NEUTRINO ###
// ######################################################################
class G4AntiNeutrinoTau : public G4VLepton
{
private:
static G4AntiNeutrinoTau theAntiNeutrinoTau;
static G4double theAntiNeutrinoTauLengthCut;
static G4double* theAntiNeutrinoTauKineticEnergyCuts;
private: // constructors are hide as private
G4AntiNeutrinoTau(
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 G4AntiNeutrinoTau* AntiNeutrinoTauDefinition();
static G4AntiNeutrinoTau* AntiNeutrinoTau(){return &theAntiNeutrinoTau;}
static G4double GetCuts() {return theAntiNeutrinoTauLengthCut;}
static G4double* GetCutsInEnergy() {return theAntiNeutrinoTauKineticEnergyCuts;};
void SetCuts(G4double aCut);
};
#endif
@@ -0,0 +1,101 @@
// 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: G4Electron.hh,v 2.3 1998/09/24 05:49:46 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
// Added SetCuts implementation for Electron, L.Urban, 30 May 1996
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
// ----------------------------------------------------------------
// Each class inheriting from G4VLepton
// corresponds to a particle type; one and only one
// instance for each class is guaranteed.
#ifndef G4Electron_h
#define G4Electron_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VLepton.hh"
class G4Positron;
// ######################################################################
// ### ELECTRON ###
// ######################################################################
class G4Electron : public G4VLepton
{
friend class G4Positron;
private:
static G4Electron theElectron;
static G4double theElectronLengthCut;
static G4double* theElectronKineticEnergyCuts;
protected:
G4double ComputeLoss(G4double AtomicNumber, G4double KineticEnergy) const;
void BuildRangeVector(
const G4Material* aMaterial,
const G4LossTable* aLossTable,
G4double maxEnergy,
G4double aMass,
G4RangeVector* rangeVector
);
private: //hide constructor as private
G4Electron(
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 G4Electron* ElectronDefinition();
static G4Electron* Electron();
static G4double GetCuts() {return theElectronLengthCut;}
static G4double* GetCutsInEnergy() {return theElectronKineticEnergyCuts;};
void SetCuts(G4double aCut);
};
inline void G4Electron::SetCuts(G4double aCut)
{
CalcEnergyCuts(aCut);
theElectronLengthCut = theCutInMaxInteractionLength;
theElectronKineticEnergyCuts = theKineticEnergyCuts;
}
inline G4Electron* G4Electron::Electron()
{ return &theElectron; }
#endif
@@ -0,0 +1,39 @@
// 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: G4LeptonConstructor.hh,v 2.1 1998/07/13 17:17:25 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
//
//
// --------------------------------------------------------------
// GEANT 4 class implementatLepton file
//
#ifndef G4LeptonConstructor_h
#define G4LeptonConstructor_h 1
#include "globals.hh"
#include "G4ios.hh"
class G4LeptonConstructor
{
//This class is a utility class for constructLepton
//short lived particles
public:
G4LeptonConstructor();
~G4LeptonConstructor();
public:
void ConstructParticle();
protected:
void ConstructELeptons();
void ConstructMuLeptons();
void ConstructTauLeptons();
};
#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: G4MuonMinus.hh,v 2.3 1998/09/24 05:49:49 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
// Added SetCuts, L.Urban, 12 June 1996
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
// ----------------------------------------------------------------
// Each class inheriting from G4VLepton
// corresponds to a particle type; one and only one
// instance for each class is guaranteed.
#ifndef G4MuonMinus_h
#define G4MuonMinus_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VLepton.hh"
// ######################################################################
// ### MUONMINUS ###
// ######################################################################
class G4MuonMinus : public G4VLepton
{
private:
static G4MuonMinus theMuonMinus;
static G4double theMuonMinusLengthCut;
static G4double* theMuonMinusKineticEnergyCuts;
private: // constructors are hide as private
G4MuonMinus(
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 G4MuonMinus* MuonMinusDefinition();
static G4MuonMinus* MuonMinus();
static G4double GetCuts() {return theMuonMinusLengthCut;}
static G4double* GetCutsInEnergy() {return theMuonMinusKineticEnergyCuts;};
void SetCuts(G4double aCut);
};
inline void G4MuonMinus::SetCuts(G4double aCut)
{
CalcEnergyCuts(aCut);
theMuonMinusLengthCut = theCutInMaxInteractionLength;
theMuonMinusKineticEnergyCuts = theKineticEnergyCuts;
}
inline G4MuonMinus* G4MuonMinus::MuonMinus()
{ return &theMuonMinus; }
#endif
@@ -0,0 +1,87 @@
// 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: G4MuonPlus.hh,v 2.3 1998/09/24 05:49:53 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
// Added SetCuts, L.Urban, 12 June 1996
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
// ----------------------------------------------------------------
// Each class inheriting from G4VLepton
// corresponds to a particle type; one and only one
// instance for each class is guaranteed.
#ifndef G4MuonPlus_h
#define G4MuonPlus_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VLepton.hh"
// ######################################################################
// ### MUONPLUS ###
// ######################################################################
class G4MuonPlus : public G4VLepton
{
private:
static G4MuonPlus theMuonPlus;
static G4double theMuonPlusLengthCut;
static G4double* theMuonPlusKineticEnergyCuts;
private: // constructors are hide as private
G4MuonPlus(
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 G4MuonPlus* MuonPlusDefinition();
static G4MuonPlus* MuonPlus();
static G4double GetCuts() {return theMuonPlusLengthCut;}
static G4double* GetCutsInEnergy() {return theMuonPlusKineticEnergyCuts;};
void SetCuts(G4double aCut);
};
inline void G4MuonPlus::SetCuts(G4double aCut)
{
CalcEnergyCuts(aCut);
theMuonPlusLengthCut = theCutInMaxInteractionLength;
theMuonPlusKineticEnergyCuts = theKineticEnergyCuts;
}
inline G4MuonPlus* G4MuonPlus::MuonPlus()
{ return &theMuonPlus; }
#endif
@@ -0,0 +1,69 @@
// 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: G4NeutrinoE.hh,v 2.3 1998/09/24 05:49:56 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 G4VLepton
// corresponds to a particle type; one and only one
// instance for each class is guaranteed.
#ifndef G4NeutrinoE_h
#define G4NeutrinoE_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VLepton.hh"
// ######################################################################
// ### NEUTRINO ###
// ######################################################################
class G4NeutrinoE : public G4VLepton
{
private:
static G4NeutrinoE theNeutrinoE;
static G4double theNeutrinoELengthCut;
static G4double* theNeutrinoEKineticEnergyCuts;
private:
G4NeutrinoE(
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 G4NeutrinoE* NeutrinoEDefinition();
static G4NeutrinoE* NeutrinoE(){return &theNeutrinoE;}
static G4double GetCuts() {return theNeutrinoELengthCut;}
static G4double* GetCutsInEnergy() {return theNeutrinoEKineticEnergyCuts;};
void SetCuts(G4double aCut);
};
#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: G4NeutrinoMu.hh,v 2.3 1998/09/24 05:50:00 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 G4VLepton
// corresponds to a particle type; one and only one
// instance for each class is guaranteed.
#ifndef G4NeutrinoMu_h
#define G4NeutrinoMu_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VLepton.hh"
// ######################################################################
// ### NEUTRINO ###
// ######################################################################
class G4NeutrinoMu : public G4VLepton
{
private:
static G4NeutrinoMu theNeutrinoMu;
static G4double theNeutrinoMuLengthCut;
static G4double* theNeutrinoMuKineticEnergyCuts;
private:
G4NeutrinoMu(
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 G4NeutrinoMu* NeutrinoMuDefinition();
static G4NeutrinoMu* NeutrinoMu() {return &theNeutrinoMu;}
static G4double GetCuts() {return theNeutrinoMuLengthCut;}
static G4double* GetCutsInEnergy() {return theNeutrinoMuKineticEnergyCuts;};
void SetCuts(G4double aCut);
};
#endif
@@ -0,0 +1,67 @@
// 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: G4NeutrinoTau.hh,v 2.3 1998/09/24 05:50:06 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 G4VLepton
// corresponds to a particle type; one and only one
// instance for each class is guaranteed.
#ifndef G4NeutrinoTau_h
#define G4NeutrinoTau_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VLepton.hh"
// ######################################################################
// ### NEUTRINO ###
// ######################################################################
class G4NeutrinoTau : public G4VLepton
{
private:
static G4NeutrinoTau theNeutrinoTau;
static G4double theNeutrinoTauLengthCut;
static G4double* theNeutrinoTauKineticEnergyCuts;
private:
G4NeutrinoTau(
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 G4NeutrinoTau* NeutrinoTauDefinition();
static G4NeutrinoTau* NeutrinoTau() {return &theNeutrinoTau;}
static G4double GetCuts() {return theNeutrinoTauLengthCut;}
static G4double* GetCutsInEnergy() {return theNeutrinoTauKineticEnergyCuts;};
void SetCuts(G4double aCut);
};
#endif
@@ -0,0 +1,103 @@
// 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: G4Positron.hh,v 2.3 1998/09/24 05:50: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 SetCuts, L.Urban, 12 June 1996
// Revised, Hisaya Kurashige, 4 July 1996
// Revised, Hisaya Kurashige, 7 July 1996
// Added not static GetEnergyCuts() and GetLengthCuts(), G.Cosmo, 11 July 1996
// Revised, Hisaya Kurashige, 15 Dec 1996
// ----------------------------------------------------------------
// Each class inheriting from G4VLepton
// corresponds to a particle type; one and only one
// instance for each class is guaranteed.
#ifndef G4Positron_h
#define G4Positron_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VLepton.hh"
#include "G4Electron.hh"
// ######################################################################
// ### POSITRON ###
// ######################################################################
class G4Positron : public G4VLepton
{
private:
static G4Positron thePositron;
static G4double thePositronLengthCut;
static G4double* thePositronKineticEnergyCuts;
protected:
G4double ComputeLoss(G4double AtomicNumber, G4double KineticEnergy) const;
void BuildRangeVector( const G4Material* aMaterial,
const G4LossTable* aLossTable,
G4double maxEnergy,
G4double aMass,
G4RangeVector* rangeVector
);
friend void G4Electron::BuildRangeVector(
const G4Material* aMaterial,
const G4LossTable* aLossTable,
G4double maxEnergy,
G4double aMass,
G4RangeVector* rangeVector
);
private: //hide constructor as private
G4Positron(
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 G4Positron* PositronDefinition();
static G4Positron* Positron();
static G4double GetCuts() {return thePositronLengthCut;}
static G4double* GetCutsInEnergy() {return thePositronKineticEnergyCuts;};
void SetCuts(G4double aCut);
};
inline void G4Positron::SetCuts(G4double aCut)
{
CalcEnergyCuts(aCut);
thePositronLengthCut = theCutInMaxInteractionLength;
thePositronKineticEnergyCuts = theKineticEnergyCuts;
}
inline G4Positron* G4Positron::Positron()
{ return &thePositron; }
#endif
@@ -0,0 +1,83 @@
// 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: G4TauMinus.hh,v 2.3 1998/09/24 05:50:13 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 G4VLepton
// corresponds to a particle type; one and only one
// instance for each class is guaranteed.
#ifndef G4TauMinus_h
#define G4TauMinus_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VLepton.hh"
// ######################################################################
// ### TAUMINUS ###
// ######################################################################
class G4TauMinus : public G4VLepton
{
private:
static G4TauMinus theTauMinus;
static G4double theTauMinusLengthCut;
static G4double* theTauMinusKineticEnergyCuts;
private: // constructors are hide as private
G4TauMinus(
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 G4TauMinus* TauMinusDefinition();
static G4TauMinus* TauMinus();
static G4double GetCuts() {return theTauMinusLengthCut;}
static G4double* GetCutsInEnergy() {return theTauMinusKineticEnergyCuts;};
void SetCuts(G4double aCut);
};
inline void G4TauMinus::SetCuts(G4double aCut)
{
CalcEnergyCuts(aCut);
theTauMinusLengthCut = theCutInMaxInteractionLength;
theTauMinusKineticEnergyCuts = theKineticEnergyCuts;
}
inline G4TauMinus* G4TauMinus::TauMinus()
{ return &theTauMinus; }
#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: G4TauPlus.hh,v 2.3 1998/09/24 05:50:15 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 G4VLepton
// corresponds to a particle type; one and only one
// instance for each class is guaranteed.
#ifndef G4TauPlus_h
#define G4TauPlus_h 1
#include "globals.hh"
#include "G4ios.hh"
#include "G4VLepton.hh"
// ######################################################################
// ### TAUPLUS ###
// ######################################################################
class G4TauPlus : public G4VLepton
{
private:
static G4TauPlus theTauPlus;
static G4double theTauPlusLengthCut;
static G4double* theTauPlusKineticEnergyCuts;
private: // constructors are hide as private
G4TauPlus(
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 G4TauPlus* TauPlusDefinition();
static G4TauPlus* TauPlus();
static G4double GetCuts() {return theTauPlusLengthCut;}
static G4double* GetCutsInEnergy() {return theTauPlusKineticEnergyCuts;};
void SetCuts(G4double aCut);
};
inline void G4TauPlus::SetCuts(G4double aCut)
{
CalcEnergyCuts(aCut);
theTauPlusLengthCut = theCutInMaxInteractionLength;
theTauPlusKineticEnergyCuts = theKineticEnergyCuts;
}
inline G4TauPlus* G4TauPlus::TauPlus()
{ return &theTauPlus; }
#endif
@@ -0,0 +1,75 @@
// 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: G4VLepton.hh,v 2.2 1998/07/13 17:17:37 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 Frb 1997
// ------------------------------------------------------------
#ifndef G4VLepton_h
#define G4VLepton_h 1
#include "G4ios.hh"
#include "globals.hh"
#include "G4Material.hh"
#include "G4PhysicsLogVector.hh"
#include "G4ParticleWithCuts.hh"
class G4VLepton : public G4ParticleWithCuts
{
// A virtual class for Leptons particles. It defines
// public methods which describe the behavior of a
// lepton.
private:
const G4VLepton & operator=(const G4VLepton &right);
public:
G4VLepton(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 ~G4VLepton() {};
G4int operator==(const G4VLepton &right) const;
G4int operator!=(const G4VLepton &right) const;
};
#endif