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