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// ********************************************************************
26// G4ParticlePropertyData inline methods implementation
28// Author: H.Kurashige, 9 June 2003
29// --------------------------------------------------------------------
32void G4ParticlePropertyData::SetVerboseLevel(G4int value)
38G4int G4ParticlePropertyData::GetVerboseLevel() const
44G4int G4ParticlePropertyData::GetQuarkContent(G4int flavor) const
46 if ((flavor>0) && (flavor<=NumberOfQuarkFlavor))
48 return theQuarkContent[flavor-1];
57G4int G4ParticlePropertyData::GetAntiQuarkContent(G4int flavor) const
59 if ((flavor>0) && (flavor<NumberOfQuarkFlavor))
61 return theAntiQuarkContent[flavor-1];
70void G4ParticlePropertyData::SetPDGEncoding(G4int aEncoding)
72 thePDGEncoding = aEncoding;
73 fPDGEncodingModified = true;
74 theAntiPDGEncoding = -1*aEncoding;
75 fAntiPDGEncodingModified = true;
79void G4ParticlePropertyData::SetAntiPDGEncoding(G4int aEncoding)
81 theAntiPDGEncoding = aEncoding;
82 fAntiPDGEncodingModified = true;
86void G4ParticlePropertyData::SetPDGMass(G4double newMass)
89 fPDGMassModified = true;
93void G4ParticlePropertyData::SetPDGWidth(G4double newWidth)
95 thePDGWidth = newWidth;
96 fPDGWidthModified = true;
100void G4ParticlePropertyData::SetPDGCharge(G4double newCharge)
102 thePDGCharge = newCharge;
103 fPDGChargeModified = true;
107void G4ParticlePropertyData::SetPDGiSpin(G4int newSpin)
109 thePDGiSpin = newSpin;
110 fPDGiSpinModified = true;
114void G4ParticlePropertyData::SetPDGiParity(G4int newParity)
116 thePDGiParity = newParity;
117 fPDGiParityModified = true;
121void G4ParticlePropertyData::SetPDGiConjugation(G4int newConjugation)
123 thePDGiConjugation = newConjugation;
124 fPDGiConjugationModified = true;
128void G4ParticlePropertyData::SetPDGiIsospin(G4int newIsospin)
130 thePDGiIsospin = newIsospin;
131 fPDGiIsospinModified = true;
135void G4ParticlePropertyData::SetPDGiIsospin3(G4int newIsospin3)
137 thePDGiIsospin3 = newIsospin3;
138 fPDGiIsospin3Modified = true;
142void G4ParticlePropertyData::SetPDGMagneticMoment(G4double mageticMoment)
144 thePDGMagneticMoment = mageticMoment;
145 fPDGMagneticMomentModified = true;
149void G4ParticlePropertyData::SetPDGiGParity(G4int newGParity)
151 thePDGiGParity = newGParity;
152 fPDGiGParityModified = true;
156void G4ParticlePropertyData::SetLeptonNumber(G4int newLeptonNumber)
158 theLeptonNumber = newLeptonNumber;
159 fLeptonNumberModified = true;
163void G4ParticlePropertyData::SetBaryonNumber(G4int newBaryonNumber)
165 theBaryonNumber = newBaryonNumber;
166 fBaryonNumberModified = true;
170void G4ParticlePropertyData::SetQuarkContent(G4int flavor, G4int newContent)
172 if ((flavor>0) && (flavor<=NumberOfQuarkFlavor))
174 theQuarkContent[flavor-1] = newContent;
175 fQuarkContentModified = true;
180void G4ParticlePropertyData::SetAntiQuarkContent(G4int flavor,
183 if ((flavor>0) && (flavor<=NumberOfQuarkFlavor))
185 theAntiQuarkContent[flavor-1] = newContent;
186 fAntiQuarkContentModified = true;
191void G4ParticlePropertyData::SetPDGLifeTime(G4double newLifeTime)
193 thePDGLifeTime = newLifeTime;
194 fPDGLifeTimeModified = true;