source: trunk/source/particles/management/include/G4IsotopeProperty.hh @ 1202

Last change on this file since 1202 was 1196, checked in by garnier, 15 years ago

update CVS release candidate geant4.9.3.01

File size: 5.0 KB
Line 
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: G4IsotopeProperty.hh,v 1.5 2007/03/15 06:53:27 kurasige Exp $
28// GEANT4 tag $Name: geant4-09-03-cand-01 $
29//
30//
31// ------------------------------------------------------------
32//      GEANT 4 class header file
33//
34// ------------------------------------------------------------
35//      New design using G4VIsotopeTable          5 Oct. 99 H.Kurashige
36//      Add Magnetic Moment                      14 Mar  07 H.Kurashige
37
38#ifndef G4IsotopeProperty_h
39#define G4IsotopeProperty_h 1
40
41#include "globals.hh"
42class    G4DecayTable;
43class G4IsotopeProperty
44{
45 // Class Description
46 //   G4IsotopeProperty contains properties of an isotope
47 //
48
49 public:
50  G4IsotopeProperty();
51
52  // copy construictor 
53  G4IsotopeProperty(const  G4IsotopeProperty& right);
54
55  // Assignment operator
56  G4IsotopeProperty & operator=(G4IsotopeProperty& right);
57 
58  // equal / unequal operator
59  G4int operator==(const G4IsotopeProperty &right) const;
60  G4int operator!=(const G4IsotopeProperty &right) const;
61
62  // destructor
63  virtual ~G4IsotopeProperty();
64
65
66 public:  // With Description
67  // Set/Get Atomic Number
68  G4int         GetAtomicNumber() const;
69  void          SetAtomicNumber(G4int Z);
70
71  // Set/Get Atomic Mass
72  G4int         GetAtomicMass() const;
73  void          SetAtomicMass(G4int A);
74
75  // Set/Get spin
76  G4int         GetiSpin() const;
77  void          SetiSpin(G4int J);
78
79  // Set/Get Magentic Moment
80  G4double      GetMagneticMoment() const;
81  void          SetMagneticMoment(G4double M);
82
83  // Set/Get Excited Energy
84  G4double      GetEnergy() const;
85  void          SetEnergy(G4double  E);
86
87  // Set/Get life time
88  G4double      GetLifeTime() const;
89  void          SetLifeTime(G4double  T);
90
91  // Set/Get decay table
92  G4DecayTable* GetDecayTable() const;
93  void          SetDecayTable(G4DecayTable*  table);
94
95  // Dump out information
96  void          DumpInfo() const;
97
98 private:
99  G4int         fAtomicNumber;     // number of proton
100  G4int         fAtomicMass;       // number of nucleon
101  G4int         fISpin;            // total angular momentum (in unit of 1/2)
102  G4double      fEnergy;           // excited energy
103  G4double      fLifeTime;         // lifeTime
104  G4DecayTable* fDecayTable;       // decay Table
105  G4double      fMagneticMoment;   // magnetic moment
106};
107
108inline 
109 G4int G4IsotopeProperty::GetAtomicNumber() const
110{
111  return fAtomicNumber;
112}
113
114inline 
115 void G4IsotopeProperty::SetAtomicNumber(G4int Z)
116{
117    fAtomicNumber = Z;
118}
119
120inline 
121 G4int G4IsotopeProperty::GetAtomicMass() const
122{
123  return fAtomicMass;
124}
125
126inline 
127 void G4IsotopeProperty::SetAtomicMass(G4int A)
128{
129    fAtomicMass = A;
130}
131
132inline 
133 G4int G4IsotopeProperty::GetiSpin() const
134{
135  return fISpin;
136}
137
138inline 
139 void G4IsotopeProperty::SetiSpin(G4int J)
140{
141    fISpin = J;
142}
143
144inline
145  G4double  G4IsotopeProperty::GetMagneticMoment() const
146{
147  return fMagneticMoment;
148}
149
150inline
151  void     G4IsotopeProperty::SetMagneticMoment(G4double M)
152{
153  fMagneticMoment = M;
154}
155
156inline 
157 G4double G4IsotopeProperty::GetEnergy() const
158{
159  return fEnergy;
160}
161
162inline 
163 void G4IsotopeProperty::SetEnergy(G4double E)
164{
165    fEnergy = E;
166}
167
168inline 
169 G4double G4IsotopeProperty::GetLifeTime() const
170{
171  return fLifeTime;
172}
173
174inline 
175 void G4IsotopeProperty::SetLifeTime(G4double T)
176{
177    fLifeTime = T;
178}
179
180inline 
181 G4DecayTable* G4IsotopeProperty::GetDecayTable() const
182{
183  return fDecayTable;
184}
185
186inline 
187 void G4IsotopeProperty::SetDecayTable(G4DecayTable* table)
188{
189    fDecayTable = table;
190}
191#endif
192
193
194
195
196
197
198
199
200
201
Note: See TracBrowser for help on using the repository browser.