Geant4-11
G4ParticlePropertyData.icc
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
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. *
10// * *
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. *
17// * *
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// ********************************************************************
25//
26// G4ParticlePropertyData inline methods implementation
27//
28// Author: H.Kurashige, 9 June 2003
29// --------------------------------------------------------------------
30
31inline
32void G4ParticlePropertyData::SetVerboseLevel(G4int value)
33{
34 verboseLevel = value;
35}
36
37inline
38G4int G4ParticlePropertyData::GetVerboseLevel() const
39{
40 return verboseLevel;
41}
42
43inline
44G4int G4ParticlePropertyData::GetQuarkContent(G4int flavor) const
45{
46 if ((flavor>0) && (flavor<=NumberOfQuarkFlavor))
47 {
48 return theQuarkContent[flavor-1];
49 }
50 else
51 {
52 return 0;
53 }
54}
55
56inline
57G4int G4ParticlePropertyData::GetAntiQuarkContent(G4int flavor) const
58{
59 if ((flavor>0) && (flavor<NumberOfQuarkFlavor))
60 {
61 return theAntiQuarkContent[flavor-1];
62 }
63 else
64 {
65 return 0;
66 }
67}
68
69inline
70void G4ParticlePropertyData::SetPDGEncoding(G4int aEncoding)
71{
72 thePDGEncoding = aEncoding;
73 fPDGEncodingModified = true;
74 theAntiPDGEncoding = -1*aEncoding;
75 fAntiPDGEncodingModified = true;
76}
77
78inline
79void G4ParticlePropertyData::SetAntiPDGEncoding(G4int aEncoding)
80{
81 theAntiPDGEncoding = aEncoding;
82 fAntiPDGEncodingModified = true;
83}
84
85inline
86void G4ParticlePropertyData::SetPDGMass(G4double newMass)
87{
88 thePDGMass = newMass;
89 fPDGMassModified = true;
90}
91
92inline
93void G4ParticlePropertyData::SetPDGWidth(G4double newWidth)
94{
95 thePDGWidth = newWidth;
96 fPDGWidthModified = true;
97}
98
99inline
100void G4ParticlePropertyData::SetPDGCharge(G4double newCharge)
101{
102 thePDGCharge = newCharge;
103 fPDGChargeModified = true;
104}
105
106inline
107void G4ParticlePropertyData::SetPDGiSpin(G4int newSpin)
108{
109 thePDGiSpin = newSpin;
110 fPDGiSpinModified = true;
111}
112
113inline
114void G4ParticlePropertyData::SetPDGiParity(G4int newParity)
115{
116 thePDGiParity = newParity;
117 fPDGiParityModified = true;
118}
119
120inline
121void G4ParticlePropertyData::SetPDGiConjugation(G4int newConjugation)
122{
123 thePDGiConjugation = newConjugation;
124 fPDGiConjugationModified = true;
125}
126
127inline
128void G4ParticlePropertyData::SetPDGiIsospin(G4int newIsospin)
129{
130 thePDGiIsospin = newIsospin;
131 fPDGiIsospinModified = true;
132}
133
134inline
135void G4ParticlePropertyData::SetPDGiIsospin3(G4int newIsospin3)
136{
137 thePDGiIsospin3 = newIsospin3;
138 fPDGiIsospin3Modified = true;
139}
140
141inline
142void G4ParticlePropertyData::SetPDGMagneticMoment(G4double mageticMoment)
143{
144 thePDGMagneticMoment = mageticMoment;
145 fPDGMagneticMomentModified = true;
146}
147
148inline
149void G4ParticlePropertyData::SetPDGiGParity(G4int newGParity)
150{
151 thePDGiGParity = newGParity;
152 fPDGiGParityModified = true;
153}
154
155inline
156void G4ParticlePropertyData::SetLeptonNumber(G4int newLeptonNumber)
157{
158 theLeptonNumber = newLeptonNumber;
159 fLeptonNumberModified = true;
160}
161
162inline
163void G4ParticlePropertyData::SetBaryonNumber(G4int newBaryonNumber)
164{
165 theBaryonNumber = newBaryonNumber;
166 fBaryonNumberModified = true;
167}
168
169inline
170void G4ParticlePropertyData::SetQuarkContent(G4int flavor, G4int newContent)
171{
172 if ((flavor>0) && (flavor<=NumberOfQuarkFlavor))
173 {
174 theQuarkContent[flavor-1] = newContent;
175 fQuarkContentModified = true;
176 }
177}
178
179inline
180void G4ParticlePropertyData::SetAntiQuarkContent(G4int flavor,
181 G4int newContent)
182{
183 if ((flavor>0) && (flavor<=NumberOfQuarkFlavor))
184 {
185 theAntiQuarkContent[flavor-1] = newContent;
186 fAntiQuarkContentModified = true;
187 }
188}
189
190inline
191void G4ParticlePropertyData::SetPDGLifeTime(G4double newLifeTime)
192{
193 thePDGLifeTime = newLifeTime;
194 fPDGLifeTimeModified = true;
195}