Skip to content
Snippets Groups Projects
Commit c66e66fc authored by clantz's avatar clantz
Browse files

Reimplemented GetElement for RPD. Added private members and set methods

parent d8c6cc9f
No related branches found
No related tags found
No related merge requests found
...@@ -23,16 +23,22 @@ class RPD : public Detector{ ...@@ -23,16 +23,22 @@ class RPD : public Detector{
Channel* GetElement(int row, int column); Channel* GetElement(int row, int column);
void SetnRows(int rows){nRows=rows; nElements = nRows * nColumns; }; void SetnRows(int rows){nRows=rows; nElements = nRows * nColumns; ResizeSortedElements(); };
void SetnCols(int cols){nColumns=cols; nElements = nRows * nColumns; }; void SetnCols(int cols){nColumns=cols; nElements = nRows * nColumns; ResizeSortedElements(); };
void ResizeSortedElements();
virtual void PrintMap( ); virtual void PrintMap( );
private: private:
/** Number of rows **/
int nRows = 4; int nRows = 4;
/** Number of columns **/
int nColumns = 4; int nColumns = 4;
/** Total elements **/
int nElements = nRows * nColumns; int nElements = nRows * nColumns;
/** 2D vector of channels sorted in a [row][column] format **/
std::vector< std::vector< Channel* > > m_SortedElements;
}; };
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment