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
+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());
}