#include <NumDetectors.hxx>
Public Member Functions | |
NumDetectors (const FitsFile &aFile) | |
Constructor takes a FitsFile object. | |
virtual | ~NumDetectors () |
Destructor. | |
void | setSource (IntMap &tbls, IntMap &cols, StringMap units) |
There are not input data columns. | |
void | setTarget (IntMap &cols, StringMap units) |
Target is data column corresponding to the number of detectors. | |
void | doit (TableData< DataType > &data, int row1, int row2) |
Fill up data column for the number of detectors. | |
void | doit2 (TableData< DataType > &rawData, TableData< DataType > &data, int row1, int row2) |
Private Attributes | |
int | colNo |
int | mNum |
Implements method to determine the number of detectors from a FITS file - assuming, of course that the agreed structure is used, ie FITS file has a primary HDU which contains just camera wide specifics, and one extension HDU per detector.
NumDetectors< DataType >::NumDetectors | ( | const FitsFile & | aFile | ) | [inline] |
Constructor takes a FitsFile object.
virtual NumDetectors< DataType >::~NumDetectors | ( | ) | [inline, virtual] |
Destructor.
void NumDetectors< DataType >::doit | ( | TableData< DataType > & | data, | |
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Fill up data column for the number of detectors.
Implements DataMethod< DataType >.
References TableData< DataType >::assign(), NumDetectors< DataType >::colNo, and NumDetectors< DataType >::mNum.
void NumDetectors< DataType >::doit2 | ( | TableData< DataType > & | rawData, | |
TableData< DataType > & | data, | |||
int | row1, | |||
int | row2 | |||
) | [inline, virtual] |
Implements DataMethod< DataType >.
void NumDetectors< DataType >::setSource | ( | IntMap & | tbls, | |
IntMap & | cols, | |||
StringMap | units | |||
) | [inline, virtual] |
There are not input data columns.
Implements DataMethod< DataType >.
void NumDetectors< DataType >::setTarget | ( | IntMap & | cols, | |
StringMap | units | |||
) | [inline, virtual] |
Target is data column corresponding to the number of detectors.
Implements DataMethod< DataType >.
References NumDetectors< DataType >::colNo.
int NumDetectors< DataType >::colNo [private] |
Referenced by NumDetectors< DataType >::doit(), and NumDetectors< DataType >::setTarget().
int NumDetectors< DataType >::mNum [private] |
Referenced by NumDetectors< DataType >::doit().