Import Geant4 9.3.0 source tree
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * 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. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4AdjointAlpha.cc,v 1.2 2009/11/20 13:13:34 ldesorgh Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
//
|
||||
|
||||
#include "G4AdjointAlpha.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ADJOINT ALPHA ###
|
||||
// ######################################################################
|
||||
|
||||
G4AdjointAlpha* G4AdjointAlpha::theInstance = 0;
|
||||
|
||||
G4AdjointAlpha* G4AdjointAlpha::Definition()
|
||||
{
|
||||
if (theInstance !=0) return theInstance;
|
||||
const G4String name = "adj_alpha";
|
||||
// search in particle table]
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4AdjointIons* anInstance = reinterpret_cast<G4AdjointIons*>(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
|
||||
// excitation
|
||||
anInstance = new G4AdjointIons(
|
||||
name, 3.727417*GeV, 0.0*MeV, -2.0*eplus,
|
||||
0, +1, 0,
|
||||
0, 0, 0,
|
||||
"adjoint_nucleus", 0, +4, 1000020040,
|
||||
true, -1.0, NULL,
|
||||
false, "static", 0,
|
||||
0.0
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
//No Anti particle registered
|
||||
anInstance->SetAntiPDGEncoding(0);
|
||||
|
||||
theInstance = reinterpret_cast<G4AdjointAlpha*>(anInstance);
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
G4AdjointAlpha* G4AdjointAlpha::AlphaDefinition()
|
||||
{
|
||||
return Definition();
|
||||
}
|
||||
|
||||
G4AdjointAlpha* G4AdjointAlpha::Alpha()
|
||||
{
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * 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. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4AdjointDeuteron.cc,v 1.2 2009/11/20 13:13:34 ldesorgh Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
//
|
||||
#include "G4AdjointDeuteron.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ADJOINT DEUTERON ###
|
||||
// ######################################################################
|
||||
|
||||
G4AdjointDeuteron* G4AdjointDeuteron::theInstance = 0;
|
||||
|
||||
G4AdjointDeuteron* G4AdjointDeuteron::Definition()
|
||||
{
|
||||
if (theInstance !=0) return theInstance;
|
||||
|
||||
const G4String name = "adj_deuteron";
|
||||
// search in particle table]
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4AdjointIons* anInstance = reinterpret_cast<G4AdjointIons*>(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
|
||||
// excitation
|
||||
anInstance = new G4AdjointIons(
|
||||
name, 1.875613*GeV, 0.0*MeV, -1.0*eplus,
|
||||
2, +1, 0,
|
||||
0, 0, 0,
|
||||
"adjoint_nucleus", 0, +2, 1000010020,
|
||||
true, -1.0, NULL,
|
||||
false, "static", 0,
|
||||
0.0
|
||||
);
|
||||
|
||||
// Magnetic Moment
|
||||
G4double mN = eplus*hbar_Planck/2./(proton_mass_c2 /c_squared);
|
||||
anInstance->SetPDGMagneticMoment( 0.857438230 * mN);
|
||||
|
||||
}
|
||||
//No Anti particle registered
|
||||
anInstance->SetAntiPDGEncoding(0);
|
||||
|
||||
theInstance = reinterpret_cast<G4AdjointDeuteron*>(anInstance);
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
G4AdjointDeuteron* G4AdjointDeuteron::DeuteronDefinition()
|
||||
{
|
||||
return Definition();
|
||||
}
|
||||
|
||||
G4AdjointDeuteron* G4AdjointDeuteron::Deuteron()
|
||||
{
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * 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. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4AdjointGenericIon.cc,v 1.2 2009/11/20 13:13:34 ldesorgh Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
//
|
||||
#include "G4AdjointGenericIon.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ADJOINT GenericIon ###
|
||||
// ######################################################################
|
||||
G4AdjointGenericIon* G4AdjointGenericIon::theInstance = 0;
|
||||
|
||||
G4AdjointGenericIon* G4AdjointGenericIon::Definition()
|
||||
{
|
||||
if (theInstance !=0) return theInstance;
|
||||
const G4String name = "adj_GenericIon";
|
||||
// search in particle table]
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4AdjointIons* anInstance = reinterpret_cast<G4AdjointIons*>(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
|
||||
// excitation
|
||||
//!!!!
|
||||
//!!!! this particle should not be used for tracking
|
||||
//!!!! all properties except name and type are meaningless
|
||||
//!!!!
|
||||
anInstance = new G4AdjointIons(
|
||||
name, 0.9382723*GeV, 0.0*MeV, -eplus,
|
||||
1, +1, 0,
|
||||
1, +1, 0,
|
||||
"adjoint_nucleus", 0, +1, 0,
|
||||
true, -1.0, NULL,
|
||||
false, "adjoint_generic", 0,
|
||||
0.0
|
||||
);
|
||||
}
|
||||
|
||||
theInstance = reinterpret_cast<G4AdjointGenericIon*>(anInstance);
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
G4AdjointGenericIon* G4AdjointGenericIon::GenericIonDefinition()
|
||||
{
|
||||
return Definition();
|
||||
}
|
||||
|
||||
G4AdjointGenericIon* G4AdjointGenericIon::GenericIon()
|
||||
{
|
||||
return Definition();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * 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. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4AdjointHe3.cc,v 1.2 2009/11/20 13:13:34 ldesorgh Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
//
|
||||
#include "G4AdjointHe3.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ADJOINT He3 ###
|
||||
// ######################################################################
|
||||
|
||||
G4AdjointHe3* G4AdjointHe3::theInstance = 0;
|
||||
|
||||
G4AdjointHe3* G4AdjointHe3::Definition()
|
||||
{
|
||||
|
||||
if (theInstance !=0) return theInstance;
|
||||
const G4String name = "adj_He3";
|
||||
// search in particle table]
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4AdjointIons* anInstance = reinterpret_cast<G4AdjointIons*>(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
|
||||
// excitation
|
||||
anInstance = new G4AdjointIons(
|
||||
name, 2.80923*GeV, 0.0*MeV, -2.0*eplus,
|
||||
1, +1, 0,
|
||||
0, 0, 0,
|
||||
"adjoint_nucleus", 0, +3, 1000020030,
|
||||
true, -1.0, NULL,
|
||||
false, "static", 0,
|
||||
0.0
|
||||
);
|
||||
|
||||
// Magnetic Moment
|
||||
G4double mN = eplus*hbar_Planck/2./(proton_mass_c2 /c_squared);
|
||||
anInstance->SetPDGMagneticMoment( -2.12762485 * mN);
|
||||
|
||||
}
|
||||
//No Anti particle registered
|
||||
anInstance->SetAntiPDGEncoding(0);
|
||||
|
||||
theInstance = reinterpret_cast<G4AdjointHe3*>(anInstance);
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
G4AdjointHe3* G4AdjointHe3::He3Definition()
|
||||
{
|
||||
return Definition();
|
||||
}
|
||||
|
||||
G4AdjointHe3* G4AdjointHe3::He3()
|
||||
{
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * 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. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4AdjointIons.cc,v 1.2 2009/11/20 13:13:34 ldesorgh Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
//
|
||||
#include <fstream>
|
||||
#include <iomanip>
|
||||
|
||||
#include "G4AdjointIons.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ADJOINT Ions ###
|
||||
// #######################################################################
|
||||
|
||||
G4AdjointIons::G4AdjointIons(
|
||||
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 , G4bool shortlived,
|
||||
const G4String& subType,
|
||||
G4int anti_encoding,
|
||||
G4double excitation )
|
||||
: G4ParticleDefinition( aName,mass,width,charge,iSpin,iParity,
|
||||
iConjugation,iIsospin,iIsospin3,gParity,pType,
|
||||
lepton,baryon,encoding,stable,lifetime,decaytable,
|
||||
shortlived, subType, anti_encoding)
|
||||
{
|
||||
// initialize excitation energy/level
|
||||
theExcitationEnergy = excitation;
|
||||
|
||||
SetAtomicNumber( G4int(-GetPDGCharge()/eplus) );
|
||||
SetAtomicMass( GetBaryonNumber() );
|
||||
|
||||
//G4cout << "G4AdjointIons::" << GetParticleName() << G4endl;
|
||||
}
|
||||
|
||||
|
||||
G4AdjointIons::~G4AdjointIons()
|
||||
{
|
||||
|
||||
//G4cout << "G4AdjointIons::" << GetParticleName() << G4endl;
|
||||
}
|
||||
|
||||
|
||||
G4AdjointIons* G4AdjointIons::IonsDefinition()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * 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. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4AdjointProton.cc,v 1.2 2009/11/20 13:13:34 ldesorgh Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
//
|
||||
|
||||
|
||||
#include "G4AdjointProton.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### PROTON ###
|
||||
// ######################################################################
|
||||
G4AdjointProton* G4AdjointProton::theInstance = 0;
|
||||
|
||||
G4AdjointProton* G4AdjointProton::Definition()
|
||||
{
|
||||
if (theInstance !=0) return theInstance;
|
||||
const G4String name = "adj_proton";
|
||||
// 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
|
||||
// use constants in CLHEP
|
||||
// static const double proton_mass_c2 = 938.27231 * MeV;
|
||||
|
||||
anInstance = new G4ParticleDefinition(
|
||||
name, proton_mass_c2, 0.0*MeV, -eplus,
|
||||
1, +1, 0,
|
||||
1, +1, 0,
|
||||
"adjoint", 0, +1, 100002212,
|
||||
true, -1.0, NULL,
|
||||
false, "adjoint_ion", 0,
|
||||
0.0
|
||||
);
|
||||
|
||||
// Magnetic Moment
|
||||
G4double mN = eplus*hbar_Planck/2./(proton_mass_c2 /c_squared);
|
||||
anInstance->SetPDGMagneticMoment( 2.792847351 * mN);
|
||||
}
|
||||
theInstance = reinterpret_cast<G4AdjointProton*>(anInstance);
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
G4AdjointProton* G4AdjointProton::AdjointProtonDefinition()
|
||||
{
|
||||
return Definition();
|
||||
}
|
||||
|
||||
G4AdjointProton* G4AdjointProton::AdjointProton()
|
||||
{
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * 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. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4AdjointTriton.cc,v 1.2 2009/11/20 13:13:34 ldesorgh Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
//
|
||||
#include "G4AdjointTriton.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
// ######################################################################
|
||||
// ### ADJOINT TRITON ###
|
||||
// ######################################################################
|
||||
|
||||
G4AdjointTriton* G4AdjointTriton::theInstance = 0;
|
||||
|
||||
G4AdjointTriton* G4AdjointTriton::Definition()
|
||||
{
|
||||
if (theInstance !=0) return theInstance;
|
||||
const G4String name = "adj_triton";
|
||||
// search in particle table]
|
||||
G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
|
||||
G4AdjointIons* anInstance = reinterpret_cast<G4AdjointIons*>(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
|
||||
// excitation
|
||||
anInstance = new G4AdjointIons(
|
||||
name, 2.80925*GeV, 0.0*MeV, -1.0*eplus,
|
||||
1, +1, 0,
|
||||
0, 0, 0,
|
||||
"adjoint_nucleus", 0, +3, 1000010030,
|
||||
true, -1.0, NULL,
|
||||
false, "static", 0,
|
||||
0.0
|
||||
);
|
||||
|
||||
// Magnetic Moment
|
||||
G4double mN = eplus*hbar_Planck/2./(proton_mass_c2 /c_squared);
|
||||
anInstance->SetPDGMagneticMoment( 2.97896248 * mN);
|
||||
|
||||
}
|
||||
//No Anti particle registered
|
||||
anInstance->SetAntiPDGEncoding(0);
|
||||
|
||||
theInstance = reinterpret_cast<G4AdjointTriton*>(anInstance);
|
||||
return theInstance;
|
||||
}
|
||||
|
||||
G4AdjointTriton* G4AdjointTriton::TritonDefinition()
|
||||
{
|
||||
return Definition();
|
||||
}
|
||||
|
||||
G4AdjointTriton* G4AdjointTriton::Triton()
|
||||
{
|
||||
return Definition();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user