71 #define G4MT_pmanager ((subInstanceManager.offset[g4particleDefinitionInstanceID]).theProcessManager)
103 : theParticleName(aName),
106 thePDGCharge(charge),
108 thePDGSpin(iSpin*0.5),
109 thePDGiParity(iParity),
110 thePDGiConjugation(iConjugation),
111 thePDGiGParity(gParity),
112 thePDGiIsospin(iIsospin),
113 thePDGiIsospin3(iIsospin3),
114 thePDGIsospin(iIsospin*0.5),
115 thePDGIsospin3(iIsospin3*0.5),
116 thePDGMagneticMoment(magneticMoment),
117 theLeptonNumber(lepton),
118 theBaryonNumber(baryon),
119 theParticleType(pType),
120 theParticleSubType(subType),
121 thePDGEncoding(encoding),
122 theAntiPDGEncoding(-1*encoding),
123 fShortLivedFlag(shortlived),
124 thePDGStable(stable),
125 thePDGLifeTime(lifetime),
126 theDecayTable(decaytable),
130 fApplyCutsFlag(false),
150 G4cout <<
"Particle " << aName <<
" has a strange PDGEncoding " <<
G4endl;
153 G4Exception(
"G4ParticleDefintion::G4ParticleDefintion",
155 "Strange PDGEncoding ");
164 G4cout <<
"G4ParticleDefintion (other than ions and shortlived) should be created in Pre_Init state "
168 G4Exception(
"G4ParticleDefintion::G4ParticleDefintion",
170 "G4ParticleDefinition should be created in PreInit state");
191 G4Exception(
"G4ParticleDefinition::G4ParticleDefinition()",
193 "Illegal call of copy Constructor for G4ParticleDefinition ");
198 G4Exception(
"G4ParticleDefinition::G4ParticleDefinition()",
200 "Illegal call of default Constructor for G4ParticleDefinition ");
210 G4String msg =
"Request of deletion for ";
212 msg +=
" has No effects because readyToUse is true.";
213 G4Exception(
"G4ParticleDefinition::~G4ParticleDefinition()",
220 <<
" will be deleted " <<
G4endl;
232 if (
this != &right) {
279 G4Exception(
"G4ParticleDefintion::G4ParticleDefintion",
281 "Inconsistent charge against PDG code ");
284 G4cout <<
"G4ParticleDefinition::FillQuarkContents : "
293 G4Exception(
"G4ParticleDefintion::G4ParticleDefintion",
295 "Inconsistent spin against PDG code ");
298 G4cout <<
"G4ParticleDefinition::FillQuarkContents : "
341 G4cout <<
", " << theQuarkContent[1];
342 G4cout <<
", " << theQuarkContent[2];
343 G4cout <<
", " << theQuarkContent[3];
344 G4cout <<
", " << theQuarkContent[4];
347 G4cout <<
", " << theAntiQuarkContent[1];
348 G4cout <<
", " << theAntiQuarkContent[2];
349 G4cout <<
", " << theAntiQuarkContent[3];
350 G4cout <<
", " << theAntiQuarkContent[4];
369 {
G4cout <<
" Stable : No data found -- unknown" <<
G4endl; }
375 <<
"\n Decay table should be consulted to G4RadioactiveDecayProcess."
406 <<
"becomes obsolete. Production threshold is applied only for "
407 <<
"gamma, e- ,e+ and proton." <<
G4endl;
413 G4Exception(
"G4ParticleDefintion::G4ParticleDefintion",
415 "CalculateAnomaly() method will be removed in next release");
440 ed <<
"ParticleDefinitionID should not be set for the particles <"
442 G4Exception(
"G4ParticleDefintion::SetParticleDefinitionID",
"PART10114",
458 <<
" without proper initialization of TLS pointer vector.\n"
459 <<
"This operation is thread-unsafe.";
460 G4Exception(
"G4ParticleDefintion::SetProcessManager",
"PART10116",
static constexpr double tesla
G4ParticleTable * theParticleTable
void SetAtomicNumber(G4int)
void SetParticleDefinitionID(G4int id=-1)
void SetProcessManager(G4ProcessManager *aProcessManager)
std::ostringstream G4ExceptionDescription
G4bool CheckCharge(G4double charge) const
G4int GetQuarkContent(G4int flavor) const
G4int operator!=(const G4ParticleDefinition &right) const
G4int GetVerboseLevel() const
static G4bool IsIon(const G4ParticleDefinition *)
static G4PART_DLL G4PDefManager subInstanceManager
static G4bool IsAntiIon(const G4ParticleDefinition *)
G4ProcessManager * theProcessManagerShadow
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
static const G4PDefManager & GetSubInstanceManager()
const G4String & GetParticleName() const
G4int GetAtomicNumber() const
G4bool IsGeneralIon() const
G4int CheckPDGCode(G4int code, G4String type)
G4int GetAntiPDGEncoding() const
G4double GetIonLifeTime() const
static G4StateManager * GetStateManager()
G4ParticleDefinition * Insert(G4ParticleDefinition *particle)
G4IonTable * GetIonTable() const
virtual ~G4ParticleDefinition()
G4GLOB_DLL std::ostream G4cout
G4double CalculateAnomaly() const
static constexpr double eplus
G4int FillQuarkContents()
G4DecayTable * theDecayTable
G4int GetAntiQuarkContent(G4int flavor) const
G4ApplicationState GetCurrentState() const
G4int GetAtomicMass() const
G4int operator==(const G4ParticleDefinition &right) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4double thePDGMagneticMoment
G4int theAntiQuarkContent[NumberOfQuarkFlavor]
void SetApplyCutsFlag(G4bool)
static G4ParticleTable * GetParticleTable()
G4String theParticleSubType
G4ProcessManager * GetProcessManager() const
void SetVerboseLevel(G4int verbose)
G4int theQuarkContent[NumberOfQuarkFlavor]
G4int g4particleDefinitionInstanceID
static constexpr double GeV
G4int CreateSubInstance()
static constexpr double MeV
G4double GetPDGCharge() const
G4int GetVerboseLevel() const
void SetAtomicMass(G4int)
const G4ParticleDefinition & operator=(const G4ParticleDefinition &r)
G4int GetBaryonNumber() const