Geant4  10.02
G4LevelReader.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: G4LevelReader.hh 88382 2015-02-17 10:49:24Z vnivanch $
27 //
28 // -------------------------------------------------------------------
29 //
30 // GEANT4 header file
31 //
32 // File name: G4LevelReader
33 //
34 // Author: V.Ivanchenko
35 //
36 // Creation date: 4 January 2012
37 //
38 // Modifications:
39 //
40 // -------------------------------------------------------------------
41 //
42 // Helper class to read Geant4 nuclear level data
43 //
44 
45 #ifndef G4LEVELREADER_HH
46 #define G4LEVELREADER_HH 1
47 
48 #include "globals.hh"
49 #include "G4LevelManager.hh"
50 #include <iosfwd>
51 
53 {
54 
55 public:
56 
57  G4LevelReader();
58 
60 
61  // create run manager using G4LEVELGAMMADATA data
63 
64  // create run manager using whatever data
66  const G4String& filename);
67 
68  inline void SetVerbose(G4int val);
69 
70 private:
71 
72  G4bool ReadDataItem(std::istream& dataFile, G4double& x);
73 
74  G4bool ReadDataItem(std::istream& dataFile, G4String& x);
75 
76  const std::vector<G4float>* NormalizedICCProbability(G4int Z);
77 
79  const G4LevelReader& operator=(const G4LevelReader &right);
80  G4bool operator==(const G4LevelReader &right) const;
81  G4bool operator!=(const G4LevelReader &right) const;
82 
85 
97 
98  static G4String fTrans[10];
102 
103  char buffer[20];
104  char bufp[2];
105 
107 
108  std::vector<G4float> vEnergy;
109  std::vector<G4float> vTime;
110  std::vector<G4float> vTimeg;
111  std::vector<G4int> vSpin;
112  std::vector<const G4NucLevel*> vLevel;
113 
114  std::vector<G4float> vTransEnergy;
115  std::vector<G4float> vGammaCumProbability;
116  std::vector<G4float> vGammaECumProbability;
117  std::vector<G4float> vGammaProbability;
118  std::vector<G4int> vTrans;
119  std::vector<const std::vector<G4float>*> vShellProbability;
120 };
121 
123 {
124  fVerbose = val;
125 }
126 
127 #endif
G4double fNorm2
std::vector< G4int > vSpin
G4double fCurrEnergy
G4double fNorm3
G4double fICC[10]
std::vector< const G4NucLevel * > vLevel
const std::vector< G4float > * NormalizedICCProbability(G4int Z)
std::vector< G4float > vTransEnergy
void SetVerbose(G4int val)
const G4LevelManager * MakeLevelManager(G4int Z, G4int A, const G4String &filename)
G4double fEnergy
G4double fNorm1
int G4int
Definition: G4Types.hh:78
std::vector< G4float > vTime
double A(double temperature)
bool G4bool
Definition: G4Types.hh:79
G4bool ReadDataItem(std::istream &dataFile, G4double &x)
std::vector< G4float > vTimeg
G4double fAlpha
G4bool operator!=(const G4LevelReader &right) const
static G4String fTrans[10]
std::vector< const std::vector< G4float > * > vShellProbability
G4double fTime
std::vector< G4int > vTrans
const G4LevelReader & operator=(const G4LevelReader &right)
const G4double x[NPOINTSGL]
G4bool operator==(const G4LevelReader &right) const
std::vector< G4float > vGammaCumProbability
G4double fSpin
G4double fTrEnergy
G4String fDirectory
const G4LevelManager * CreateLevelManager(G4int Z, G4int A)
std::vector< G4float > vGammaECumProbability
double G4double
Definition: G4Types.hh:76
G4double fTimeFactor
std::vector< G4float > vEnergy
std::vector< G4float > vGammaProbability
G4double fMinProbability
G4double fProb