My Project
|
Define a two dimensional detector with ElementContainer. More...
#include <TwoDimElementContainer.hh>
Public Member Functions | |
TwoDimElementContainer (vector< UInt4 > Dimension) | |
TwoDimElementContainer () | |
~TwoDimElementContainer () | |
TwoDimElementContainer (const TwoDimElementContainer &ob) | |
TwoDimElementContainer | operator= (const TwoDimElementContainer ob) |
HeaderBase | PutHeader () |
HeaderBase * | PutHeaderPointer () |
void | InputHeader (HeaderBase Header) |
ElementContainer * | operator() (UInt4 Xindex, UInt4 Yindex) |
ElementContainer | Put (UInt4 Xindex, UInt4 Yindex) |
vector< UInt4 > | PutDimension () |
ElementContainerMatrix | ConvertToMatrix () |
vector< ElementContainer > | PutPackedContainer () |
void | InputPackedContainer (vector< ElementContainer > obj) |
Define a two dimensional detector with ElementContainer.
A two dimensional area detector will be defined with this class. Because the dimension, the number of detector elements, is defined in the constructor, you should not use the constructor without its argument. If you construct this class with vector<UInt4> v = [3,4,5], this class will have 3+4+5 detector elements. When you want to access the data, use operator()( UInt4 Xindex, UInt4 Yindex ) or Put( UInt4 Xindex, UInt4 Yindex ). Put(2,3) will returns the fourth ElementContainer of third group.
TwoDimElementContainer::TwoDimElementContainer | ( | vector< UInt4 > | Dimension | ) |
Constructor.
Constructor. Probably, you does not need this constructor.
Destructor.
Override the copy constructor.
Convert to ElementContainerMatrix from the object of this class
void TwoDimElementContainer::InputHeader | ( | HeaderBase | Header | ) |
this method set a header object. If header object has already input in this class, the existing object will be deleted, and set with the argument.
void TwoDimElementContainer::InputPackedContainer | ( | vector< ElementContainer > | obj | ) |
This method is called from the NeXus and network distributing APIs.
ElementContainer * TwoDimElementContainer::operator() | ( | UInt4 | Xindex, |
UInt4 | Yindex | ||
) |
Return the pointer of ElementContainer. The meaning of the arguments was written in the manual of this class.
TwoDimElementContainer TwoDimElementContainer::operator= | ( | const TwoDimElementContainer | ob | ) |
Override the operator of "=".
ElementContainer TwoDimElementContainer::Put | ( | UInt4 | Xindex, |
UInt4 | Yindex | ||
) |
Return the object of ElementContainer. The meaning of the arguments was written in the manual of this class.
vector<UInt4> TwoDimElementContainer::PutDimension | ( | ) | [inline] |
Returns the dimension of the detector. The return value is the same as the argument of the constructor.
HeaderBase TwoDimElementContainer::PutHeader | ( | ) | [inline] |
Returns header object.
HeaderBase* TwoDimElementContainer::PutHeaderPointer | ( | ) | [inline] |
Returns the pointer of header object.
vector< ElementContainer > TwoDimElementContainer::PutPackedContainer | ( | ) |
This method is called from the NeXus and network distributing APIs.