PAASS
Software suite to Acquire and Analyze Data from Pixie16
|
#include <HisDrr.h>
Public Member Functions | |
HisDrr (fstream *drr, fstream *his) | |
HisDrr (const string &drr, const string &his) | |
HisDrr (const string &drr, const string &his, const string &input) | |
virtual | ~HisDrr () |
virtual void | getHistogram (vector< unsigned int > &rtn, int id) |
virtual DrrHisRecordExtended | getHistogramInfo (int id) const |
virtual void | getHisList (vector< int > &r) |
virtual void | zeroHistogram (int id) |
virtual void | setValue (const int id, unsigned pos, unsigned value) |
virtual void | setValue (const int id, unsigned pos, unsigned short value) |
virtual void | setValue (const int id, vector< unsigned > &value) |
virtual void | setValue (const int id, vector< unsigned short > &value) |
Private Member Functions | |
void | readBlock (drrBlock *block) |
void | loadDrr () |
Private Attributes | |
vector< DrrHisRecordExtended > | hisList |
fstream * | drrFile |
fstream * | hisFile |
Class for handling histogram files. Class opens drrFile and loads histogram information. On request can return specific histogram data points or histogram information. There are some cabalilites of creating a new file, putting data into specific histogram.
HisDrr::HisDrr | ( | fstream * | drr, |
fstream * | his | ||
) |
Constructor taking fstreams. User is responsible of opening files, and passing fstreams creating them on heap (new). Ones is passed the HisDrr takes the ownership to pointers. Dtor will close files and delete pointers.
Definition at line 20 of file HisDrr.cpp.
HisDrr::HisDrr | ( | const string & | drr, |
const string & | his | ||
) |
Constructor taking names and opening fstreams.
Definition at line 50 of file HisDrr.cpp.
HisDrr::HisDrr | ( | const string & | drr, |
const string & | his, | ||
const string & | input | ||
) |
Constructor creating and opening new his and drr using definition from input file.
Definition at line 80 of file HisDrr.cpp.
|
inlinevirtual |
|
virtual |
Returns histograms id's list.
Definition at line 421 of file HisDrr.cpp.
|
virtual |
Returns specified histogram data.
Definition at line 347 of file HisDrr.cpp.
|
virtual |
Returns drr data on specified histogram.
Definition at line 403 of file HisDrr.cpp.
|
private |
Function loading .drr file and filling in spectrum vector.
Definition at line 290 of file HisDrr.cpp.
|
private |
Reads block of data from drr file.
Definition at line 279 of file HisDrr.cpp.
|
virtual |
Replaces in histogram 'id' point 'i' by 'value'. 4-bytes long word version.
Definition at line 464 of file HisDrr.cpp.
|
virtual |
Replaces in histogram 'id' point 'i' by 'value'. The 2-bytes long word version.
Definition at line 508 of file HisDrr.cpp.
|
virtual |
Replaces histogram id values by ones given in a vector. The 4-bytes long word version.
Definition at line 551 of file HisDrr.cpp.
|
virtual |
Replaces histogram id values by ones given in a vector. The 2-bytes long word version.
Definition at line 605 of file HisDrr.cpp.
|
virtual |
Zeroes data for a given histogram.
Definition at line 427 of file HisDrr.cpp.
|
private |
|
private |
|
private |