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
@@ -33,16 +33,16 @@
// ### ADJOINT ALPHA ###
// ######################################################################
G4AdjointAlpha* G4AdjointAlpha::theInstance = 0;
G4AdjointAlpha* G4AdjointAlpha::theInstance = nullptr;
G4AdjointAlpha* G4AdjointAlpha::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "adj_alpha";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4AdjointIons* anInstance = static_cast<G4AdjointIons*>(pTable->FindParticle(name));
if (anInstance ==0)
auto anInstance = static_cast<G4AdjointIons*>(pTable->FindParticle(name));
if (anInstance ==nullptr)
{
// create particle
//
@@ -59,7 +59,7 @@ G4AdjointAlpha* G4AdjointAlpha::Definition()
0, +1, 0,
0, 0, 0,
"adjoint_nucleus", 0, +4, 1000020040,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "static", 0,
0.0
);
@@ -33,17 +33,17 @@
// ### ADJOINT DEUTERON ###
// ######################################################################
G4AdjointDeuteron* G4AdjointDeuteron::theInstance = 0;
G4AdjointDeuteron* G4AdjointDeuteron::theInstance = nullptr;
G4AdjointDeuteron* G4AdjointDeuteron::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "adj_deuteron";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4AdjointIons* anInstance = static_cast<G4AdjointIons*>(pTable->FindParticle(name));
if (anInstance ==0)
auto anInstance = static_cast<G4AdjointIons*>(pTable->FindParticle(name));
if (anInstance ==nullptr)
{
// create particle
//
@@ -60,7 +60,7 @@ G4AdjointDeuteron* G4AdjointDeuteron::Definition()
2, +1, 0,
0, 0, 0,
"adjoint_nucleus", 0, +2, 1000010020,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "static", 0,
0.0
);
@@ -44,17 +44,17 @@
// ######################################################################
// ### ADJOINT ELECTRON ###
// ######################################################################
G4AdjointElectron* G4AdjointElectron::theInstance = 0;
G4AdjointElectron* G4AdjointElectron::theInstance = nullptr;
G4AdjointElectron* G4AdjointElectron::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "adj_e-";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
@@ -79,7 +79,7 @@ G4AdjointElectron* G4AdjointElectron::Definition()
1, 0, 0,
0, 0, 0,
"adjoint", 1, 0, 10000011,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "adj_lepton"
);
// Bohr Magnetron
@@ -44,17 +44,17 @@
// ######################################################################
// ### ADJOINT ELECTRON FOR FORCED INTERACTION ###
// ######################################################################
G4AdjointElectronFI* G4AdjointElectronFI::theInstance = 0;
G4AdjointElectronFI* G4AdjointElectronFI::theInstance = nullptr;
G4AdjointElectronFI* G4AdjointElectronFI::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "adj_e-_FI";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
@@ -79,7 +79,7 @@ G4AdjointElectronFI* G4AdjointElectronFI::Definition()
1, 0, 0,
0, 0, 0,
"adjoint", 1, 0, 90000011,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "adj_lepton"
);
// Bohr Magnetron
@@ -40,18 +40,18 @@
// ######################################################################
// ### GAMMA ###
// ######################################################################
G4AdjointGamma* G4AdjointGamma::theInstance = 0;
G4AdjointGamma* G4AdjointGamma::theInstance = nullptr;
G4AdjointGamma* G4AdjointGamma::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "adj_gamma";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
//
@@ -67,7 +67,7 @@ G4AdjointGamma* G4AdjointGamma::Definition()
2, -1, -1,
0, 0, 0,
"adjoint", 0, 0, 10000022,
true, 0.0, NULL,
true, 0.0, nullptr,
false, "adj_gamma", 10000022
);
}
@@ -31,16 +31,16 @@
// ######################################################################
// ### ADJOINT GenericIon ###
// ######################################################################
G4AdjointGenericIon* G4AdjointGenericIon::theInstance = 0;
G4AdjointGenericIon* G4AdjointGenericIon::theInstance = nullptr;
G4AdjointGenericIon* G4AdjointGenericIon::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "adj_GenericIon";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4AdjointIons* anInstance = static_cast<G4AdjointIons*>(pTable->FindParticle(name));
if (anInstance ==0)
auto anInstance = static_cast<G4AdjointIons*>(pTable->FindParticle(name));
if (anInstance ==nullptr)
{
// create particle
//
@@ -61,7 +61,7 @@ G4AdjointGenericIon* G4AdjointGenericIon::Definition()
1, +1, 0,
1, +1, 0,
"adjoint_nucleus", 0, +1, 0,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "adjoint_generic", 0,
0.0
);
+5 -5
View File
@@ -33,17 +33,17 @@
// ### ADJOINT He3 ###
// ######################################################################
G4AdjointHe3* G4AdjointHe3::theInstance = 0;
G4AdjointHe3* G4AdjointHe3::theInstance = nullptr;
G4AdjointHe3* G4AdjointHe3::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "adj_He3";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4AdjointIons* anInstance = static_cast<G4AdjointIons*>(pTable->FindParticle(name));
if (anInstance ==0)
auto anInstance = static_cast<G4AdjointIons*>(pTable->FindParticle(name));
if (anInstance ==nullptr)
{
// create particle
//
@@ -60,7 +60,7 @@ G4AdjointHe3* G4AdjointHe3::Definition()
1, +1, 0,
0, 0, 0,
"adjoint_nucleus", 0, +3, 1000020030,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "static", 0,
0.0
);
@@ -62,13 +62,6 @@ G4AdjointIons::G4AdjointIons(
}
G4AdjointIons::~G4AdjointIons()
{
//G4cout << "G4AdjointIons::" << GetParticleName() << G4endl;
}
G4AdjointIons* G4AdjointIons::IonsDefinition()
{
return this;
@@ -44,17 +44,17 @@
// ######################################################################
// ### ADJOINT ELECTRON ###
// ######################################################################
G4AdjointPositron* G4AdjointPositron::theInstance = 0;
G4AdjointPositron* G4AdjointPositron::theInstance = nullptr;
G4AdjointPositron* G4AdjointPositron::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "adj_e+";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
@@ -78,7 +78,7 @@ G4AdjointPositron* G4AdjointPositron::Definition()
1, 0, 0,
0, 0, 0,
"adjoint", -1, 0, -10000011,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "adj_lepton"
);
// Bohr Magnetron
@@ -34,16 +34,16 @@
// ######################################################################
// ### PROTON ###
// ######################################################################
G4AdjointProton* G4AdjointProton::theInstance = 0;
G4AdjointProton* G4AdjointProton::theInstance = nullptr;
G4AdjointProton* G4AdjointProton::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "adj_proton";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
if (anInstance ==0)
if (anInstance ==nullptr)
{
// create particle
//
@@ -62,7 +62,7 @@ G4AdjointProton* G4AdjointProton::Definition()
1, +1, 0,
1, +1, 0,
"adjoint", 0, +1, 100002212,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "adjoint_ion", 0,
0.0
);
@@ -33,16 +33,16 @@
// ### ADJOINT TRITON ###
// ######################################################################
G4AdjointTriton* G4AdjointTriton::theInstance = 0;
G4AdjointTriton* G4AdjointTriton::theInstance = nullptr;
G4AdjointTriton* G4AdjointTriton::Definition()
{
if (theInstance !=0) return theInstance;
if (theInstance !=nullptr) return theInstance;
const G4String name = "adj_triton";
// search in particle table]
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
G4AdjointIons* anInstance = static_cast<G4AdjointIons*>(pTable->FindParticle(name));
if (anInstance ==0)
auto anInstance = static_cast<G4AdjointIons*>(pTable->FindParticle(name));
if (anInstance ==nullptr)
{
// create particle
//
@@ -59,7 +59,7 @@ G4AdjointTriton* G4AdjointTriton::Definition()
1, +1, 0,
0, 0, 0,
"adjoint_nucleus", 0, +3, 1000010030,
true, -1.0, NULL,
true, -1.0, nullptr,
false, "static", 0,
0.0
);