110 : theParticleName(aName),
113 thePDGCharge(charge),
115 thePDGSpin(iSpin*0.5),
116 thePDGiParity(iParity),
117 thePDGiConjugation(iConjugation),
118 thePDGiGParity(gParity),
119 thePDGiIsospin(iIsospin),
120 thePDGiIsospin3(iIsospin3),
121 thePDGIsospin(iIsospin*0.5),
122 thePDGIsospin3(iIsospin3*0.5),
123 thePDGMagneticMoment(magneticMoment),
124 theLeptonNumber(lepton),
125 theBaryonNumber(baryon),
126 theParticleType(pType),
127 theParticleSubType(subType),
128 thePDGEncoding(encoding),
129 theAntiPDGEncoding(-1*encoding),
130 fShortLivedFlag(shortlived),
131 thePDGStable(stable),
132 thePDGLifeTime(lifetime),
133 theDecayTable(decaytable),
137 fApplyCutsFlag(false),
157 G4cout <<
"Particle " << aName <<
" has a strange PDGEncoding " <<
G4endl;
160 G4Exception(
"G4ParticleDefintion::G4ParticleDefintion",
162 "Strange PDGEncoding ");
171 G4cout <<
"G4ParticleDefintion (other than ions and shortlived) should be created in Pre_Init state "
175 G4Exception(
"G4ParticleDefintion::G4ParticleDefintion",
177 "G4ParticleDefinition should be created in PreInit state");
198 G4Exception(
"G4ParticleDefinition::G4ParticleDefinition()",
200 "Illegal call of copy Constructor for G4ParticleDefinition ");
205 G4Exception(
"G4ParticleDefinition::G4ParticleDefinition()",
207 "Illegal call of default Constructor for G4ParticleDefinition ");
217 G4String msg =
"Request of deletion for ";
219 msg +=
" has No effects because readyToUse is true.";
220 G4Exception(
"G4ParticleDefinition::~G4ParticleDefinition()",
227 <<
" will be deleted " <<
G4endl;
239 if (
this != &right) {
282 G4Exception(
"G4ParticleDefintion::G4ParticleDefintion",
284 "Inconsistent charge against PDG code ");
287 G4cout <<
"G4ParticleDefinition::FillQuarkContents : "
296 G4Exception(
"G4ParticleDefintion::G4ParticleDefintion",
298 "Inconsistent spin against PDG code ");
301 G4cout <<
"G4ParticleDefinition::FillQuarkContents : "
344 G4cout <<
", " << theQuarkContent[1];
345 G4cout <<
", " << theQuarkContent[2];
346 G4cout <<
", " << theQuarkContent[3];
347 G4cout <<
", " << theQuarkContent[4];
350 G4cout <<
", " << theAntiQuarkContent[1];
351 G4cout <<
", " << theAntiQuarkContent[2];
352 G4cout <<
", " << theAntiQuarkContent[3];
353 G4cout <<
", " << theAntiQuarkContent[4];
372 {
G4cout <<
" Stable : No data found -- unknown" <<
G4endl; }
378 <<
"\n Decay table should be consulted to G4RadioactiveDecayProcess."
409 <<
"becomes obsolete. Production threshold is applied only for "
410 <<
"gamma, e- ,e+ and proton." <<
G4endl;
416 G4Exception(
"G4ParticleDefintion::G4ParticleDefintion",
418 "CalculateAnomaly() method will be removed in next release");
443 ed <<
"ParticleDefinitionID should not be set for the particles <"
445 G4Exception(
"G4ParticleDefintion::SetParticleDefinitionID",
"PART10114",
461 <<
" without proper initialization of TLS pointer vector.\n"
462 <<
"This operation is thread-unsafe.";
463 G4Exception(
"G4ParticleDefintion::SetProcessManager",
"PART10116",
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
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
void SetVerboseLevel(G4int verbose)
G4int theQuarkContent[NumberOfQuarkFlavor]
G4int g4particleDefinitionInstanceID
static const double tesla
static const double eplus
G4double GetPDGCharge() const
G4int GetVerboseLevel() const
G4int CreateSubInstance()
void SetAtomicMass(G4int)
const G4ParticleDefinition & operator=(const G4ParticleDefinition &r)
G4int GetBaryonNumber() const