Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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$
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
43#include "G4LevelManager.hh"
44#include "G4LevelReader.hh"
45#include "globals.hh"
46#include <map>
47
49{
50private:
51
53
54public:
55
57
59
61
63
65 const G4String& filename);
66
67private:
68
69 G4int GenerateKey(G4int Z, G4int A) const { return Z*1000+A; }
70
71 G4String GenerateFileName(G4int Z, G4int A) const;
72
73 typedef std::map<G4int,G4NuclearLevelManager*> ManagersMap;
74 typedef std::map<G4int,G4LevelManager*> MapForHEP;
75
76 G4LevelReader reader;
77 ManagersMap theManagers;
78 MapForHEP managersForHEP;
79 G4String dirName;
80
81 static G4NuclearLevelStore* theInstance;
82
83 G4bool userFiles;
84 std::map<G4int, G4String> theUserDataFiles;
85};
86#endif
int G4int
Definition: G4Types.hh:66
bool G4bool
Definition: G4Types.hh:67
G4LevelManager * GetLevelManager(G4int Z, G4int A)
G4NuclearLevelManager * GetManager(G4int Z, G4int A)
void AddUserEvaporationDataFile(G4int Z, G4int A, const G4String &filename)
static G4NuclearLevelStore * GetInstance()