2 // ********************************************************************
3 // * License and Disclaimer *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
27 // $Id: G4ParticlePropertyData.icc 67971 2013-03-13 10:13:24Z gcosmo $
31 void G4ParticlePropertyData::SetVerboseLevel(G4int value)
37 G4int G4ParticlePropertyData::GetVerboseLevel() const
43 G4int G4ParticlePropertyData::GetQuarkContent(G4int flavor) const
45 if ((flavor>0) && (flavor<=NumberOfQuarkFlavor)){
46 return theQuarkContent[flavor-1];
53 G4int G4ParticlePropertyData::GetAntiQuarkContent(G4int flavor) const
55 if ((flavor>0) && (flavor<NumberOfQuarkFlavor)){
56 return theAntiQuarkContent[flavor-1];
64 void G4ParticlePropertyData::SetPDGEncoding(G4int aEncoding)
66 thePDGEncoding = aEncoding;
67 fPDGEncodingModified = true;
68 theAntiPDGEncoding = -1*aEncoding;
69 fAntiPDGEncodingModified = true;
73 void G4ParticlePropertyData::SetAntiPDGEncoding(G4int aEncoding)
75 theAntiPDGEncoding = aEncoding;
76 fAntiPDGEncodingModified = true;
80 void G4ParticlePropertyData::SetPDGMass(G4double newMass)
83 fPDGMassModified = true;
87 void G4ParticlePropertyData::SetPDGWidth(G4double newWidth)
89 thePDGWidth = newWidth;
90 fPDGWidthModified = true;
94 void G4ParticlePropertyData::SetPDGCharge(G4double newCharge)
96 thePDGCharge = newCharge;
97 fPDGChargeModified = true;
101 void G4ParticlePropertyData::SetPDGiSpin(G4int newSpin)
103 thePDGiSpin = newSpin;
104 fPDGiSpinModified = true;
108 void G4ParticlePropertyData::SetPDGiParity(G4int newParity)
110 thePDGiParity = newParity;
111 fPDGiParityModified = true;
115 void G4ParticlePropertyData::SetPDGiConjugation(G4int newConjugation)
117 thePDGiConjugation = newConjugation;
118 fPDGiConjugationModified = true;
122 void G4ParticlePropertyData::SetPDGiIsospin(G4int newIsospin)
124 thePDGiIsospin = newIsospin;
125 fPDGiIsospinModified = true;
129 void G4ParticlePropertyData::SetPDGiIsospin3(G4int newIsospin3)
131 thePDGiIsospin3 = newIsospin3;
132 fPDGiIsospin3Modified = true;
136 void G4ParticlePropertyData::SetPDGMagneticMoment(G4double mageticMoment)
138 thePDGMagneticMoment = mageticMoment;
139 fPDGMagneticMomentModified = true;
143 void G4ParticlePropertyData::SetPDGiGParity(G4int newGParity)
145 thePDGiGParity = newGParity;
146 fPDGiGParityModified = true;
150 void G4ParticlePropertyData::SetLeptonNumber(G4int newLeptonNumber)
152 theLeptonNumber = newLeptonNumber;
153 fLeptonNumberModified = true;
157 void G4ParticlePropertyData::SetBaryonNumber(G4int newBaryonNumber)
159 theBaryonNumber = newBaryonNumber;
160 fBaryonNumberModified = true;
164 void G4ParticlePropertyData::SetQuarkContent(G4int flavor, G4int newContent)
166 if ((flavor>0) && (flavor<=NumberOfQuarkFlavor)){
167 theQuarkContent[flavor-1] = newContent;
168 fQuarkContentModified = true;
173 void G4ParticlePropertyData::SetAntiQuarkContent(G4int flavor, G4int newContent)
175 if ((flavor>0) && (flavor<=NumberOfQuarkFlavor)){
176 theAntiQuarkContent[flavor-1] = newContent;
177 fAntiQuarkContentModified = true;
182 void G4ParticlePropertyData::SetPDGLifeTime(G4double newLifeTime)
184 thePDGLifeTime = newLifeTime;
185 fPDGLifeTimeModified = true;