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