Geant4  10.00.p02
G4NuclearLevelStore.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 // $Id: G4NuclearLevelStore.hh 67983 2013-03-13 10:42:03Z gcosmo $
27 //
28 // 04-10-2010 M. Kelsey -- Replace G4String keys with integers (ZZZAAA),
29 // move string operation to GenerateFilename()
30 // 17-11-2010 V. Ivanchenko - make as a classical singleton.
31 //
32 // 17-10-2011 L. Desorgher -- Allow the user to replace the radioactive
33 // decay data provided in Geant4 by its own data file for
34 // a given isotope
35 // 06-01-2012 V. Ivanchenko - added nuclear level data structure for
36 // usage in HEP where internal conversion is neglected;
37 // cleanup the code; new method GetLevelManager
38 
39 #ifndef G4NuclearLevelStore_hh
40 #define G4NuclearLevelStore_hh 1
41 
42 #include "G4NuclearLevelManager.hh"
43 #include "G4LevelManager.hh"
44 #include "G4LevelReader.hh"
45 #include "globals.hh"
46 #include <map>
47 
49 {
50 private:
51 
53 
54 public:
55 
57 
59 
61 
63 
65  const G4String& filename);
66 
67 private:
68 
69  G4int GenerateKey(G4int Z, G4int A) const { return Z*1000+A; }
70 
72 
73  typedef std::map<G4int,G4NuclearLevelManager*> ManagersMap;
74  typedef std::map<G4int,G4LevelManager*> MapForHEP;
75 
77  ManagersMap theManagers;
78  MapForHEP managersForHEP;
80 
82 
84  std::map<G4int, G4String> theUserDataFiles;
85 };
86 #endif
std::map< G4int, G4String > theUserDataFiles
static G4NuclearLevelStore * GetInstance()
#define G4ThreadLocal
Definition: tls.hh:52
int G4int
Definition: G4Types.hh:78
static G4ThreadLocal G4NuclearLevelStore * theInstance
void AddUserEvaporationDataFile(G4int Z, G4int A, const G4String &filename)
bool G4bool
Definition: G4Types.hh:79
G4LevelManager * GetLevelManager(G4int Z, G4int A)
G4int GenerateKey(G4int Z, G4int A) const
static const G4double A[nN]
G4NuclearLevelManager * GetManager(G4int Z, G4int A)
std::map< G4int, G4LevelManager * > MapForHEP
G4String GenerateFileName(G4int Z, G4int A) const
std::map< G4int, G4NuclearLevelManager * > ManagersMap