File indexing completed on 2025-01-18 09:58:54
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031 inline void G4ParticlePropertyData::SetVerboseLevel(G4int value)
0032 {
0033 verboseLevel = value;
0034 }
0035
0036 inline G4int G4ParticlePropertyData::GetVerboseLevel() const
0037 {
0038 return verboseLevel;
0039 }
0040
0041 inline G4int G4ParticlePropertyData::GetQuarkContent(G4int flavor) const
0042 {
0043 if ((flavor > 0) && (flavor <= NumberOfQuarkFlavor)) {
0044 return theQuarkContent[flavor - 1];
0045 }
0046
0047 return 0;
0048 }
0049
0050 inline G4int G4ParticlePropertyData::GetAntiQuarkContent(G4int flavor) const
0051 {
0052 if ((flavor > 0) && (flavor < NumberOfQuarkFlavor)) {
0053 return theAntiQuarkContent[flavor - 1];
0054 }
0055
0056 return 0;
0057 }
0058
0059 inline void G4ParticlePropertyData::SetPDGEncoding(G4int aEncoding)
0060 {
0061 thePDGEncoding = aEncoding;
0062 fPDGEncodingModified = true;
0063 theAntiPDGEncoding = -1 * aEncoding;
0064 fAntiPDGEncodingModified = true;
0065 }
0066
0067 inline void G4ParticlePropertyData::SetAntiPDGEncoding(G4int aEncoding)
0068 {
0069 theAntiPDGEncoding = aEncoding;
0070 fAntiPDGEncodingModified = true;
0071 }
0072
0073 inline void G4ParticlePropertyData::SetPDGMass(G4double newMass)
0074 {
0075 thePDGMass = newMass;
0076 fPDGMassModified = true;
0077 }
0078
0079 inline void G4ParticlePropertyData::SetPDGWidth(G4double newWidth)
0080 {
0081 thePDGWidth = newWidth;
0082 fPDGWidthModified = true;
0083 }
0084
0085 inline void G4ParticlePropertyData::SetPDGCharge(G4double newCharge)
0086 {
0087 thePDGCharge = newCharge;
0088 fPDGChargeModified = true;
0089 }
0090
0091 inline void G4ParticlePropertyData::SetPDGiSpin(G4int newSpin)
0092 {
0093 thePDGiSpin = newSpin;
0094 fPDGiSpinModified = true;
0095 }
0096
0097 inline void G4ParticlePropertyData::SetPDGiParity(G4int newParity)
0098 {
0099 thePDGiParity = newParity;
0100 fPDGiParityModified = true;
0101 }
0102
0103 inline void G4ParticlePropertyData::SetPDGiConjugation(G4int newConjugation)
0104 {
0105 thePDGiConjugation = newConjugation;
0106 fPDGiConjugationModified = true;
0107 }
0108
0109 inline void G4ParticlePropertyData::SetPDGiIsospin(G4int newIsospin)
0110 {
0111 thePDGiIsospin = newIsospin;
0112 fPDGiIsospinModified = true;
0113 }
0114
0115 inline void G4ParticlePropertyData::SetPDGiIsospin3(G4int newIsospin3)
0116 {
0117 thePDGiIsospin3 = newIsospin3;
0118 fPDGiIsospin3Modified = true;
0119 }
0120
0121 inline void G4ParticlePropertyData::SetPDGMagneticMoment(G4double mageticMoment)
0122 {
0123 thePDGMagneticMoment = mageticMoment;
0124 fPDGMagneticMomentModified = true;
0125 }
0126
0127 inline void G4ParticlePropertyData::SetPDGiGParity(G4int newGParity)
0128 {
0129 thePDGiGParity = newGParity;
0130 fPDGiGParityModified = true;
0131 }
0132
0133 inline void G4ParticlePropertyData::SetLeptonNumber(G4int newLeptonNumber)
0134 {
0135 theLeptonNumber = newLeptonNumber;
0136 fLeptonNumberModified = true;
0137 }
0138
0139 inline void G4ParticlePropertyData::SetBaryonNumber(G4int newBaryonNumber)
0140 {
0141 theBaryonNumber = newBaryonNumber;
0142 fBaryonNumberModified = true;
0143 }
0144
0145 inline void G4ParticlePropertyData::SetQuarkContent(G4int flavor, G4int newContent)
0146 {
0147 if ((flavor > 0) && (flavor <= NumberOfQuarkFlavor)) {
0148 theQuarkContent[flavor - 1] = newContent;
0149 fQuarkContentModified = true;
0150 }
0151 }
0152
0153 inline void G4ParticlePropertyData::SetAntiQuarkContent(G4int flavor, G4int newContent)
0154 {
0155 if ((flavor > 0) && (flavor <= NumberOfQuarkFlavor)) {
0156 theAntiQuarkContent[flavor - 1] = newContent;
0157 fAntiQuarkContentModified = true;
0158 }
0159 }
0160
0161 inline void G4ParticlePropertyData::SetPDGLifeTime(G4double newLifeTime)
0162 {
0163 thePDGLifeTime = newLifeTime;
0164 fPDGLifeTimeModified = true;
0165 }