Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4VIsotopeTable.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: G4VIsotopeTable.hh 69557 2013-05-08 12:01:40Z gcosmo $
28 //
29 //
30 // ------------------------------------------------------------
31 // GEANT 4 class header file
32 //
33 //----------------------------------------------------------
34 // New design 5 Oct. 99 H.Kurashige
35 // Add additinal GetIsotope method 30 Apr. 2013 H.Kurashige
36 #ifndef G4VIsotopeTable_h
37 #define G4VIsotopeTable_h 1
38 
39 #include "G4ios.hh"
40 #include "globals.hh"
41 
42 class G4IsotopeProperty;
43 
45 {
46  // Class Description
47  // G4VIsotopeTable is the virtual class for acsess to an isotpe table
48  // which contains "stable" isotopes with their properties.
49  //
50 
51  public:
52  // constructor
54  explicit G4VIsotopeTable(const G4String& );
55 
58 
59  public:
60  // destructor
61  virtual ~G4VIsotopeTable();
62 
63  public: // With Description
64  // pure virtual method
65  virtual G4IsotopeProperty* GetIsotope(G4int Z, G4int A, G4double E)=0;
66  virtual G4IsotopeProperty* GetIsotopeByIsoLvl(G4int Z, G4int A, G4int level=0);
67  // Search the isotope in the G4VIsotopeTable.
68  // The isotope is desingated by
69  // G4int Z: number of proton (Atomic number)
70  // G4int A: number of nucleon (Atomic mass)
71  // and
72  // G4double E: excited energy
73  // or
74  // G4int level: isomer level
75  // in the given G4IsotopeProperty.
76  // If corresopnding isotope exist in the table, this method returns
77  // 'true' as well as fills other properties such as spin, lifetime,
78  // ,decay modes and precise excited energy in the given G4IsotopeProperty.
79  // This method returns 'false' if no corresponding isotope is found
80  // without modification of property.
81  //
82 
83  // Set/Get verbose level
84  G4int GetVerboseLevel() const;
85  void SetVerboseLevel(G4int level);
86 
87  // Dump table
88  void DumpTable(G4int Zmin=1, G4int Zmax=118);
89 
90  //
91  const G4String& GetName() const;
92 
93  private:
94  G4String fName;
95  G4int verboseLevel;
96 };
97 
98 inline
100 {
101  return fName;
102 }
103 
104 inline
106 {
107  return verboseLevel;
108 }
109 
110 inline
112 {
113  verboseLevel = level;
114 }
115 
116 #endif
const G4String & GetName() const
virtual G4IsotopeProperty * GetIsotopeByIsoLvl(G4int Z, G4int A, G4int level=0)
int G4int
Definition: G4Types.hh:78
void DumpTable(G4int Zmin=1, G4int Zmax=118)
virtual ~G4VIsotopeTable()
virtual G4IsotopeProperty * GetIsotope(G4int Z, G4int A, G4double E)=0
G4int GetVerboseLevel() const
G4VIsotopeTable & operator=(const G4VIsotopeTable &)
double G4double
Definition: G4Types.hh:76
void SetVerboseLevel(G4int level)