Import Geant4 11.2.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2023-06-30 09:09:57 +02:00
parent aef78ca386
commit dd1f179cda
3780 changed files with 212808 additions and 142780 deletions
@@ -43,16 +43,16 @@
// ### ANTI NEUTRINO E ###
// ######################################################################
G4AntiNeutrinoE* G4AntiNeutrinoE::theInstance = 0;
G4AntiNeutrinoE* G4AntiNeutrinoE::theInstance = nullptr;
G4AntiNeutrinoE* G4AntiNeutrinoE::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "anti_nu_e";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
//
@@ -68,7 +68,7 @@ G4AntiNeutrinoE* G4AntiNeutrinoE::Definition()
1, 0, 0,
0, 0, 0,
"lepton", -1, 0, -12,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "e"
);
}
@@ -43,16 +43,16 @@
// ######################################################################
// ### ANTI MU NEUTRINO ###
// ######################################################################
G4AntiNeutrinoMu* G4AntiNeutrinoMu::theInstance = 0;
G4AntiNeutrinoMu* G4AntiNeutrinoMu::theInstance = nullptr;
G4AntiNeutrinoMu* G4AntiNeutrinoMu::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "anti_nu_mu";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
//
@@ -68,7 +68,7 @@ G4AntiNeutrinoMu* G4AntiNeutrinoMu::Definition()
1, 0, 0,
0, 0, 0,
"lepton", -1, 0, -14,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "mu"
);
}
@@ -44,16 +44,16 @@
// ######################################################################
// ### ANTI TAU NEUTRINO ###
// ######################################################################
G4AntiNeutrinoTau* G4AntiNeutrinoTau::theInstance = 0;
G4AntiNeutrinoTau* G4AntiNeutrinoTau::theInstance = nullptr;
G4AntiNeutrinoTau* G4AntiNeutrinoTau::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "anti_nu_tau";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
//
@@ -69,7 +69,7 @@ G4AntiNeutrinoTau* G4AntiNeutrinoTau::Definition()
1, 0, 0,
0, 0, 0,
"lepton", -1, 0, -16,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "tau"
);
}
+4 -4
View File
@@ -43,16 +43,16 @@
// ######################################################################
// ### ELECTRON ###
// ######################################################################
G4Electron* G4Electron::theInstance = 0;
G4Electron* G4Electron::theInstance = nullptr;
G4Electron* G4Electron::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "e-";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
//
@@ -72,7 +72,7 @@ G4Electron* G4Electron::Definition()
1, 0, 0,
0, 0, 0,
"lepton", 1, 0, 11,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "e"
);
// Bohr Magnetron
@@ -47,13 +47,6 @@
#include "G4AntiNeutrinoMu.hh"
#include "G4NeutrinoE.hh"
#include "G4AntiNeutrinoE.hh"
G4LeptonConstructor::G4LeptonConstructor()
{
}
G4LeptonConstructor::~G4LeptonConstructor()
{
}
void G4LeptonConstructor::ConstructParticle()
+5 -5
View File
@@ -46,16 +46,16 @@
// ######################################################################
// ### MUONMINUS ###
// ######################################################################
G4MuonMinus* G4MuonMinus::theInstance = 0;
G4MuonMinus* G4MuonMinus::theInstance = nullptr;
G4MuonMinus* G4MuonMinus::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "mu-";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
//
@@ -71,7 +71,7 @@ G4MuonMinus* G4MuonMinus::Definition()
1, 0, 0,
0, 0, 0,
"lepton", 1, 0, 13,
false, 2196.98*ns, NULL,
false, 2196.98*ns, nullptr,
false, "mu"
);
// Bohr Magnetron
@@ -80,7 +80,7 @@ G4MuonMinus* G4MuonMinus::Definition()
anInstance->SetPDGMagneticMoment( muB * 1.0011659209);
//create Decay Table
G4DecayTable* table = new G4DecayTable();
auto table = new G4DecayTable();
// create a decay channel
G4VDecayChannel* mode = new G4MuonDecayChannel("mu-",1.00);
+5 -5
View File
@@ -46,16 +46,16 @@
// ######################################################################
// ### MUONPLUS ###
// ######################################################################
G4MuonPlus* G4MuonPlus::theInstance = 0;
G4MuonPlus* G4MuonPlus::theInstance = nullptr;
G4MuonPlus* G4MuonPlus::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "mu+";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
//
@@ -71,7 +71,7 @@ G4MuonPlus* G4MuonPlus::Definition()
1, 0, 0,
0, 0, 0,
"lepton", -1, 0, -13,
false, 2196.98*ns, NULL,
false, 2196.98*ns, nullptr,
false, "mu"
);
// Bohr Magnetron
@@ -80,7 +80,7 @@ G4MuonPlus* G4MuonPlus::Definition()
anInstance->SetPDGMagneticMoment( muB * 1.0011659209);
//create Decay Table
G4DecayTable* table = new G4DecayTable();
auto table = new G4DecayTable();
// create a decay channel
G4VDecayChannel* mode = new G4MuonDecayChannel("mu+",1.00);
table->Insert(mode);
+4 -4
View File
@@ -43,16 +43,16 @@
// ######################################################################
// ### NEUTRINO E ###
// ######################################################################
G4NeutrinoE* G4NeutrinoE::theInstance = 0;
G4NeutrinoE* G4NeutrinoE::theInstance = nullptr;
G4NeutrinoE* G4NeutrinoE::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "nu_e";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
//
@@ -68,7 +68,7 @@ G4NeutrinoE* G4NeutrinoE::Definition()
1, 0, 0,
0, 0, 0,
"lepton", 1, 0, 12,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "e"
);
}
+4 -4
View File
@@ -43,16 +43,16 @@
// ######################################################################
// ### MU NEUTRINO ###
// ######################################################################
G4NeutrinoMu* G4NeutrinoMu::theInstance = 0;
G4NeutrinoMu* G4NeutrinoMu::theInstance = nullptr;
G4NeutrinoMu* G4NeutrinoMu::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "nu_mu";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
//
@@ -68,7 +68,7 @@ G4NeutrinoMu* G4NeutrinoMu::Definition()
1, 0, 0,
0, 0, 0,
"lepton", 1, 0, 14,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "mu"
);
}
@@ -43,16 +43,16 @@
// ######################################################################
// ### TAU NEUTRINO ###
// ######################################################################
G4NeutrinoTau* G4NeutrinoTau::theInstance = 0;
G4NeutrinoTau* G4NeutrinoTau::theInstance = nullptr;
G4NeutrinoTau* G4NeutrinoTau::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "nu_tau";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
//
@@ -68,7 +68,7 @@ G4NeutrinoTau* G4NeutrinoTau::Definition()
1, 0, 0,
0, 0, 0,
"lepton", 1, 0, 16,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "tau"
);
}
+4 -4
View File
@@ -43,16 +43,16 @@
// ######################################################################
// ### POSITRON ###
// ######################################################################
G4Positron* G4Positron::theInstance = 0;
G4Positron* G4Positron::theInstance = nullptr;
G4Positron* G4Positron::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "e+";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
//
@@ -71,7 +71,7 @@ G4Positron* G4Positron::Definition()
1, 0, 0,
0, 0, 0,
"lepton", -1, 0, -11,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "e"
);
+5 -5
View File
@@ -48,16 +48,16 @@
// ######################################################################
// ### TAUMINUS ###
// ######################################################################
G4TauMinus* G4TauMinus::theInstance = 0;
G4TauMinus* G4TauMinus::theInstance = nullptr;
G4TauMinus* G4TauMinus::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "tau-";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
//
@@ -73,7 +73,7 @@ G4TauMinus* G4TauMinus::Definition()
1, 0, 0,
0, 0, 0,
"lepton", 1, 0, 15,
false, 290.3e-6*ns, NULL,
false, 290.3e-6*ns, nullptr,
false, "tau"
);
@@ -83,7 +83,7 @@ G4TauMinus* G4TauMinus::Definition()
anInstance->SetPDGMagneticMoment( muB * 1.00118);
//create Decay Table
G4DecayTable* table = new G4DecayTable();
auto table = new G4DecayTable();
// create decay channels
G4VDecayChannel* mode;
+5 -5
View File
@@ -48,16 +48,16 @@
// ######################################################################
// ### TAPLUS ###
// ######################################################################
G4TauPlus* G4TauPlus::theInstance = 0;
G4TauPlus* G4TauPlus::theInstance = nullptr;
G4TauPlus* G4TauPlus::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "tau+";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
//
@@ -73,7 +73,7 @@ G4TauPlus* G4TauPlus::Definition()
1, 0, 0,
0, 0, 0,
"lepton", -1, 0, -15,
false, 290.3e-6*ns, NULL,
false, 290.3e-6*ns, nullptr,
false, "tau"
);
// Bohr Magnetron
@@ -82,7 +82,7 @@ G4TauPlus* G4TauPlus::Definition()
anInstance->SetPDGMagneticMoment( muB * 1.00118);
//create Decay Table
G4DecayTable* table = new G4DecayTable();
auto table = new G4DecayTable();
// create decay channels
G4VDecayChannel* mode;