MURE
|
#include <SerpentTallyData.hxx>
Public Member Functions | |
EnergyGridResult () | |
constructor | |
~EnergyGridResult () | |
destructor | |
void | SetName (const string &name) |
sets detector name | |
int | GetTallyNumber () |
gets detector number associated with energy grid | |
void | SetTallyNumber (int number) |
sets detector number associated with energy grid | |
double | GetBin (unsigned binNumber) |
gets top-limit of energy at defined position | |
string | Print () |
Printing method used when multi-run data is merged into one file. | |
void | Add (double value, unsigned columnIndex) |
adds energy grid record to certain column. | |
int | GetSize () |
returns number of rows in energy grid. | |
Static Public Attributes | |
static const unsigned | NUMBER_OF_COLUMNS = 3 |
number of column fro the grid | |
Private Types | |
typedef vector< double > | Column |
Private Attributes | |
int | fTallyNumber |
tally number associated to the grid | |
string | fName |
tally name | |
vector< Column * > * | fBins |
Static Private Attributes | |
static const unsigned | VALUE_COLUMN_INDEX = 1 |
only column 1 (middle) is relevant | |
Define a data structure for Energy Grid read from Serpent detector file.
Energy Grid is stored in Serpent detector output file in 3 columns:
Only upper limit is relevant for MURE.
All of this data has to be stored in EnergyGridResult to corectly reproduce energy grids when multi-run data is merged into one file.
|
private |
Serpent::EnergyGridResult::EnergyGridResult | ( | ) |
constructor
Serpent::EnergyGridResult::~EnergyGridResult | ( | ) |
destructor
void Serpent::EnergyGridResult::Add | ( | double | value, |
unsigned | columnIndex | ||
) |
adds energy grid record to certain column.
double Serpent::EnergyGridResult::GetBin | ( | unsigned | binNumber | ) |
gets top-limit of energy at defined position
int Serpent::EnergyGridResult::GetSize | ( | ) |
returns number of rows in energy grid.
int Serpent::EnergyGridResult::GetTallyNumber | ( | ) |
gets detector number associated with energy grid
string Serpent::EnergyGridResult::Print | ( | ) |
Printing method used when multi-run data is merged into one file.
void Serpent::EnergyGridResult::SetName | ( | const string & | name | ) |
sets detector name
void Serpent::EnergyGridResult::SetTallyNumber | ( | int | number | ) |
sets detector number associated with energy grid
|
private |
|
private |
tally name
|
private |
tally number associated to the grid
|
static |
number of column fro the grid
|
staticprivate |
only column 1 (middle) is relevant