Geant4-11
|
#include <G4ENDFTapeRead.hh>
Public Member Functions | |
G4ENDFTapeRead (G4String FileLocation, G4String FileName, G4FFGEnumerations::YieldType WhichYield, G4FFGEnumerations::FissionCause WhichCause) | |
G4ENDFTapeRead (G4String FileLocation, G4String FileName, G4FFGEnumerations::YieldType WhichYield, G4FFGEnumerations::FissionCause WhichCause, G4int Verbosity) | |
G4ENDFTapeRead (std::istringstream &dataStream, G4FFGEnumerations::YieldType WhichYield, G4FFGEnumerations::FissionCause WhichCause, G4int Verbosity) | |
G4double * | G4GetEnergyGroupValues (void) |
G4int | G4GetNumberOfEnergyGroups (void) |
G4int | G4GetNumberOfFissionProducts (void) |
G4ENDFYieldDataContainer * | G4GetYield (G4int WhichYield) |
void | G4SetVerbosity (G4int WhatVerbosity) |
~G4ENDFTapeRead (void) | |
Protected Member Functions | |
void | Initialize (G4String dataFile) |
void | Initialize (std::istringstream &dataStream) |
Private Member Functions | |
void | ReadInData (std::istringstream &dataStream) |
Private Attributes | |
G4int | EnergyGroups_ |
G4double * | EnergyGroupValues_ |
G4int | Verbosity_ |
G4TableTemplate< G4ENDFYieldDataContainer > * | YieldContainerTable_ |
const G4FFGEnumerations::YieldType | YieldType_ |
G4ENDFTapeRead is a class designed to read in data from unformatted ENDF data tapes for MT = 454 or MT = 459, which correspond to independent fission yields and cumulative fission yields, respectively. The data is stored internally and can be recalled one product at a time by calling G4GetNextYield().
Definition at line 48 of file G4ENDFTapeRead.hh.
G4ENDFTapeRead::G4ENDFTapeRead | ( | G4String | FileLocation, |
G4String | FileName, | ||
G4FFGEnumerations::YieldType | WhichYield, | ||
G4FFGEnumerations::FissionCause | WhichCause | ||
) |
Default constructor
FileLocation:
the absolute path to the fileFileName:
the name of the data fileWhichYield:
INDEPENDENT
or CUMULATIVE
WhichCause:
SPONTANEOUS
or N_INDUCED
Definition at line 47 of file G4ENDFTapeRead.cc.
References Initialize().
G4ENDFTapeRead::G4ENDFTapeRead | ( | G4String | FileLocation, |
G4String | FileName, | ||
G4FFGEnumerations::YieldType | WhichYield, | ||
G4FFGEnumerations::FissionCause | WhichCause, | ||
G4int | Verbosity | ||
) |
Overloaded constructor
FileLocation:
the absolute path to the fileFileName:
the name of the data fileWhichYield:
INDEPENDENT
or CUMULATIVE
WhichCause:
SPONTANEOUS
or N_INDUCED
Verbosity:
Verbosity levelDefinition at line 60 of file G4ENDFTapeRead.cc.
References Initialize().
G4ENDFTapeRead::G4ENDFTapeRead | ( | std::istringstream & | dataStream, |
G4FFGEnumerations::YieldType | WhichYield, | ||
G4FFGEnumerations::FissionCause | WhichCause, | ||
G4int | Verbosity | ||
) |
Overloaded constructor
DataFile:
The absolute path to the data fileWhichYield:
INDEPENDENT
or CUMULATIVE
WhichCause:
SPONTANEOUS
or N_INDUCED
Verbosity:
Verbosity levelDefinition at line 74 of file G4ENDFTapeRead.cc.
References Initialize().
G4ENDFTapeRead::~G4ENDFTapeRead | ( | void | ) |
Default Deconstructor
Definition at line 550 of file G4ENDFTapeRead.cc.
References EnergyGroupValues_, G4FFG_FUNCTIONENTER__, G4FFG_FUNCTIONLEAVE__, and YieldContainerTable_.
G4double * G4ENDFTapeRead::G4GetEnergyGroupValues | ( | void | ) |
Returns and array containing the values of each of the energy groups
Definition at line 120 of file G4ENDFTapeRead.cc.
References EnergyGroupValues_, G4FFG_FUNCTIONENTER__, and G4FFG_FUNCTIONLEAVE__.
Referenced by G4FissionProductYieldDist::Initialize().
G4int G4ENDFTapeRead::G4GetNumberOfEnergyGroups | ( | void | ) |
Returns the number of energy yield groups that were extracted from the ENDF tape file
Definition at line 129 of file G4ENDFTapeRead.cc.
References EnergyGroups_, G4FFG_FUNCTIONENTER__, and G4FFG_FUNCTIONLEAVE__.
Referenced by G4FissionProductYieldDist::Initialize().
G4int G4ENDFTapeRead::G4GetNumberOfFissionProducts | ( | void | ) |
Returns the number of fission products that were extracted from the ENDF tape file
Definition at line 138 of file G4ENDFTapeRead.cc.
References G4FFG_FUNCTIONENTER__, G4FFG_FUNCTIONLEAVE__, G4TableTemplate< T >::G4GetNumberOfElements(), and YieldContainerTable_.
Referenced by G4FissionProductYieldDist::MakeTrees(), and G4FissionProductYieldDist::ReadProbabilities().
G4ENDFYieldDataContainer * G4ENDFTapeRead::G4GetYield | ( | G4int | WhichYield | ) |
Returns the data for the requested fission product
WhichYield:
0-based index of the fission product for which to get the yield dataDefinition at line 149 of file G4ENDFTapeRead.cc.
References G4FFG_DATA_FUNCTIONENTER__, G4FFG_DATA_FUNCTIONLEAVE__, G4TableTemplate< T >::G4GetContainer(), and YieldContainerTable_.
Referenced by G4FissionProductYieldDist::ReadProbabilities().
void G4ENDFTapeRead::G4SetVerbosity | ( | G4int | WhatVerbosity | ) |
Sets the verbosity levels
WhichVerbosity:
Combination of levelsSILENT:
All verbose output is repressedUPDATES:
Only high-level internal changes are reportedDAUGHTER_INFO:
Displays information about daughter product samplingNEUTRON_INFO:
Displays information about neutron samplingGAMMA_INFO:
Displays information about gamma samplingALPHA_INFO:
Displays information about alpha samplingMOMENTUM_INFO:
Displays information about momentum balancingEXTRAPOLATION_INTERPOLATION_INFO:
Displays information about any data extrapolation or interpolation that occursDEBUG:
Reports program flow as it steps through functionsPRINT_ALL:
Displays any and all output Definition at line 164 of file G4ENDFTapeRead.cc.
References G4FFG_FUNCTIONENTER__, G4FFG_FUNCTIONLEAVE__, and Verbosity_.
Referenced by G4FissionProductYieldDist::G4SetVerbosity().
|
protected |
Initialize is a common function called by all constructors.
Definition at line 87 of file G4ENDFTapeRead.cc.
References G4ParticleHPManager::GetDataStream(), G4ParticleHPManager::GetInstance(), and Initialize().
Referenced by G4ENDFTapeRead(), and Initialize().
|
protected |
Initialize is a common function calles by all constructors
Definition at line 96 of file G4ENDFTapeRead.cc.
References EnergyGroups_, EnergyGroupValues_, G4FFG_FUNCTIONENTER__, G4FFG_FUNCTIONLEAVE__, ReadInData(), and YieldContainerTable_.
|
private |
Read in the data from an ENDF data tape.
Definition at line 174 of file G4ENDFTapeRead.cc.
References EnergyGroups_, EnergyGroupValues_, error, G4Exception(), G4FFG_FUNCTIONENTER__, G4FFG_FUNCTIONLEAVE__, G4TableTemplate< T >::G4GetNewContainer(), G4FFGEnumerations::GROUND_STATE, JustWarning, G4FFGEnumerations::META_1, G4FFGEnumerations::META_2, MT, G4ENDFYieldDataContainer::SetMetaState(), G4ENDFYieldDataContainer::SetProduct(), G4ENDFYieldDataContainer::SetYieldError(), G4ENDFYieldDataContainer::SetYieldProbability(), YieldContainerTable_, and YieldType_.
Referenced by Initialize().
|
private |
Stores the number corresponding to the fission cause that will be extracted Counter for the number of energy groups that were extracted
Definition at line 158 of file G4ENDFTapeRead.hh.
Referenced by G4GetNumberOfEnergyGroups(), Initialize(), and ReadInData().
|
private |
Array containing the values of the extracted energy groups
Definition at line 160 of file G4ENDFTapeRead.hh.
Referenced by G4GetEnergyGroupValues(), Initialize(), ReadInData(), and ~G4ENDFTapeRead().
|
private |
|
private |
Storage for the extracted data
Definition at line 164 of file G4ENDFTapeRead.hh.
Referenced by G4GetNumberOfFissionProducts(), G4GetYield(), Initialize(), ReadInData(), and ~G4ENDFTapeRead().
|
private |
Stores the number corresponding to the yield type that will be extracted
Definition at line 166 of file G4ENDFTapeRead.hh.
Referenced by ReadInData().