Geant4  10.00.p02
G4ParticlePropertyData.hh
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.hh 67971 2013-03-13 10:13:24Z gcosmo $
28 //
29 //
30 // ------------------------------------------------------------
31 // GEANT 4 class header file
32 //
33 // History:
34 // ---------------- G4ParticlePropertyData ----------------
35 // first implementation by H Kurashige 9 June 2003
36 // Add magnetic moment by H Kurashige Mar 2007
37 // ------------------------------------------------------------
38 
39 #ifndef G4ParticlePropertyData_h
40 #define G4ParticlePropertyData_h 1
41 
42 #include "globals.hh"
43 #include "G4ios.hh"
44 
47 {
48  // Class Description
49  // This class containes properties of a particle which are subset
50  // of properties in G4ParticleDefinition class.
51  // This class is used only for G4ParticlePropertyTable.
52  //
53 
55 
56  public: // With Description
57 
58  G4ParticlePropertyData(const G4String& particleName = "");
59  // The particle name should be assigned
60  // This particle name can not be changed except for assignment operator
61 
63 
64  virtual ~G4ParticlePropertyData();
65 
67 
70 
71  public: // With Description
72  // By these following Getxxxx methods, you can get values
73  // for members which can not be changed
74  const G4String& GetParticleName() const { return theParticleName; }
75 
76  G4double GetPDGMass() const { return thePDGMass; }
77  G4double GetPDGWidth() const { return thePDGWidth; }
78  G4double GetPDGCharge() const { return thePDGCharge; }
79 
80  G4int GetPDGiSpin() const { return thePDGiSpin; }
81  G4int GetPDGiParity() const { return thePDGiParity; }
83  G4int GetPDGiIsospin() const { return thePDGiIsospin; }
85  G4int GetPDGiGParity() const { return thePDGiGParity; }
86 
88 
91 
92  G4int GetPDGEncoding() const { return thePDGEncoding; }
94 
95  G4int GetQuarkContent(G4int flavor) const;
96  G4int GetAntiQuarkContent(G4int flavor) const;
97  // return the number of quark with flavor contained in this particle.
98  // The value of flavor is assigned as follows
99  // 1:d, 2:u, 3:s, 4:c, 5:b, 6:t
100 
102 
103  // SetXXX methods
104  void SetPDGMass(G4double newMass);
105  void SetPDGWidth(G4double newWidth);
106  void SetPDGCharge(G4double newCharge);
107 
108  void SetPDGiSpin(G4int newSpin);
109  void SetPDGiParity(G4int newParity);
110  void SetPDGiConjugation(G4int newConjugation);
111  void SetPDGiIsospin(G4int newIsospin);
112  void SetPDGiIsospin3(G4int newIsospin3);
113  void SetPDGiGParity(G4int newGParity);
114 
115  void SetPDGMagneticMoment(G4double mageticMoment);
116 
117  void SetLeptonNumber(G4int newLeptonNumber);
118  void SetBaryonNumber(G4int newBaryonNumber);
119 
120  void SetPDGEncoding(G4int newEncoding);
121  void SetAntiPDGEncoding(G4int newAntiEncoding);
122 
123  void SetQuarkContent(G4int flavor, G4int newContent);
124  void SetAntiQuarkContent(G4int flavor, G4int newContent);
125  void SetPDGLifeTime(G4double newLifeTime);
126 
127  public: // With Description
128  void Print() const;
129  // Prints information of data members.
130 
131  public:
132  void SetVerboseLevel(G4int value);
133  G4int GetVerboseLevel() const;
134  // controle flag for output message
135  // 0: Silent
136  // 1: Warning message
137  // 2: More
138 
139 
140  private:
142  // The name of the particle.
143 
145  // The mass of the particle, in units of equivalent energy.
146 
148  // The decay width of the particle, usually the width of a
149  // Breit-Wigner function, assuming that you are near the
150  // mass center anyway. (in units of equivalent energy)
151 
153  // The charge of the particle.(in units of Coulomb)
154 
155  // ---- following members are quantum number
156  // i.e. discrete numbers can be allowded
157  // So, you can defined only by using integer in constructor
158 
160  // The total spin of the particle, also often denoted as
161  // capital J, in units of 1/2.
162 
164  // The parity quantum number, in units of 1. If the parity
165  // is not defined for this particle, we will set this to 0.
166 
168  // This charge conjugation quantum number in units of 1.
169 
171  // The value of the G-parity quantum number.
172 
175  // The isospin and its 3rd-component in units of 1/2.
176 
178  // The magnetic moment.
179 
181  // The lepton quantum number.
182 
184  // The baryon quantum number.
185 
187  // The Particle Data Group integer identifier of this particle
188 
190  // The Particle Data Group integer identifier of the anti-particle
191 
193  // The Particle Life Time
194 
198  // the number of quark (minus Sign means anti-quark) contents
199 
200  private:
220 
221  private:
223 
224 };
225 
227 
228 #endif
229 
230 
void SetAntiQuarkContent(G4int flavor, G4int newContent)
G4ParticlePropertyData & operator=(const G4ParticlePropertyData &right)
G4double GetPDGMagneticMoment() const
void SetPDGiConjugation(G4int newConjugation)
void SetPDGiIsospin3(G4int newIsospin3)
void SetLeptonNumber(G4int newLeptonNumber)
void SetQuarkContent(G4int flavor, G4int newContent)
G4int theAntiQuarkContent[NumberOfQuarkFlavor]
G4int GetAntiQuarkContent(G4int flavor) const
int G4int
Definition: G4Types.hh:78
G4ParticlePropertyData(const G4String &particleName="")
void SetPDGCharge(G4double newCharge)
void SetPDGiParity(G4int newParity)
void SetVerboseLevel(G4int value)
void SetPDGiIsospin(G4int newIsospin)
G4int operator!=(const G4ParticlePropertyData &right) const
G4int operator==(const G4ParticlePropertyData &right) const
G4int GetVerboseLevel() const
void SetPDGWidth(G4double newWidth)
void SetPDGEncoding(G4int newEncoding)
bool G4bool
Definition: G4Types.hh:79
void SetPDGMagneticMoment(G4double mageticMoment)
void SetAntiPDGEncoding(G4int newAntiEncoding)
void SetPDGiSpin(G4int newSpin)
void SetPDGiGParity(G4int newGParity)
void SetPDGLifeTime(G4double newLifeTime)
void SetBaryonNumber(G4int newBaryonNumber)
G4int GetQuarkContent(G4int flavor) const
G4int theQuarkContent[NumberOfQuarkFlavor]
double G4double
Definition: G4Types.hh:76
const G4String & GetParticleName() const
void SetPDGMass(G4double newMass)