Import Geant4 11.2.0.beta source tree
This commit is contained in:
@@ -40,15 +40,6 @@
|
||||
#include "G4Gamma.hh"
|
||||
#include "G4OpticalPhoton.hh"
|
||||
|
||||
G4BosonConstructor::G4BosonConstructor()
|
||||
{
|
||||
}
|
||||
|
||||
G4BosonConstructor::~G4BosonConstructor()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void G4BosonConstructor::ConstructParticle()
|
||||
{
|
||||
// pseudo-particles
|
||||
|
||||
@@ -43,17 +43,17 @@
|
||||
// ######################################################################
|
||||
// ### ChargedGeantino ###
|
||||
// ######################################################################
|
||||
G4ChargedGeantino* G4ChargedGeantino::theInstance = 0;
|
||||
G4ChargedGeantino* G4ChargedGeantino::theInstance = nullptr;
|
||||
|
||||
G4ChargedGeantino* G4ChargedGeantino::Definition()
|
||||
{
|
||||
if (theInstance !=0) return theInstance;
|
||||
if (theInstance !=nullptr) return theInstance;
|
||||
|
||||
const G4String name = "chargedgeantino";
|
||||
// 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 @@ G4ChargedGeantino* G4ChargedGeantino::Definition()
|
||||
0, 0, 0,
|
||||
0, 0, 0,
|
||||
"geantino", 0, 0, 0,
|
||||
true, -1.0, NULL,
|
||||
true, -1.0, nullptr,
|
||||
false, "geantino", 0
|
||||
);
|
||||
}
|
||||
|
||||
@@ -42,18 +42,18 @@
|
||||
// ######################################################################
|
||||
// ### GAMMA ###
|
||||
// ######################################################################
|
||||
G4Gamma* G4Gamma::theInstance = 0;
|
||||
G4Gamma* G4Gamma::theInstance = nullptr;
|
||||
|
||||
|
||||
G4Gamma* G4Gamma::Definition()
|
||||
{
|
||||
if (theInstance !=0) return theInstance;
|
||||
if (theInstance !=nullptr) return theInstance;
|
||||
|
||||
const G4String name = "gamma";
|
||||
// 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 @@ G4Gamma* G4Gamma::Definition()
|
||||
2, -1, -1,
|
||||
0, 0, 0,
|
||||
"gamma", 0, 0, 22,
|
||||
true, -1.0, NULL,
|
||||
true, -1.0, nullptr,
|
||||
false, "photon", 22
|
||||
);
|
||||
}
|
||||
|
||||
@@ -43,17 +43,17 @@
|
||||
// ######################################################################
|
||||
// ### GEANTINO ###
|
||||
// ######################################################################
|
||||
G4Geantino* G4Geantino::theInstance = 0;
|
||||
G4Geantino* G4Geantino::theInstance = nullptr;
|
||||
|
||||
G4Geantino* G4Geantino::Definition()
|
||||
{
|
||||
if (theInstance !=0) return theInstance;
|
||||
if (theInstance !=nullptr) return theInstance;
|
||||
|
||||
const G4String name = "geantino";
|
||||
// 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 @@ G4Geantino* G4Geantino::Definition()
|
||||
0, 0, 0,
|
||||
0, 0, 0,
|
||||
"geantino", 0, 0, 0,
|
||||
true, -1.0, NULL,
|
||||
true, -1.0, nullptr,
|
||||
false, "geantino", 0
|
||||
);
|
||||
}
|
||||
|
||||
@@ -43,17 +43,17 @@
|
||||
// ######################################################################
|
||||
// ### OPTICAL PHOTON ###
|
||||
// ######################################################################
|
||||
G4OpticalPhoton* G4OpticalPhoton::theInstance = 0;
|
||||
G4OpticalPhoton* G4OpticalPhoton::theInstance = nullptr;
|
||||
|
||||
G4OpticalPhoton* G4OpticalPhoton::Definition()
|
||||
{
|
||||
if (theInstance !=0) return theInstance;
|
||||
if (theInstance !=nullptr) return theInstance;
|
||||
|
||||
const G4String name = "opticalphoton";
|
||||
// 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 @@ G4OpticalPhoton* G4OpticalPhoton::Definition()
|
||||
2, -1, -1,
|
||||
0, 0, 0,
|
||||
"opticalphoton", 0, 0, -22,
|
||||
true, -1.0, NULL,
|
||||
true, -1.0, nullptr,
|
||||
false, "photon", 0
|
||||
);
|
||||
}
|
||||
|
||||
@@ -32,19 +32,19 @@
|
||||
#include "G4ParticleTable.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
|
||||
G4PhononLong* G4PhononLong::theInstance = 0;
|
||||
G4PhononLong* G4PhononLong::theInstance = nullptr;
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
G4PhononLong* G4PhononLong::Definition()
|
||||
{
|
||||
if (theInstance !=0) return theInstance;
|
||||
if (theInstance !=nullptr) return theInstance;
|
||||
|
||||
const G4String name = "phononL";
|
||||
// search in particle table
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
|
||||
if (anInstance ==0)
|
||||
if (anInstance ==nullptr)
|
||||
{
|
||||
// create particle
|
||||
//
|
||||
@@ -60,7 +60,7 @@ G4PhononLong* G4PhononLong::Definition()
|
||||
0, 0, 0,
|
||||
0, 0, 0,
|
||||
"phonon", 0, 0, 0,
|
||||
true, -1.0, NULL,
|
||||
true, -1.0, nullptr,
|
||||
false, "phononL", 0
|
||||
);
|
||||
}
|
||||
|
||||
@@ -32,17 +32,17 @@
|
||||
#include "G4ParticleTable.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
|
||||
G4PhononTransFast* G4PhononTransFast::theInstance = 0;
|
||||
G4PhononTransFast* G4PhononTransFast::theInstance = nullptr;
|
||||
|
||||
G4PhononTransFast* G4PhononTransFast::Definition()
|
||||
{
|
||||
if (theInstance !=0) return theInstance;
|
||||
if (theInstance !=nullptr) return theInstance;
|
||||
|
||||
const G4String name = "phononTF";
|
||||
// search in particle table
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
|
||||
if (anInstance ==0)
|
||||
if (anInstance ==nullptr)
|
||||
{
|
||||
// create particle
|
||||
//
|
||||
@@ -58,7 +58,7 @@ G4PhononTransFast* G4PhononTransFast::Definition()
|
||||
0, 0, 0,
|
||||
0, 0, 0,
|
||||
"phonon", 0, 0, 0,
|
||||
true, -1.0, NULL,
|
||||
true, -1.0, nullptr,
|
||||
false, "phononTF", 0
|
||||
);
|
||||
}
|
||||
|
||||
@@ -32,17 +32,17 @@
|
||||
#include "G4ParticleTable.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
|
||||
G4PhononTransSlow* G4PhononTransSlow::theInstance = 0;
|
||||
G4PhononTransSlow* G4PhononTransSlow::theInstance = nullptr;
|
||||
|
||||
G4PhononTransSlow* G4PhononTransSlow::Definition()
|
||||
{
|
||||
if (theInstance !=0) return theInstance;
|
||||
if (theInstance !=nullptr) return theInstance;
|
||||
|
||||
const G4String name = "phononTS";
|
||||
// search in particle table
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4ParticleDefinition* anInstance = pTable->FindParticle(name);
|
||||
if (anInstance ==0)
|
||||
if (anInstance ==nullptr)
|
||||
{
|
||||
// create particle
|
||||
//
|
||||
@@ -58,7 +58,7 @@ G4PhononTransSlow* G4PhononTransSlow::Definition()
|
||||
0, 0, 0,
|
||||
0, 0, 0,
|
||||
"phonon", 0, 0, 0,
|
||||
true, -1.0, NULL,
|
||||
true, -1.0, nullptr,
|
||||
false, "phononTS", 0
|
||||
);
|
||||
}
|
||||
|
||||
@@ -42,17 +42,17 @@
|
||||
// ######################################################################
|
||||
// ### Unknown Particle ###
|
||||
// ######################################################################
|
||||
G4UnknownParticle* G4UnknownParticle::theInstance = 0;
|
||||
G4UnknownParticle* G4UnknownParticle::theInstance = nullptr;
|
||||
|
||||
G4UnknownParticle* G4UnknownParticle::Definition()
|
||||
{
|
||||
if (theInstance !=0) return theInstance;
|
||||
if (theInstance !=nullptr) return theInstance;
|
||||
|
||||
const G4String name = "unknown";
|
||||
// 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 @@ G4UnknownParticle* G4UnknownParticle::Definition()
|
||||
0, 0, 0,
|
||||
0, 0, 0,
|
||||
"geantino", 0, 0, 0,
|
||||
true, -1.0, NULL,
|
||||
true, -1.0, nullptr,
|
||||
false, "geantino", 0
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user