Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 // G4ParticlePropertyData inline methods imple << 27 // 26 // 28 // Author: H.Kurashige, 9 June 2003 << 27 // $Id$ 29 // ------------------------------------------- << 28 // 30 29 31 inline void G4ParticlePropertyData::SetVerbose << 30 inline >> 31 void G4ParticlePropertyData::SetVerboseLevel(G4int value) 32 { 32 { 33 verboseLevel = value; << 33 verboseLevel = value; 34 } 34 } 35 35 36 inline G4int G4ParticlePropertyData::GetVerbos << 36 inline >> 37 G4int G4ParticlePropertyData::GetVerboseLevel() const 37 { 38 { 38 return verboseLevel; << 39 return verboseLevel; 39 } 40 } 40 41 41 inline G4int G4ParticlePropertyData::GetQuarkC << 42 inline 42 { << 43 G4int G4ParticlePropertyData::GetQuarkContent(G4int flavor) const 43 if ((flavor > 0) && (flavor <= NumberOfQuark << 44 { 44 return theQuarkContent[flavor - 1]; << 45 if ((flavor>0) && (flavor<=NumberOfQuarkFlavor)){ 45 } << 46 return theQuarkContent[flavor-1]; 46 << 47 }else { 47 return 0; << 48 return 0; >> 49 } 48 } 50 } 49 51 50 inline G4int G4ParticlePropertyData::GetAntiQu << 52 inline 51 { << 53 G4int G4ParticlePropertyData::GetAntiQuarkContent(G4int flavor) const 52 if ((flavor > 0) && (flavor < NumberOfQuarkF << 54 { 53 return theAntiQuarkContent[flavor - 1]; << 55 if ((flavor>0) && (flavor<NumberOfQuarkFlavor)){ 54 } << 56 return theAntiQuarkContent[flavor-1]; 55 << 57 }else { 56 return 0; << 58 return 0; >> 59 } 57 } 60 } 58 61 59 inline void G4ParticlePropertyData::SetPDGEnco << 62 60 { << 63 inline 61 thePDGEncoding = aEncoding; << 64 void G4ParticlePropertyData::SetPDGEncoding(G4int aEncoding) 62 fPDGEncodingModified = true; << 65 { 63 theAntiPDGEncoding = -1 * aEncoding; << 66 thePDGEncoding = aEncoding; 64 fAntiPDGEncodingModified = true; << 67 fPDGEncodingModified = true; >> 68 theAntiPDGEncoding = -1*aEncoding; >> 69 fAntiPDGEncodingModified = true; 65 } 70 } 66 71 67 inline void G4ParticlePropertyData::SetAntiPDG << 72 inline 68 { << 73 void G4ParticlePropertyData::SetAntiPDGEncoding(G4int aEncoding) 69 theAntiPDGEncoding = aEncoding; << 74 { 70 fAntiPDGEncodingModified = true; << 75 theAntiPDGEncoding = aEncoding; >> 76 fAntiPDGEncodingModified = true; 71 } 77 } 72 78 73 inline void G4ParticlePropertyData::SetPDGMass << 79 inline >> 80 void G4ParticlePropertyData::SetPDGMass(G4double newMass) 74 { 81 { 75 thePDGMass = newMass; 82 thePDGMass = newMass; 76 fPDGMassModified = true; 83 fPDGMassModified = true; 77 } 84 } 78 85 79 inline void G4ParticlePropertyData::SetPDGWidt << 86 inline >> 87 void G4ParticlePropertyData::SetPDGWidth(G4double newWidth) 80 { 88 { 81 thePDGWidth = newWidth; 89 thePDGWidth = newWidth; 82 fPDGWidthModified = true; 90 fPDGWidthModified = true; 83 } 91 } 84 92 85 inline void G4ParticlePropertyData::SetPDGChar << 93 inline >> 94 void G4ParticlePropertyData::SetPDGCharge(G4double newCharge) 86 { 95 { 87 thePDGCharge = newCharge; 96 thePDGCharge = newCharge; 88 fPDGChargeModified = true; << 97 fPDGChargeModified = true; 89 } 98 } 90 << 99 91 inline void G4ParticlePropertyData::SetPDGiSpi << 100 inline >> 101 void G4ParticlePropertyData::SetPDGiSpin(G4int newSpin) 92 { 102 { 93 thePDGiSpin = newSpin; << 103 thePDGiSpin = newSpin; 94 fPDGiSpinModified = true; 104 fPDGiSpinModified = true; 95 } 105 } 96 106 97 inline void G4ParticlePropertyData::SetPDGiPar << 107 inline >> 108 void G4ParticlePropertyData::SetPDGiParity(G4int newParity) 98 { 109 { 99 thePDGiParity = newParity; 110 thePDGiParity = newParity; 100 fPDGiParityModified = true; 111 fPDGiParityModified = true; 101 } 112 } 102 113 103 inline void G4ParticlePropertyData::SetPDGiCon << 114 inline 104 { << 115 void G4ParticlePropertyData::SetPDGiConjugation(G4int newConjugation) >> 116 { 105 thePDGiConjugation = newConjugation; 117 thePDGiConjugation = newConjugation; 106 fPDGiConjugationModified = true; 118 fPDGiConjugationModified = true; 107 } 119 } 108 120 109 inline void G4ParticlePropertyData::SetPDGiIso << 121 inline >> 122 void G4ParticlePropertyData::SetPDGiIsospin(G4int newIsospin) 110 { 123 { 111 thePDGiIsospin = newIsospin; 124 thePDGiIsospin = newIsospin; 112 fPDGiIsospinModified = true; 125 fPDGiIsospinModified = true; 113 } 126 } 114 127 115 inline void G4ParticlePropertyData::SetPDGiIso << 128 inline >> 129 void G4ParticlePropertyData::SetPDGiIsospin3(G4int newIsospin3) 116 { 130 { 117 thePDGiIsospin3 = newIsospin3; 131 thePDGiIsospin3 = newIsospin3; 118 fPDGiIsospin3Modified = true; 132 fPDGiIsospin3Modified = true; 119 } 133 } 120 << 134 121 inline void G4ParticlePropertyData::SetPDGMagn << 135 inline 122 { << 136 void G4ParticlePropertyData::SetPDGMagneticMoment(G4double mageticMoment) 123 thePDGMagneticMoment = mageticMoment; << 137 { 124 fPDGMagneticMomentModified = true; << 138 thePDGMagneticMoment = mageticMoment; 125 } << 139 fPDGMagneticMomentModified = true; 126 << 140 } 127 inline void G4ParticlePropertyData::SetPDGiGPa << 141 128 { << 142 inline 129 thePDGiGParity = newGParity; << 143 void G4ParticlePropertyData::SetPDGiGParity(G4int newGParity) 130 fPDGiGParityModified = true; << 144 { 131 } << 145 thePDGiGParity = newGParity; 132 << 146 fPDGiGParityModified = true; 133 inline void G4ParticlePropertyData::SetLeptonN << 147 } >> 148 >> 149 inline >> 150 void G4ParticlePropertyData::SetLeptonNumber(G4int newLeptonNumber) 134 { 151 { 135 theLeptonNumber = newLeptonNumber; 152 theLeptonNumber = newLeptonNumber; 136 fLeptonNumberModified = true; 153 fLeptonNumberModified = true; 137 } 154 } 138 155 139 inline void G4ParticlePropertyData::SetBaryonN << 156 inline >> 157 void G4ParticlePropertyData::SetBaryonNumber(G4int newBaryonNumber) 140 { 158 { 141 theBaryonNumber = newBaryonNumber; 159 theBaryonNumber = newBaryonNumber; 142 fBaryonNumberModified = true; 160 fBaryonNumberModified = true; 143 } 161 } 144 << 162 145 inline void G4ParticlePropertyData::SetQuarkCo << 163 inline >> 164 void G4ParticlePropertyData::SetQuarkContent(G4int flavor, G4int newContent) 146 { 165 { 147 if ((flavor > 0) && (flavor <= NumberOfQuark << 166 if ((flavor>0) && (flavor<=NumberOfQuarkFlavor)){ 148 theQuarkContent[flavor - 1] = newContent; << 167 theQuarkContent[flavor-1] = newContent; 149 fQuarkContentModified = true; 168 fQuarkContentModified = true; 150 } 169 } 151 } 170 } 152 171 153 inline void G4ParticlePropertyData::SetAntiQua << 172 inline >> 173 void G4ParticlePropertyData::SetAntiQuarkContent(G4int flavor, G4int newContent) 154 { 174 { 155 if ((flavor > 0) && (flavor <= NumberOfQuark << 175 if ((flavor>0) && (flavor<=NumberOfQuarkFlavor)){ 156 theAntiQuarkContent[flavor - 1] = newConte << 176 theAntiQuarkContent[flavor-1] = newContent; 157 fAntiQuarkContentModified = true; 177 fAntiQuarkContentModified = true; 158 } 178 } 159 } << 179 } 160 180 161 inline void G4ParticlePropertyData::SetPDGLife << 181 inline >> 182 void G4ParticlePropertyData::SetPDGLifeTime(G4double newLifeTime) 162 { 183 { 163 thePDGLifeTime = newLifeTime; 184 thePDGLifeTime = newLifeTime; 164 fPDGLifeTimeModified = true; 185 fPDGLifeTimeModified = true; 165 } 186 } >> 187 >> 188 >> 189 >> 190 >> 191 166 192