19#ifndef SERPENTTALLYDATA_HXX
20#define SERPENTTALLYDATA_HXX
21#include <libValErr/ValErr.hxx>
68 void SetName(
const string &name);
71 double GetBin(
unsigned binNumber);
73 void Add(
double value,
unsigned columnIndex);
100 void SetValErr(
double value,
double error);
131 ValErr_t
Get(
int CellNum = 0,
int ReactionNum = 0,
int ETNum = 0);
135 void SetName(
const string &name);
150 void SetETBin(
int index,
double value);
Header file for vector operation, Regression and FindFitParameters functions.
Definition SerpentTallyData.hxx:95
static const unsigned NUMBER_OF_INDEXES
Definition SerpentTallyData.hxx:97
vector< int > fBinIndices
Definition SerpentTallyData.hxx:113
int GetReactionBinIndex()
gets Reaction Bin Index
Definition SerpentTallyData.cxx:152
int GetETBinIndex()
gets Energy Grid Bin Index
Definition SerpentTallyData.cxx:158
int GetIndex(unsigned pos)
gets Index from row "pos"
Definition SerpentTallyData.cxx:164
ValErr_t GetValErr()
returns value read from bin
Definition SerpentTallyData.cxx:128
void AddIndex(unsigned index)
adds next bin index
Definition SerpentTallyData.cxx:140
~BinResult()
destructor
Definition SerpentTallyData.cxx:121
static const unsigned REACTION_NUM_POS
Definition SerpentTallyData.hxx:112
string Print()
Printing method used when multi-run data is merged into one file.
Definition SerpentTallyData.cxx:170
int GetCellBinIndex()
gets Cell Bin Index
Definition SerpentTallyData.cxx:146
void SetValErr(double value, double error)
sets value read from bin
Definition SerpentTallyData.cxx:134
static const unsigned ET_NUM_POS
Definition SerpentTallyData.hxx:110
BinResult()
constructor
Definition SerpentTallyData.cxx:115
static const unsigned CELL_NUM_POS
Definition SerpentTallyData.hxx:111
ValErr_t * fData
Definition SerpentTallyData.hxx:114
Definition SerpentTallyData.hxx:63
static const unsigned NUMBER_OF_COLUMNS
number of column fro the grid
Definition SerpentTallyData.hxx:65
int GetSize()
returns number of rows in energy grid.
Definition SerpentTallyData.cxx:105
vector< Column * > * fBins
Definition SerpentTallyData.hxx:82
string Print()
Printing method used when multi-run data is merged into one file.
Definition SerpentTallyData.cxx:80
void SetTallyNumber(int number)
sets detector number associated with energy grid
Definition SerpentTallyData.cxx:66
int fTallyNumber
tally number associated to the grid
Definition SerpentTallyData.hxx:80
double GetBin(unsigned binNumber)
gets top-limit of energy at defined position
Definition SerpentTallyData.cxx:72
vector< double > Column
Definition SerpentTallyData.hxx:78
string fName
tally name
Definition SerpentTallyData.hxx:81
int GetTallyNumber()
gets detector number associated with energy grid
Definition SerpentTallyData.cxx:60
EnergyGridResult()
constructor
Definition SerpentTallyData.cxx:35
void SetName(const string &name)
sets detector name
Definition SerpentTallyData.cxx:54
void Add(double value, unsigned columnIndex)
adds energy grid record to certain column.
Definition SerpentTallyData.cxx:99
static const unsigned VALUE_COLUMN_INDEX
only column 1 (middle) is relevant
Definition SerpentTallyData.hxx:79
~EnergyGridResult()
destructor
Definition SerpentTallyData.cxx:43
Definition SerpentTallyData.hxx:174
TallyDatabase * GetTallyDatabase()
Definition SerpentTallyData.hxx:180
int GetNumberOfET()
Definition SerpentTallyData.hxx:200
EnergyGridTable * GetEnergyGridTable()
Definition SerpentTallyData.hxx:184
void AddTally(TallyResult *tally)
Definition SerpentTallyData.hxx:188
int GetNumberOfTallies()
Definition SerpentTallyData.hxx:196
void Clear()
clears data
Definition SerpentTallyData.cxx:375
void AddET(EnergyGridResult *et)
Definition SerpentTallyData.hxx:192
EnergyGridResult * GetET(int index)
Definition SerpentTallyData.hxx:208
TallyDatabase * fTallyData
Definition SerpentTallyData.hxx:214
TallyResult * GetTally(int index)
Definition SerpentTallyData.hxx:204
EnergyGridTable * fEnergyTable
Definition SerpentTallyData.hxx:215
~TallyData()
destructor
Definition SerpentTallyData.cxx:357
TallyData()
constructor
Definition SerpentTallyData.cxx:350
Definition SerpentTallyData.hxx:127
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)
Definition SerpentTallyData.cxx:213
int fNumber
tally number
Definition SerpentTallyData.hxx:155
void SetNumber(int number)
sets tally number
Definition SerpentTallyData.cxx:240
void AddBin(BinResult *bin)
adds bin read
Definition SerpentTallyData.cxx:264
vector< BinResult * > fBins
Definition SerpentTallyData.hxx:156
int GetNumberOfBins()
returns number of bins read for this detector
Definition SerpentTallyData.cxx:246
~TallyResult()
destructor
Definition SerpentTallyData.cxx:200
int GetNumber()
Definition SerpentTallyData.hxx:141
int fEN
Definition SerpentTallyData.hxx:158
float * fEV
Definition SerpentTallyData.hxx:157
void AllocateET()
allocates memory for energy grid data
Definition SerpentTallyData.cxx:270
int GetETSize() const
gets size of energy grid data
Definition SerpentTallyData.cxx:258
string fName
tally name
Definition SerpentTallyData.hxx:154
void SetETSize(int size)
sets size of energy grid data
Definition SerpentTallyData.cxx:282
string PrintBin(int index)
Printing method for bin used when multi-run data is merged into one file.
Definition SerpentTallyData.cxx:288
ValErr_t GetValErr(int index)
returns value read from bin (accesed by arbitrary index, unsafe)
Definition SerpentTallyData.cxx:228
void SetName(const string &name)
sets tally name
Definition SerpentTallyData.cxx:234
string GetName()
Definition SerpentTallyData.hxx:136
static TallyResult * Merge(vector< TallyResult * > *tallies)
merge results of 2 tallies
Definition SerpentTallyData.cxx:294
float * GetETValues() const
return energy grid data in form of float array associated with this detector
Definition SerpentTallyData.cxx:252
void SetETBin(int index, double value)
changes entry of energy grid data
Definition SerpentTallyData.cxx:276
TallyResult()
constructor
Definition SerpentTallyData.cxx:191
the namespace use to couple MURE and Serpent
vector< EnergyGridResult * > EnergyGridTable
Definition SerpentTallyData.hxx:163
vector< TallyResult * > TallyDatabase
Definition SerpentTallyData.hxx:162