Import Geant4 8.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:36:02 +02:00
parent d93e1e39a9
commit 8a51e0bc40
5471 changed files with 99628 additions and 55248 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4AntiNeutrinoE.hh,v 1.9 2002/12/16 11:15:41 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4AntiNeutrinoE.hh,v 1.11 2005/01/14 03:49:16 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,50 +31,31 @@
// 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
// New implementation as a utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------
// 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"
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### ANTI NEUTRINO ###
// ### ANTI NEUTRINO E ###
// ######################################################################
class G4AntiNeutrinoE : public G4VLepton
class G4AntiNeutrinoE : public G4ParticleDefinition
{
private:
static G4AntiNeutrinoE theAntiNeutrinoE;
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
);
static G4AntiNeutrinoE* theInstance;
G4AntiNeutrinoE(){}
~G4AntiNeutrinoE(){}
public:
virtual ~G4AntiNeutrinoE(){}
static G4AntiNeutrinoE* Definition();
static G4AntiNeutrinoE* AntiNeutrinoEDefinition();
static G4AntiNeutrinoE* AntiNeutrinoE();
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4AntiNeutrinoMu.hh,v 1.9 2002/12/16 11:15:41 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4AntiNeutrinoMu.hh,v 1.11 2005/01/14 03:49:17 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,50 +31,31 @@
// 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
// New implementation as a utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------
// 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"
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### ANTI NEUTRINO ###
// ### ANTI NEUTRINO MU ###
// ######################################################################
class G4AntiNeutrinoMu : public G4VLepton
class G4AntiNeutrinoMu : public G4ParticleDefinition
{
private:
static G4AntiNeutrinoMu theAntiNeutrinoMu;
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
);
static G4AntiNeutrinoMu* theInstance;
G4AntiNeutrinoMu(){}
~G4AntiNeutrinoMu(){}
public:
virtual ~G4AntiNeutrinoMu(){}
static G4AntiNeutrinoMu* Definition();
static G4AntiNeutrinoMu* AntiNeutrinoMuDefinition();
static G4AntiNeutrinoMu* AntiNeutrinoMu();
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4AntiNeutrinoTau.hh,v 1.9 2002/12/16 11:15:41 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4AntiNeutrinoTau.hh,v 1.12 2005/01/30 22:58:04 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,49 +31,31 @@
// 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
// New implementation as a utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------
// 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"
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### ANTI NEUTRINO ###
// ### ANTI NEUTRINO TAU ###
// ######################################################################
class G4AntiNeutrinoTau : public G4VLepton
class G4AntiNeutrinoTau : public G4ParticleDefinition
{
private:
static G4AntiNeutrinoTau theAntiNeutrinoTau;
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
);
static G4AntiNeutrinoTau* theInstance;
G4AntiNeutrinoTau(){}
~G4AntiNeutrinoTau(){}
public:
virtual ~G4AntiNeutrinoTau(){}
static G4AntiNeutrinoTau* Definition();
static G4AntiNeutrinoTau* AntiNeutrinoTauDefinition();
static G4AntiNeutrinoTau* AntiNeutrinoTau();
};
#endif
+10 -30
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Electron.hh,v 1.8 2002/12/16 11:15:42 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4Electron.hh,v 1.11 2005/01/30 22:58:04 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,51 +31,31 @@
// 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
// New implementation as a utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------
// 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;
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### ELECTRON ###
// ######################################################################
class G4Electron : public G4VLepton
class G4Electron : public G4ParticleDefinition
{
friend class G4Positron;
private:
static G4Electron theElectron;
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
);
static G4Electron* theInstance;
G4Electron(){}
~G4Electron(){}
public:
virtual ~G4Electron(){}
static G4Electron* Definition();
static G4Electron* ElectronDefinition();
static G4Electron* Electron();
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4LeptonConstructor.hh,v 1.3 2001/07/11 10:01:52 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4LeptonConstructor.hh,v 1.5 2005/09/30 22:59:05 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// --------------------------------------------------------------
@@ -37,19 +37,18 @@
class G4LeptonConstructor
{
//This class is a utility class for constructLepton
//short lived particles
public:
G4LeptonConstructor();
~G4LeptonConstructor();
public:
void ConstructParticle();
static void ConstructParticle();
protected:
void ConstructELeptons();
void ConstructMuLeptons();
void ConstructTauLeptons();
static void ConstructELeptons();
static void ConstructMuLeptons();
static void ConstructTauLeptons();
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4MuonMinus.hh,v 1.7 2001/10/16 08:16:15 kurasige Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4MuonMinus.hh,v 1.10 2005/01/30 22:58:04 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,52 +31,33 @@
// 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
// New implementation as a utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------
// 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"
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### MUONMINUS ###
// ######################################################################
class G4MuonMinus : public G4VLepton
class G4MuonMinus : public G4ParticleDefinition
{
private:
static G4MuonMinus theMuonMinus;
static G4MuonMinus* theInstance;
G4MuonMinus(){}
~G4MuonMinus(){}
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:
virtual ~G4MuonMinus(){}
static G4MuonMinus* Definition();
static G4MuonMinus* MuonMinusDefinition();
static G4MuonMinus* MuonMinus();
};
#endif
+9 -28
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4MuonPlus.hh,v 1.7 2001/10/16 08:16:15 kurasige Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4MuonPlus.hh,v 1.9 2005/01/14 03:49:17 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,52 +31,33 @@
// 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
// New implementation as a utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------
// 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"
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### MUONPLUS ###
// ######################################################################
class G4MuonPlus : public G4VLepton
class G4MuonPlus : public G4ParticleDefinition
{
private:
static G4MuonPlus theMuonPlus;
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
);
static G4MuonPlus* theInstance;
G4MuonPlus(){}
~G4MuonPlus(){}
public:
virtual ~G4MuonPlus(){}
static G4MuonPlus* Definition();
static G4MuonPlus* MuonPlusDefinition();
static G4MuonPlus* MuonPlus();
};
#endif
+11 -30
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4NeutrinoE.hh,v 1.9 2002/12/16 11:15:42 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4NeutrinoE.hh,v 1.11 2005/01/14 03:49:17 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,50 +31,31 @@
// 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
// New implementation as a utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------
// 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"
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### NEUTRINO ###
// ### NEUTRINO E ###
// ######################################################################
class G4NeutrinoE : public G4VLepton
class G4NeutrinoE : public G4ParticleDefinition
{
private:
static G4NeutrinoE theNeutrinoE;
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:
virtual ~G4NeutrinoE(){}
static G4NeutrinoE* theInstance;
G4NeutrinoE(){}
~G4NeutrinoE(){}
public:
static G4NeutrinoE* Definition();
static G4NeutrinoE* NeutrinoEDefinition();
static G4NeutrinoE* NeutrinoE();
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4NeutrinoMu.hh,v 1.9 2002/12/16 11:15:42 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4NeutrinoMu.hh,v 1.11 2005/01/14 03:49:17 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,49 +31,31 @@
// 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
// New implementation as a utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------
// 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"
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### NEUTRINO ###
// ### NEUTRINO MU ###
// ######################################################################
class G4NeutrinoMu : public G4VLepton
class G4NeutrinoMu : public G4ParticleDefinition
{
private:
static G4NeutrinoMu theNeutrinoMu;
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
);
static G4NeutrinoMu* theInstance;
G4NeutrinoMu(){}
~G4NeutrinoMu(){}
public:
virtual ~G4NeutrinoMu(){}
static G4NeutrinoMu* Definition();
static G4NeutrinoMu* NeutrinoMuDefinition();
static G4NeutrinoMu* NeutrinoMu();
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4NeutrinoTau.hh,v 1.9 2002/12/16 11:15:42 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4NeutrinoTau.hh,v 1.12 2005/01/30 22:58:04 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,48 +31,31 @@
// 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
// New implementation as a utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------
// 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"
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### NEUTRINO ###
// ### NEUTRINO TAU ###
// ######################################################################
class G4NeutrinoTau : public G4VLepton
class G4NeutrinoTau : public G4ParticleDefinition
{
private:
static G4NeutrinoTau theNeutrinoTau;
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
);
static G4NeutrinoTau* theInstance;
G4NeutrinoTau(){}
~G4NeutrinoTau(){}
public:
virtual ~G4NeutrinoTau(){}
static G4NeutrinoTau* Definition();
static G4NeutrinoTau* NeutrinoTauDefinition();
static G4NeutrinoTau* NeutrinoTau();
};
#endif
+10 -31
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Positron.hh,v 1.8 2002/12/16 11:15:42 gcosmo Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4Positron.hh,v 1.10 2005/01/14 03:49:17 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,51 +31,30 @@
// 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
// New implementation as a utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------
// 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"
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### POSITRON ###
// ######################################################################
class G4Positron : public G4VLepton
class G4Positron : public G4ParticleDefinition
{
private:
static G4Positron thePositron;
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
);
static G4Positron* theInstance;
G4Positron(){}
~G4Positron(){}
public:
virtual ~G4Positron(){};
static G4Positron* Definition();
static G4Positron* PositronDefinition();
static G4Positron* Positron();
};
+11 -31
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4TauMinus.hh,v 1.7 2001/10/16 08:16:16 kurasige Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4TauMinus.hh,v 1.9 2005/01/14 03:49:17 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,53 +31,33 @@
// 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
// New implementation as a utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------
// 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"
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### TAUMINUS ###
// ######################################################################
class G4TauMinus : public G4VLepton
class G4TauMinus : public G4ParticleDefinition
{
private:
static G4TauMinus theTauMinus;
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
);
static G4TauMinus* theInstance;
G4TauMinus(){}
~G4TauMinus(){}
public:
virtual ~G4TauMinus(){}
static G4TauMinus* TauMinusDefinition();
static G4TauMinus* TauMinus();
static G4TauMinus* Definition();
static G4TauMinus* TauMinusDefinition();
static G4TauMinus* TauMinus();
};
#endif
+11 -32
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4TauPlus.hh,v 1.7 2001/10/16 08:16:16 kurasige Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4TauPlus.hh,v 1.9 2005/01/14 03:49:17 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ------------------------------------------------------------
@@ -31,53 +31,32 @@
// 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
// New implementation as a utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------
// 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"
#include "G4ParticleDefinition.hh"
// ######################################################################
// ### TAUPLUS ###
// ######################################################################
class G4TauPlus : public G4VLepton
class G4TauPlus : public G4ParticleDefinition
{
private:
static G4TauPlus theTauPlus;
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
);
static G4TauPlus* theInstance;
G4TauPlus(){}
~G4TauPlus(){}
public:
virtual ~G4TauPlus(){}
static G4TauPlus* TauPlusDefinition();
static G4TauPlus* TauPlus();
static G4TauPlus* Definition();
static G4TauPlus* TauPlusDefinition();
static G4TauPlus* TauPlus();
};
#endif
@@ -1,87 +0,0 @@
//
// ********************************************************************
// * 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: G4VLepton.hh,v 1.5 2004/07/26 08:16:40 kurasige Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// ------------------------------------------------------------
// GEANT 4 class header file
//
// 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 "G4ParticleDefinition.hh"
class G4VLepton : public G4ParticleDefinition
{
// 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)
: G4ParticleDefinition(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
+44 -44
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4AntiNeutrinoE.cc,v 1.12 2003/06/16 16:57:50 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4AntiNeutrinoE.cc,v 1.14 2005/01/14 03:49:17 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -31,57 +31,57 @@
// History: first implementation, based on object model of
// 4th April 1996, G.Cosmo by H.Kurashige,7 July 1996
// **********************************************************************
#include <fstream>
#include <iomanip>
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include "G4AntiNeutrinoE.hh"
#include "G4ParticleTable.hh"
// ######################################################################
// ### ANTI NEUTRINO ###
// ### ANTI NEUTRINO E ###
// ######################################################################
G4AntiNeutrinoE::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 )
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
G4AntiNeutrinoE* G4AntiNeutrinoE::theInstance = 0;
G4AntiNeutrinoE* G4AntiNeutrinoE::Definition()
{
SetParticleSubType("e");
}
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
//
G4AntiNeutrinoE G4AntiNeutrinoE::theAntiNeutrinoE(
"anti_nu_e", 0.0*MeV, 0.0*MeV, 0.0,
if (theInstance !=0) return theInstance;
const G4String name = "anti_nu_e";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
// shortlived subType anti_encoding
anInstance = new G4ParticleDefinition(
name, 0.0*MeV, 0.0*MeV, 0.0,
1, 0, 0,
0, 0, 0,
"lepton", -1, 0, -12,
true, 0.0, NULL
);
G4AntiNeutrinoE* G4AntiNeutrinoE::AntiNeutrinoEDefinition()
{
return &theAntiNeutrinoE;
}
G4AntiNeutrinoE* G4AntiNeutrinoE::AntiNeutrinoE()
{
return &theAntiNeutrinoE;
true, 0.0, NULL,
false, "e"
);
}
theInstance = reinterpret_cast<G4AntiNeutrinoE*>(anInstance);
return theInstance;
}
G4AntiNeutrinoE* G4AntiNeutrinoE::AntiNeutrinoEDefinition()
{
return Definition();
}
G4AntiNeutrinoE* G4AntiNeutrinoE::AntiNeutrinoE()
{
return Definition();
}
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4AntiNeutrinoMu.cc,v 1.12 2003/06/16 16:57:51 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4AntiNeutrinoMu.cc,v 1.14 2005/01/14 03:49:17 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -32,59 +32,55 @@
// 4th April 1996, G.Cosmo
// by H.Kurashige,7 July 1996
// **********************************************************************
#include <fstream>
#include <iomanip>
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include "G4AntiNeutrinoMu.hh"
#include "G4ParticleTable.hh"
// ######################################################################
// ### ANTI MU NEUTRINO ###
// ######################################################################
G4AntiNeutrinoMu* G4AntiNeutrinoMu::theInstance = 0;
G4AntiNeutrinoMu::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 )
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
G4AntiNeutrinoMu* G4AntiNeutrinoMu::Definition()
{
SetParticleSubType("mu");
}
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
//
G4AntiNeutrinoMu G4AntiNeutrinoMu::theAntiNeutrinoMu(
"anti_nu_mu", 0.0*MeV, 0.0*MeV, 0.0,
if (theInstance !=0) return theInstance;
const G4String name = "anti_nu_mu";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
// shortlived subType anti_encoding
anInstance = new G4ParticleDefinition(
name, 0.0*MeV, 0.0*MeV, 0.0,
1, 0, 0,
0, 0, 0,
"lepton", -1, 0, -14,
true, 0.0, NULL
);
G4AntiNeutrinoMu* G4AntiNeutrinoMu::AntiNeutrinoMuDefinition()
{
return &theAntiNeutrinoMu;
true, 0.0, NULL,
false, "mu"
);
}
theInstance = reinterpret_cast<G4AntiNeutrinoMu*>(anInstance);
return theInstance;
}
G4AntiNeutrinoMu* G4AntiNeutrinoMu::AntiNeutrinoMu()
G4AntiNeutrinoMu* G4AntiNeutrinoMu::AntiNeutrinoMuDefinition()
{
return &theAntiNeutrinoMu;
return Definition();
}
G4AntiNeutrinoMu* G4AntiNeutrinoMu::AntiNeutrinoMu()
{
return Definition();
}
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4AntiNeutrinoTau.cc,v 1.12 2003/06/16 16:57:52 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4AntiNeutrinoTau.cc,v 1.14 2005/01/14 03:49:17 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -32,59 +32,56 @@
// 4th April 1996, G.Cosmo
// by H.Kurashige,7 July 1996
// **********************************************************************
#include <fstream>
#include <iomanip>
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include "G4AntiNeutrinoTau.hh"
#include "G4ParticleTable.hh"
// ######################################################################
// ### ANTI TAU NEUTRINO ###
// ######################################################################
G4AntiNeutrinoTau* G4AntiNeutrinoTau::theInstance = 0;
G4AntiNeutrinoTau::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 )
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
G4AntiNeutrinoTau* G4AntiNeutrinoTau::Definition()
{
SetParticleSubType("tau");
}
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
//
G4AntiNeutrinoTau G4AntiNeutrinoTau::theAntiNeutrinoTau(
"anti_nu_tau", 0.0*MeV, 0.0*MeV, 0.0,
if (theInstance !=0) return theInstance;
const G4String name = "anti_nu_tau";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
// shortlived subType anti_encoding
anInstance = new G4ParticleDefinition(
name, 0.0*MeV, 0.0*MeV, 0.0,
1, 0, 0,
0, 0, 0,
"lepton", -1, 0, -16,
true, 0.0, NULL
);
G4AntiNeutrinoTau* G4AntiNeutrinoTau::AntiNeutrinoTauDefinition()
{
return &theAntiNeutrinoTau;
true, 0.0, NULL,
false, "tau"
);
}
theInstance = reinterpret_cast<G4AntiNeutrinoTau*>(anInstance);
return theInstance;
}
G4AntiNeutrinoTau* G4AntiNeutrinoTau::AntiNeutrinoTau()
G4AntiNeutrinoTau* G4AntiNeutrinoTau::AntiNeutrinoTauDefinition()
{
return &theAntiNeutrinoTau;
return Definition();
}
G4AntiNeutrinoTau* G4AntiNeutrinoTau::AntiNeutrinoTau()
{
return Definition();
}
+41 -51
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Electron.cc,v 1.9 2003/06/16 16:57:53 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4Electron.cc,v 1.11 2005/01/14 03:49:17 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -31,66 +31,56 @@
// History: first implementation, based on object model of
// 4th April 1996, G.Cosmo
// **********************************************************************
// Added particle definitions, H.Kurashige, 19 April 1996
// Added SetCuts implementation, L.Urban, 30 May 1996
// Revised, G.Cosmo, 6 June 1996
// Code uses operators (+=, *=, ++, -> etc.) correctly, P. Urban, 26/6/96
// Add ElectronDefinition() H.Kurashige 4 July 1996
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include <fstream>
#include <iomanip>
#include "G4Electron.hh"
#include "G4ParticleTable.hh"
// ######################################################################
// ### ELECTRON ###
// ######################################################################
G4Electron* G4Electron::theInstance = 0;
G4Electron::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 )
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
G4Electron* G4Electron::Definition()
{
SetParticleSubType("e");
}
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
G4Electron G4Electron::theElectron(
"e-", 0.51099906*MeV, 0.0*MeV, -1.*eplus,
if (theInstance !=0) return theInstance;
const G4String name = "e-";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
// shortlived subType anti_encoding
anInstance = new G4ParticleDefinition(
name, 0.51099906*MeV, 0.0*MeV, -1.*eplus,
1, 0, 0,
0, 0, 0,
"lepton", 1, 0, 11,
true, -1.0, NULL
);
G4Electron* G4Electron::ElectronDefinition(){return &theElectron;}
G4Electron* G4Electron::Electron()
{
return &theElectron;
true, -1.0, NULL,
false, "e"
);
}
theInstance = reinterpret_cast<G4Electron*>(anInstance);
return theInstance;
}
G4Electron* G4Electron::ElectronDefinition()
{
return Definition();
}
G4Electron* G4Electron::Electron()
{
return Definition();
}
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4LeptonConstructor.cc,v 1.3 2001/07/11 10:01:53 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4LeptonConstructor.cc,v 1.4 2004/09/02 01:52:40 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// --------------------------------------------------------------
+42 -51
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4MuonMinus.cc,v 1.8 2003/06/16 16:57:54 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4MuonMinus.cc,v 1.10 2005/01/14 03:49:17 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -31,16 +31,11 @@
// History: first implementation, based on object model of
// 4th April 1996, G.Cosmo
// **********************************************************************
// Added particle definitions, H.Kurashige, 19 April 1996
// Added SetCuts implementation, L.Urban, 12 June 1996
// Operators (+=, *=, ++, -> etc.) correctly used, P. Urban, 26/6/96
// Add MuonMinusDefinition(), H.Kurashige 4 July 1996
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include <fstream>
#include <iomanip>
#include "G4MuonMinus.hh"
#include "G4ParticleTable.hh"
#include "G4MuonDecayChannel.hh"
#include "G4DecayTable.hh"
@@ -48,57 +43,53 @@
// ######################################################################
// ### MUONMINUS ###
// ######################################################################
G4MuonMinus* G4MuonMinus::theInstance = 0;
G4MuonMinus::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 )
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
G4MuonMinus* G4MuonMinus::Definition()
{
SetParticleSubType("mu");
SetPDGStable(false);
if (theInstance !=0) return theInstance;
const G4String name = "mu-";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
// shortlived subType anti_encoding
anInstance = new G4ParticleDefinition(
name, 0.1056584*GeV, 2.99591e-16*MeV, -1.*eplus,
1, 0, 0,
0, 0, 0,
"lepton", 1, 0, 13,
false, 2197.03*ns, NULL,
false, "mu"
);
//create Decay Table
G4DecayTable* table = GetDecayTable();
if (table!=NULL) delete table;
table = new G4DecayTable();
G4DecayTable* table = new G4DecayTable();
// create a decay channel
G4VDecayChannel* mode = new G4MuonDecayChannel("mu-",1.00);
table->Insert(mode);
SetDecayTable(table);
anInstance->SetDecayTable(table);
}
theInstance = reinterpret_cast<G4MuonMinus*>(anInstance);
return theInstance;
}
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
G4MuonMinus G4MuonMinus::theMuonMinus(
"mu-", 0.1056584*GeV, 2.99591e-16*MeV, -1.*eplus,
1, 0, 0,
0, 0, 0,
"lepton", 1, 0, 13,
true, 2197.03*ns, NULL
);
G4MuonMinus* G4MuonMinus::MuonMinusDefinition() {return &theMuonMinus;}
G4MuonMinus* G4MuonMinus::MuonMinusDefinition()
{
return Definition();
}
G4MuonMinus* G4MuonMinus::MuonMinus()
{
return &theMuonMinus;
{
return Definition();
}
+44 -62
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4MuonPlus.cc,v 1.8 2003/06/16 16:57:55 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4MuonPlus.cc,v 1.10 2005/01/14 03:49:17 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -31,16 +31,11 @@
// History: first implementation, based on object model of
// 4th April 1996, G.Cosmo
// **********************************************************************
// Added particle definitions, H.Kurashige, 19 April 1996
// Added SetCuts implementation, L.Urban, 10 May 1996
// Operators (+=, *=, ++, -> etc.) correctly used, P. Urban, 26/6/96
// Add MuonPlusDefinition(), H.Kurashige 4 July 1996
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include <fstream>
#include <iomanip>
#include "G4MuonPlus.hh"
#include "G4ParticleTable.hh"
#include "G4MuonDecayChannel.hh"
#include "G4DecayTable.hh"
@@ -48,65 +43,52 @@
// ######################################################################
// ### MUONPLUS ###
// ######################################################################
G4MuonPlus* G4MuonPlus::theInstance = 0;
G4MuonPlus::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 )
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
G4MuonPlus* G4MuonPlus::Definition()
{
SetParticleSubType("mu");
SetPDGStable(false);
//create Decay Table
G4DecayTable* table = GetDecayTable();
if (table!=NULL) delete table;
table = new G4DecayTable();
// create a decay channel
G4VDecayChannel* mode = new G4MuonDecayChannel("mu+",1.00);
table->Insert(mode);
SetDecayTable(table);
}
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
G4MuonPlus G4MuonPlus::theMuonPlus(
"mu+", 0.1056584*GeV, 2.99591e-16*MeV, +1.*eplus,
if (theInstance !=0) return theInstance;
const G4String name = "mu+";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
// shortlived subType anti_encoding
anInstance = new G4ParticleDefinition(
name, 0.1056584*GeV, 2.99591e-16*MeV, +1.*eplus,
1, 0, 0,
0, 0, 0,
"lepton", -1, 0, -13,
true, 2197.03*ns, NULL
);
G4MuonPlus* G4MuonPlus::MuonPlusDefinition() {return &theMuonPlus;}
G4MuonPlus* G4MuonPlus::MuonPlus()
{
return &theMuonPlus;
false, 2197.03*ns, NULL,
false, "mu"
);
//create Decay Table
G4DecayTable* table = new G4DecayTable();
// create a decay channel
G4VDecayChannel* mode = new G4MuonDecayChannel("mu+",1.00);
table->Insert(mode);
anInstance->SetDecayTable(table);
}
theInstance = reinterpret_cast<G4MuonPlus*>(anInstance);
return theInstance;
}
G4MuonPlus* G4MuonPlus::MuonPlusDefinition()
{
return Definition();
}
G4MuonPlus* G4MuonPlus::MuonPlus()
{
return Definition();
}
+42 -39
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4NeutrinoE.cc,v 1.12 2003/06/16 16:57:56 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4NeutrinoE.cc,v 1.14 2005/01/14 03:49:17 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -32,52 +32,55 @@
// 4th April 1996, G.Cosmo
// by H.Kurashige,7 July 1996
// **********************************************************************
#include <fstream>
#include <iomanip>
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include "G4NeutrinoE.hh"
#include "G4ParticleTable.hh"
// ######################################################################
// ### NEUTRINO ###
// ### NEUTRINO E ###
// ######################################################################
G4NeutrinoE* G4NeutrinoE::theInstance = 0;
G4NeutrinoE::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 )
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
G4NeutrinoE* G4NeutrinoE::Definition()
{
SetParticleSubType("e");
}
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
G4NeutrinoE G4NeutrinoE::theNeutrinoE(
"nu_e", 0.0*MeV, 0.0*MeV, 0.0,
if (theInstance !=0) return theInstance;
const G4String name = "nu_e";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
// shortlived subType anti_encoding
anInstance = new G4ParticleDefinition(
name, 0.0*MeV, 0.0*MeV, 0.0,
1, 0, 0,
0, 0, 0,
"lepton", 1, 0, 12,
true, 0.0, NULL
);
true, 0.0, NULL,
false, "e"
);
}
theInstance = reinterpret_cast<G4NeutrinoE*>(anInstance);
return theInstance;
}
G4NeutrinoE* G4NeutrinoE::NeutrinoEDefinition() {return &theNeutrinoE;}
G4NeutrinoE* G4NeutrinoE::NeutrinoE() {return &theNeutrinoE;}
G4NeutrinoE* G4NeutrinoE::NeutrinoEDefinition()
{
return Definition();
}
G4NeutrinoE* G4NeutrinoE::NeutrinoE()
{
return Definition();
}
+39 -42
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4NeutrinoMu.cc,v 1.13 2003/06/16 16:57:57 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4NeutrinoMu.cc,v 1.15 2005/01/14 03:49:18 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -32,59 +32,56 @@
// 4th April 1996, G.Cosmo
// by H.Kurashige,7 July 1996
// **********************************************************************
#include <fstream>
#include <iomanip>
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include "G4NeutrinoMu.hh"
#include "G4ParticleTable.hh"
// ######################################################################
// ### MU NEUTRINO ###
// ######################################################################
G4NeutrinoMu* G4NeutrinoMu::theInstance = 0;
G4NeutrinoMu::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 )
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
G4NeutrinoMu* G4NeutrinoMu::Definition()
{
SetParticleSubType("mu");
}
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
G4NeutrinoMu G4NeutrinoMu::theNeutrinoMu(
"nu_mu", 0.0*MeV, 0.0*MeV, 0.0,
if (theInstance !=0) return theInstance;
const G4String name = "nu_mu";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
// shortlived subType anti_encoding
anInstance = new G4ParticleDefinition(
name, 0.0*MeV, 0.0*MeV, 0.0,
1, 0, 0,
0, 0, 0,
"lepton", 1, 0, 14,
true, 0.0, NULL
);
G4NeutrinoMu* G4NeutrinoMu::NeutrinoMuDefinition()
{
return &theNeutrinoMu;
true, 0.0, NULL,
false, "mu"
);
}
theInstance = reinterpret_cast<G4NeutrinoMu*>(anInstance);
return theInstance;
}
G4NeutrinoMu* G4NeutrinoMu::NeutrinoMu()
G4NeutrinoMu* G4NeutrinoMu::NeutrinoMuDefinition()
{
return &theNeutrinoMu;
return Definition();
}
G4NeutrinoMu* G4NeutrinoMu::NeutrinoMu()
{
return Definition();
}
+41 -38
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4NeutrinoTau.cc,v 1.12 2003/06/16 16:57:58 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4NeutrinoTau.cc,v 1.14 2005/01/14 03:49:18 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -32,52 +32,55 @@
// 4th April 1996, G.Cosmo
// by H.Kurashige,7 July 1996
// **********************************************************************
#include <fstream>
#include <iomanip>
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include "G4NeutrinoTau.hh"
#include "G4ParticleTable.hh"
// ######################################################################
// ### TAU NEUTRINO ###
// ######################################################################
G4NeutrinoTau* G4NeutrinoTau::theInstance = 0;
G4NeutrinoTau::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 )
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
G4NeutrinoTau* G4NeutrinoTau::Definition()
{
SetParticleSubType("tau");
}
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
G4NeutrinoTau G4NeutrinoTau::theNeutrinoTau(
"nu_tau", 0.0*MeV, 0.0*MeV, 0.0,
if (theInstance !=0) return theInstance;
const G4String name = "nu_tau";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
// shortlived subType anti_encoding
anInstance = new G4ParticleDefinition(
name, 0.0*MeV, 0.0*MeV, 0.0,
1, 0, 0,
0, 0, 0,
"lepton", 1, 0, 16,
true, 0.0, NULL
);
true, 0.0, NULL,
false, "tau"
);
}
theInstance = reinterpret_cast<G4NeutrinoTau*>(anInstance);
return theInstance;
}
G4NeutrinoTau* G4NeutrinoTau::NeutrinoTauDefinition(){return &theNeutrinoTau;}
G4NeutrinoTau* G4NeutrinoTau::NeutrinoTau(){return &theNeutrinoTau;}
G4NeutrinoTau* G4NeutrinoTau::NeutrinoTauDefinition()
{
return Definition();
}
G4NeutrinoTau* G4NeutrinoTau::NeutrinoTau()
{
return Definition();
}
+38 -42
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Positron.cc,v 1.8 2003/06/16 16:57:59 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4Positron.cc,v 1.10 2005/01/14 03:49:18 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -31,60 +31,56 @@
// History: first implementation, based on object model of
// 4th April 1996, G.Cosmo
// **********************************************************************
// Added particle definitions, H.Kurashige, 19 April 1996
// Added SetCuts implementation, L.Urban, 12 June 1996
// Code uses operators (+=, *=, ++, -> etc.) correctly, P. Urban, 26/6/96
// Add PositronDefinition(), H.Kurashige 4 July 1996
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include <fstream>
#include <iomanip>
#include "G4Positron.hh"
#include "G4ParticleTable.hh"
// ######################################################################
// ### POSITRON ###
// ######################################################################
G4Positron* G4Positron::theInstance = 0;
G4Positron::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 )
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
G4Positron* G4Positron::Definition()
{
SetParticleSubType("e");
}
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
G4Positron G4Positron::thePositron(
"e+", 0.51099906*MeV, 0.0*MeV, +1.*eplus,
if (theInstance !=0) return theInstance;
const G4String name = "e+";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
// shortlived subType anti_encoding
anInstance = new G4ParticleDefinition(
name, 0.51099906*MeV, 0.0*MeV, +1.*eplus,
1, 0, 0,
0, 0, 0,
"lepton", -1, 0, -11,
true, -1.0, NULL
);
true, -1.0, NULL,
false, "e"
);
}
theInstance = reinterpret_cast<G4Positron*>(anInstance);
return theInstance;
}
G4Positron* G4Positron::PositronDefinition() {return &thePositron;}
G4Positron* G4Positron::PositronDefinition()
{
return Definition();
}
G4Positron* G4Positron::Positron()
{
return &thePositron;
return Definition();
}
+78 -79
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4TauMinus.cc,v 1.10 2004/02/13 05:53:01 kurasige Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4TauMinus.cc,v 1.12 2005/01/14 03:49:18 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -32,11 +32,11 @@
// 4th April 1996, G.Cosmo
// 7 July 1996 H.Kurashige
// **********************************************************************
#include <fstream>
#include <iomanip>
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include "G4TauMinus.hh"
#include "G4ParticleTable.hh"
#include "G4PhaseSpaceDecayChannel.hh"
#include "G4TauLeptonicDecayChannel.hh"
@@ -45,88 +45,87 @@
// ######################################################################
// ### TAUMINUS ###
// ######################################################################
G4TauMinus* G4TauMinus::theInstance = 0;
G4TauMinus::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 )
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
G4TauMinus* G4TauMinus::Definition()
{
SetParticleSubType("tau");
SetPDGStable(false);
//create Decay Table
G4DecayTable* table = GetDecayTable();
if (table!=NULL) delete table;
table = new G4DecayTable();
// create decay channels
G4VDecayChannel** mode = new G4VDecayChannel*[6];
// tau- -> mu- + anti_nu_mu + nu_tau
mode[0] = new G4TauLeptonicDecayChannel("tau-",0.174,"mu-");
// tau- -> e- + anti_nu_e + nu_tau
mode[1] = new G4TauLeptonicDecayChannel("tau-",0.178,"e-");
// tau- -> pi- + nu_tau
mode[2] = new G4PhaseSpaceDecayChannel("tau-",0.113,2,"pi-","nu_tau");
// tau- -> pi0 + pi0 + pi- + nu_tau
mode[3] = new G4PhaseSpaceDecayChannel("tau-",0.252,3,"pi0","pi-","nu_tau");
// tau- -> pi0 + pi0 + pi- + nu_tau
mode[4] = new G4PhaseSpaceDecayChannel();
mode[4]->SetParent("tau-");
mode[4]->SetBR(0.093);
mode[4]->SetNumberOfDaughters(4);
mode[4]->SetDaughter(0,"pi0");
mode[4]->SetDaughter(1,"pi0");
mode[4]->SetDaughter(2,"pi-");
mode[4]->SetDaughter(3,"nu_tau");
// tau- -> pi- + pi- + pi+ + nu_tau
mode[5] = new G4PhaseSpaceDecayChannel();
mode[5]->SetParent("tau-");
mode[5]->SetBR(0.098);
mode[5]->SetNumberOfDaughters(4);
mode[5]->SetDaughter(0,"pi-");
mode[5]->SetDaughter(1,"pi-");
mode[5]->SetDaughter(2,"pi+");
mode[5]->SetDaughter(3,"nu_tau");
for (G4int index=0; index <6; index++ ) table->Insert(mode[index]);
delete [] mode;
SetDecayTable(table);
}
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
G4TauMinus G4TauMinus::theTauMinus(
"tau-", 1.77705*GeV, 2.265e-9*MeV, -1.*eplus,
if (theInstance !=0) return theInstance;
const G4String name = "tau-";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
// shortlived subType anti_encoding
anInstance = new G4ParticleDefinition(
name, 1.77705*GeV, 2.265e-9*MeV, -1.*eplus,
1, 0, 0,
0, 0, 0,
"lepton", 1, 0, 15,
true, 295.6e-6*ns, NULL
);
false, 295.6e-6*ns, NULL,
false, "tau"
);
G4TauMinus* G4TauMinus::TauMinusDefinition() {return &theTauMinus;}
//create Decay Table
G4DecayTable* table = new G4DecayTable();
// create decay channels
G4VDecayChannel* mode;
// tau- -> mu- + anti_nu_mu + nu_tau
mode = new G4TauLeptonicDecayChannel("tau-",0.174,"mu-");
table->Insert(mode);
// tau- -> e- + anti_nu_e + nu_tau
mode = new G4TauLeptonicDecayChannel("tau-",0.178,"e-");
table->Insert(mode);
// tau- -> pi- + nu_tau
mode = new G4PhaseSpaceDecayChannel("tau-",0.113,2,"pi-","nu_tau");
table->Insert(mode);
// tau- -> pi0 + pi0 + pi- + nu_tau
mode = new G4PhaseSpaceDecayChannel("tau-",0.252,3,"pi0","pi-","nu_tau");
table->Insert(mode);
// tau- -> pi0 + pi0 + pi- + nu_tau
mode = new G4PhaseSpaceDecayChannel();
mode->SetParent("tau-");
mode->SetBR(0.093);
mode->SetNumberOfDaughters(4);
mode->SetDaughter(0,"pi0");
mode->SetDaughter(1,"pi0");
mode->SetDaughter(2,"pi-");
mode->SetDaughter(3,"nu_tau");
table->Insert(mode);
// tau- -> pi- + pi- + pi+ + nu_tau
mode = new G4PhaseSpaceDecayChannel();
mode->SetParent("tau-");
mode->SetBR(0.098);
mode->SetNumberOfDaughters(4);
mode->SetDaughter(0,"pi-");
mode->SetDaughter(1,"pi-");
mode->SetDaughter(2,"pi+");
mode->SetDaughter(3,"nu_tau");
table->Insert(mode);
anInstance->SetDecayTable(table);
}
theInstance = reinterpret_cast<G4TauMinus*>(anInstance);
return theInstance;
}
G4TauMinus* G4TauMinus::TauMinusDefinition()
{
return Definition();
}
G4TauMinus* G4TauMinus::TauMinus()
{
return &theTauMinus;
{
return Definition();
}
+79 -81
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4TauPlus.cc,v 1.10 2004/02/13 05:53:01 kurasige Exp $
// GEANT4 tag $Name: geant4-07-01 $
// $Id: G4TauPlus.cc,v 1.12 2005/01/14 03:49:18 asaim Exp $
// GEANT4 tag $Name: geant4-08-00 $
//
//
// ----------------------------------------------------------------------
@@ -32,11 +32,11 @@
// 4th April 1996, G.Cosmo
// 7 July 1996 H.Kurashige
// **********************************************************************
#include <fstream>
#include <iomanip>
// New impelemenataion as an utility class M.Asai, 26 July 2004
// ----------------------------------------------------------------------
#include "G4TauPlus.hh"
#include "G4ParticleTable.hh"
#include "G4PhaseSpaceDecayChannel.hh"
#include "G4TauLeptonicDecayChannel.hh"
@@ -45,88 +45,86 @@
// ######################################################################
// ### TAPLUS ###
// ######################################################################
G4TauPlus* G4TauPlus::theInstance = 0;
G4TauPlus::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 )
: G4VLepton( aName,mass,width,charge,iSpin,iParity,
iConjugation,iIsospin,iIsospin3,gParity,pType,
lepton,baryon,encoding,stable,lifetime,decaytable )
G4TauPlus* G4TauPlus::Definition()
{
SetParticleSubType("tau");
SetPDGStable(false);
//create Decay Table
G4DecayTable* table = GetDecayTable();
if (table!=NULL) delete table;
table = new G4DecayTable();
// create decay channels
G4VDecayChannel** mode = new G4VDecayChannel*[6];
// tau+ -> mu+ + nu_mu + anti_nu_tau
mode[0] = new G4TauLeptonicDecayChannel("tau+",0.174,"mu+");
// tau+ -> e+ + nu_e + anti_nu_tau
mode[1] = new G4TauLeptonicDecayChannel("tau+",0.178,"e+");
// tau+ -> pi+ + anti_nu_tau
mode[2] = new G4PhaseSpaceDecayChannel("tau+",0.113,2,"pi+","anti_nu_tau");
// tau+ -> pi0 + pi0 + pi+ + anti_nu_tau
mode[3] = new G4PhaseSpaceDecayChannel("tau+",0.252,3,"pi0","pi+","anti_nu_tau");
// tau+ -> pi0 + pi0 + pi+ + anti_nu_tau
mode[4] = new G4PhaseSpaceDecayChannel();
mode[4]->SetParent("tau+");
mode[4]->SetBR(0.093);
mode[4]->SetNumberOfDaughters(4);
mode[4]->SetDaughter(0,"pi0");
mode[4]->SetDaughter(1,"pi0");
mode[4]->SetDaughter(2,"pi+");
mode[4]->SetDaughter(3,"anti_nu_tau");
// tau+ -> pi+ + pi+ + pi- + anti_nu_tau
mode[5] = new G4PhaseSpaceDecayChannel();
mode[5]->SetParent("tau+");
mode[5]->SetBR(0.098);
mode[5]->SetNumberOfDaughters(4);
mode[5]->SetDaughter(0,"pi+");
mode[5]->SetDaughter(1,"pi+");
mode[5]->SetDaughter(2,"pi-");
mode[5]->SetDaughter(3,"anti_nu_tau");
for (G4int index=0; index <6; index++ ) table->Insert(mode[index]);
delete [] mode;
SetDecayTable(table);
}
// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
//
G4TauPlus G4TauPlus::theTauPlus(
"tau+", 1.77705*GeV, 2.265e-9*MeV, 1.*eplus,
if (theInstance !=0) return theInstance;
const G4String name = "tau+";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
{
// create particle
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime decay table
// shortlived subType anti_encoding
anInstance = new G4ParticleDefinition(
name, 1.77705*GeV, 2.265e-9*MeV, 1.*eplus,
1, 0, 0,
0, 0, 0,
"lepton", -1, 0, -15,
true, 295.6e-6*ns, NULL
);
false, 295.6e-6*ns, NULL,
false, "tau"
);
G4TauPlus* G4TauPlus::TauPlusDefinition(){return &theTauPlus;}
//create Decay Table
G4DecayTable* table = new G4DecayTable();
G4TauPlus* G4TauPlus::TauPlus()
{
return &theTauPlus;
// create decay channels
G4VDecayChannel* mode;
// tau+ -> mu+ + nu_mu + anti_nu_tau
mode = new G4TauLeptonicDecayChannel("tau+",0.174,"mu+");
table->Insert(mode);
// tau+ -> e+ + nu_e + anti_nu_tau
mode = new G4TauLeptonicDecayChannel("tau+",0.178,"e+");
table->Insert(mode);
// tau+ -> pi+ + anti_nu_tau
mode = new G4PhaseSpaceDecayChannel("tau+",0.113,2,"pi+","anti_nu_tau");
table->Insert(mode);
// tau+ -> pi0 + pi0 + pi+ + anti_nu_tau
mode = new G4PhaseSpaceDecayChannel("tau+",0.252,3,"pi0","pi+","anti_nu_tau");
table->Insert(mode);
// tau+ -> pi0 + pi0 + pi+ + anti_nu_tau
mode = new G4PhaseSpaceDecayChannel();
mode->SetParent("tau+");
mode->SetBR(0.093);
mode->SetNumberOfDaughters(4);
mode->SetDaughter(0,"pi0");
mode->SetDaughter(1,"pi0");
mode->SetDaughter(2,"pi+");
mode->SetDaughter(3,"anti_nu_tau");
table->Insert(mode);
// tau+ -> pi+ + pi+ + pi- + anti_nu_tau
mode = new G4PhaseSpaceDecayChannel();
mode->SetParent("tau+");
mode->SetBR(0.098);
mode->SetNumberOfDaughters(4);
mode->SetDaughter(0,"pi+");
mode->SetDaughter(1,"pi+");
mode->SetDaughter(2,"pi-");
mode->SetDaughter(3,"anti_nu_tau");
table->Insert(mode);
anInstance->SetDecayTable(table);
}
theInstance = reinterpret_cast<G4TauPlus*>(anInstance);
return theInstance;
}
G4TauPlus* G4TauPlus::TauPlusDefinition()
{
return Definition();
}
G4TauPlus* G4TauPlus::TauPlus()
{
return Definition();
}
-51
View File
@@ -1,51 +0,0 @@
//
// ********************************************************************
// * 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: G4VLepton.cc,v 1.3 2001/07/11 10:01:54 gunter Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// --------------------------------------------------------------
// GEANT 4 class implementation file
//
// History: first implementation, based on object model of
// 2nd December 1995, G.Cosmo
// --------------------------------------------------------------
#include "G4VLepton.hh"
const G4VLepton & G4VLepton::operator=(const G4VLepton &right)
{
if (this != &right) {
} return right;
}
G4int G4VLepton::operator==(const G4VLepton &right) const
{
return (this->GetParticleName() == right.GetParticleName());
}
G4int G4VLepton::operator!=(const G4VLepton &right) const
{
return (this->GetParticleName() != right.GetParticleName());
}