Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
processes
hadronic
models
de_excitation
photon_evaporation
include
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
42
#include "
G4NuclearLevelManager.hh
"
43
#include "
G4LevelManager.hh
"
44
#include "
G4LevelReader.hh
"
45
#include "
globals.hh
"
46
#include <map>
47
48
class
G4NuclearLevelStore
49
{
50
private
:
51
52
G4NuclearLevelStore
();
53
54
public
:
55
56
static
G4NuclearLevelStore
*
GetInstance
();
57
58
G4NuclearLevelManager
*
GetManager
(
G4int
Z
,
G4int
A);
59
60
G4LevelManager
*
GetLevelManager
(
G4int
Z,
G4int
A);
61
62
~G4NuclearLevelStore
();
63
64
void
AddUserEvaporationDataFile
(
G4int
Z,
G4int
A,
65
const
G4String
& filename);
66
67
private
:
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
Generated on Sat May 25 2013 14:33:55 for Geant4 by
1.8.4