MURE
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Private Types | Private Attributes | Static Private Attributes | List of all members
Serpent::EnergyGridResult Class Reference

#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
 

Detailed Description

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.

Author
J.Hajnrych
Version
1.0

Member Typedef Documentation

◆ Column

typedef vector< double > Serpent::EnergyGridResult::Column
private

Constructor & Destructor Documentation

◆ EnergyGridResult()

Serpent::EnergyGridResult::EnergyGridResult ( )

constructor

◆ ~EnergyGridResult()

Serpent::EnergyGridResult::~EnergyGridResult ( )

destructor

Member Function Documentation

◆ Add()

void Serpent::EnergyGridResult::Add ( double  value,
unsigned  columnIndex 
)

adds energy grid record to certain column.

◆ GetBin()

double Serpent::EnergyGridResult::GetBin ( unsigned  binNumber)

gets top-limit of energy at defined position

◆ GetSize()

int Serpent::EnergyGridResult::GetSize ( )

returns number of rows in energy grid.

◆ GetTallyNumber()

int Serpent::EnergyGridResult::GetTallyNumber ( )

gets detector number associated with energy grid

◆ Print()

string Serpent::EnergyGridResult::Print ( )

Printing method used when multi-run data is merged into one file.

◆ SetName()

void Serpent::EnergyGridResult::SetName ( const string &  name)

sets detector name

◆ SetTallyNumber()

void Serpent::EnergyGridResult::SetTallyNumber ( int  number)

sets detector number associated with energy grid

Member Data Documentation

◆ fBins

vector< Column *>* Serpent::EnergyGridResult::fBins
private

◆ fName

string Serpent::EnergyGridResult::fName
private

tally name

◆ fTallyNumber

int Serpent::EnergyGridResult::fTallyNumber
private

tally number associated to the grid

◆ NUMBER_OF_COLUMNS

const unsigned Serpent::EnergyGridResult::NUMBER_OF_COLUMNS = 3
static

number of column fro the grid

◆ VALUE_COLUMN_INDEX

const unsigned Serpent::EnergyGridResult::VALUE_COLUMN_INDEX = 1
staticprivate

only column 1 (middle) is relevant


The documentation for this class was generated from the following files:

MURE Project, documentation generated by Doxygen 1.9.7 - Fri Jan 19 2024