My Project
|
Data container for a set of ElementContainer-s and HeaderBase. More...
#include <ElementContainerArray.hh>
Public Member Functions | |
ElementContainerArray () | |
Constructor. | |
ElementContainerArray (HeaderBase pheader) | |
Constructor. | |
ElementContainerArray (const NeutronVector< ElementContainer, HeaderBase > &ob) | |
ElementContainerArray (const ElementContainerArray &ob) | |
vector< Double > * | operator() (UInt4 index, string key) |
Returns the pointer of vector<Double> named as "key". | |
vector< Double > * | operator() (UInt4 index, UInt4 C_index) |
Returns the pointer of vector<Double> whose index number is "C_index". | |
vector< UInt4 > | SaveToBinFile (string key, string FileName) |
Histogram data stored in this class are saved as a file in binary data format. | |
PyObject * | SaveToBinFilePy (string key, string FileName) |
This method has the same functionality as "SaveToBinFile(string,string)". | |
void | ReadBinFile (string FileName, vector< UInt4 > dimensions, string key) |
Histogram data stored by SaveToBinFile(string,string) is read with this method, and rebuild ElementContainerArray. | |
void | ReadBinFile (string FileName, PyObject *dimensions, string key) |
This method has the same functionality as "ReadBinFile(string,PyObject*,string)". | |
void | AppendErr (string Counts, string Error, Double ErrorValue=0.0) |
This method appends a vector<Double> into each object of ElementContainer. | |
ElementContainerArray | Mul (Double d) |
ElementContainerArray & | MulMySelf (Double d) |
ElementContainerArray | Mul (Double d, Double e) |
ElementContainerArray & | MulMySelf (Double d, Double e) |
ElementContainerArray | Mul (pair< Double, Double > &p) |
ElementContainerArray & | MulMySelf (pair< Double, Double > &p) |
ElementContainerArray | Plus (Double d) |
ElementContainerArray & | PlusMySelf (Double d) |
ElementContainerArray | Plus (Double d, Double e) |
ElementContainerArray & | PlusMySelf (Double d, Double e) |
ElementContainerArray | Plus (pair< Double, Double > &p) |
ElementContainerArray & | PlusMySelf (pair< Double, Double > &p) |
Friends | |
class | ElementContainerMatrix |
to access to v from ElementContainerMatrix::AllSum() |
Data container for a set of ElementContainer-s and HeaderBase.
This class is inherited from the template class, NeutronVector<ElementContainer,HeaderBase>. This class is a Data-container class for storeing a set of ElementContainer-s and HeaderBase. See the manuals of the template class of NeutronVector<T,H>.
Constructor.
This method only calls the constructor of the base class.
Constructor.
This method only calls the constructor of the base class.
void ElementContainerArray::AppendErr | ( | string | Counts, |
string | Error, | ||
Double | ErrorValue = 0.0 |
||
) |
This method appends a vector<Double> into each object of ElementContainer.
The first argument is the key-name of neutron-counts, and the second is the key-name of its error-value created and appended by this method. The third argument is passed to the constructor of "ElementContainerAppendError", please see the manual of it.
vector< Double > * ElementContainerArray::operator() | ( | UInt4 | index, |
string | key | ||
) |
Returns the pointer of vector<Double> named as "key".
The vector is extracted from the ElementContainer assined as "index".
vector< Double > * ElementContainerArray::operator() | ( | UInt4 | index, |
UInt4 | C_index | ||
) |
Returns the pointer of vector<Double> whose index number is "C_index".
The vector is extracted from the ElementContainer assined as "index".
void ElementContainerArray::ReadBinFile | ( | string | FileName, |
vector< UInt4 > | dimensions, | ||
string | key | ||
) |
Histogram data stored by SaveToBinFile(string,string) is read with this method, and rebuild ElementContainerArray.
This method should be called just after constructing this class method. The binary data will be stored in each ElementContainer with "key".
void ElementContainerArray::ReadBinFile | ( | string | FileName, |
PyObject * | dimensions, | ||
string | key | ||
) |
This method has the same functionality as "ReadBinFile(string,PyObject*,string)".
The second argument should be the return value of "SaveToBinFilePy(string,string)".
vector< UInt4 > ElementContainerArray::SaveToBinFile | ( | string | key, |
string | FileName | ||
) |
Histogram data stored in this class are saved as a file in binary data format.
Histogram data are extracted from each ElementContainer with "key", and the dimension of ElementContainerArray is written in the type of vector<UInt4> and returned by this method. The return value will be used as the second argument of ReadBinFile(string,vector<UInt4>,string).
PyObject * ElementContainerArray::SaveToBinFilePy | ( | string | key, |
string | FileName | ||
) |
This method has the same functionality as "SaveToBinFile(string,string)".
The return value can be recognized by python-environment directory.