19#ifndef SERPENTDETECTOROUTPUTREADER_HXX
20#define SERPENTDETECTOROUTPUTREADER_HXX
56 void Clear()
override;
59 void Read(
const string &fileName)
override;
60 void Read(
const vector < string > &fileNames);
61 string Print()
override;
Definition SerpentTallyData.hxx:95
Definition SerpentDetectorOutputReader.hxx:52
void ParseEnergyBlock(istringstream &stream, const string &tallyName)
parses energy grid block in output file
Definition SerpentDetectorOutputReader.cxx:95
~DetectorOutputReader() override
destructor
Definition SerpentDetectorOutputReader.cxx:40
int GetTallyNumber(const string &name) const
parses heading of detector block (e.g DETd3) to get tally number
Definition SerpentDetectorOutputReader.cxx:149
TallyData * GetMultiRunData(const vector< TallyData * > &tallyDataVector)
sum data from a suite of multi-run tallies
Definition SerpentDetectorOutputReader.cxx:221
TallyData * fData
Definition SerpentDetectorOutputReader.hxx:80
void FillEnergyGridsInTallies()
fills energy grid data in tally results
Definition SerpentDetectorOutputReader.cxx:177
void ParseTallyBlock(istringstream &stream, const string &tallyName)
parses detector block in output file
Definition SerpentDetectorOutputReader.cxx:119
DetectorOutputReader()
constructor
Definition SerpentDetectorOutputReader.cxx:33
int GetNumberOfTallies() const
returns number of tallies read
Definition SerpentDetectorOutputReader.cxx:163
void Read(const string &fileName) override
Reads and parses single file.
Definition SerpentDetectorOutputReader.cxx:198
void Clear() override
cleaning data
Definition SerpentDetectorOutputReader.cxx:46
static const string PREFIX
Definition SerpentDetectorOutputReader.hxx:77
static const unsigned ENERGY_GRID_VALUE_COLUMN
Definition SerpentDetectorOutputReader.hxx:79
BinResult * ParseTallyLine(const string &line) const
parses detector line in detector block in output file
Definition SerpentDetectorOutputReader.cxx:52
TallyData * GetData()
returns all the data (for copy constructor)
Definition SerpentDetectorOutputReader.cxx:285
void ParseBlock(const string &block) override
parses block of data between semicolons
Definition SerpentDetectorOutputReader.cxx:82
TallyResult * GetTally(int index)
returns tally result at position "index"
Definition SerpentDetectorOutputReader.cxx:169
static const char ENERGY_GRID_PREFIX
Definition SerpentDetectorOutputReader.hxx:78
DetectorOutputReader * GetNewInstance() override
creates new reader (for multi-run)
Definition SerpentDetectorOutputReader.cxx:279
bool IsEnergyGrid(const string &name) const
answer if parsed block is energy grid (can be detector) data.
Definition SerpentDetectorOutputReader.cxx:139
string Print() override
Printing method used when multi-run data is merged into one file.
Definition SerpentDetectorOutputReader.cxx:262
Definition SerpentOutputReader.hxx:72
Definition SerpentTallyData.hxx:174
Definition SerpentTallyData.hxx:127
the namespace use to couple MURE and Serpent