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

#include <SerpentTallyData.hxx>

Public Member Functions

 TallyResult ()
 constructor
 
 ~TallyResult ()
 destructor
 
ValErr_t Get (int CellNum=0, int ReactionNum=0, int ETNum=0)
 returns value read from bin (accesed by cell, reaction or energy grid index, safe)
 
ValErr_t GetValErr (int index)
 returns value read from bin (accesed by arbitrary index, unsafe)
 
int GetNumberOfBins ()
 returns number of bins read for this detector
 
void SetName (const string &name)
 sets tally name
 
string GetName ()
 
void SetNumber (int number)
 sets tally number
 
int GetNumber ()
 
float * GetETValues () const
 return energy grid data in form of float array associated with this detector
 
int GetETSize () const
 gets size of energy grid data
 
void SetETSize (int size)
 sets size of energy grid data
 
void AddBin (BinResult *bin)
 adds bin read
 
void AllocateET ()
 allocates memory for energy grid data
 
void SetETBin (int index, double value)
 changes entry of energy grid data
 
string PrintBin (int index)
 Printing method for bin used when multi-run data is merged into one file.
 

Static Public Member Functions

static TallyResultMerge (vector< TallyResult * > *tallies)
 merge results of 2 tallies
 

Private Attributes

string fName
 tally name
 
int fNumber
 tally number
 
vector< BinResult * > fBins
 
float * fEV
 
int fEN
 

Detailed Description

Define a data structure for detector output read from Serpent detector file.

Author
J.Hajnrych
Version
1.0

Constructor & Destructor Documentation

◆ TallyResult()

Serpent::TallyResult::TallyResult ( )

constructor

◆ ~TallyResult()

Serpent::TallyResult::~TallyResult ( )

destructor

Member Function Documentation

◆ AddBin()

void Serpent::TallyResult::AddBin ( BinResult bin)

adds bin read

◆ AllocateET()

void Serpent::TallyResult::AllocateET ( )

allocates memory for energy grid data

◆ Get()

ValErr_t Serpent::TallyResult::Get ( int  CellNum = 0,
int  ReactionNum = 0,
int  ETNum = 0 
)

returns value read from bin (accesed by cell, reaction or energy grid index, safe)

◆ GetETSize()

int Serpent::TallyResult::GetETSize ( ) const

gets size of energy grid data

◆ GetETValues()

float * Serpent::TallyResult::GetETValues ( ) const

return energy grid data in form of float array associated with this detector

◆ GetName()

string Serpent::TallyResult::GetName ( )
inline

< return tally name

◆ GetNumber()

int Serpent::TallyResult::GetNumber ( )
inline

< returns tally number

◆ GetNumberOfBins()

int Serpent::TallyResult::GetNumberOfBins ( )

returns number of bins read for this detector

◆ GetValErr()

ValErr_t Serpent::TallyResult::GetValErr ( int  index)

returns value read from bin (accesed by arbitrary index, unsafe)

◆ Merge()

TallyResult * Serpent::TallyResult::Merge ( vector< TallyResult * > *  tallies)
static

merge results of 2 tallies

◆ PrintBin()

string Serpent::TallyResult::PrintBin ( int  index)

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

◆ SetETBin()

void Serpent::TallyResult::SetETBin ( int  index,
double  value 
)

changes entry of energy grid data

◆ SetETSize()

void Serpent::TallyResult::SetETSize ( int  size)

sets size of energy grid data

◆ SetName()

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

sets tally name

◆ SetNumber()

void Serpent::TallyResult::SetNumber ( int  number)

sets tally number

Member Data Documentation

◆ fBins

vector< BinResult *> Serpent::TallyResult::fBins
private

◆ fEN

int Serpent::TallyResult::fEN
private

◆ fEV

float* Serpent::TallyResult::fEV
private

◆ fName

string Serpent::TallyResult::fName
private

tally name

◆ fNumber

int Serpent::TallyResult::fNumber
private

tally number


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

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