#include <G4LevelManager.hh>
Definition at line 56 of file G4LevelManager.hh.
◆ G4LevelManager()
Definition at line 46 of file G4LevelManager.cc.
48 : theZ(Z),theA(A),fEdiffMax(100*keV)
49{
51 nLevels = fLevel.size();
52}
void FillLevels(G4int Z, G4int A, std::vector< G4NucLevel * > *levels, const G4String &filename)
◆ ~G4LevelManager()
G4LevelManager::~G4LevelManager |
( |
| ) |
|
Definition at line 54 of file G4LevelManager.cc.
55{
56 if(nLevels > 0) {
57 for(
G4int i=0; i<nLevels; ++i) {
delete fLevel[i]; }
58 }
59}
◆ GetLevel()
◆ NearestLevel()
Definition at line 97 of file G4LevelManager.hh.
98{
100 if(energy < fLevel[nLevels-1]->LevelEnergy() + fEdiffMax) {
101 for(
G4int i=nLevels-1; i>=0; --i) {
102 p = fLevel[i];
104 if(0 == i || energy > lEnergy) { break; }
105 if(lEnergy - energy <= 0.5*(lEnergy - fLevel[i-1]->LevelEnergy()))
106 { break; }
107 }
108 }
109 return p;
110}
G4double LevelEnergy() const
◆ NumberOfLevels()
G4int G4LevelManager::NumberOfLevels |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: