#include <TFITS.h>
Inheritance diagram for TFITSHDU:
Public Types | |
enum | EHDUTypes |
enum | EColumnTypes |
Public Member Functions | |
TFITSHDU (const char *filepath_with_filter) | |
TFITSHDU (const char *filepath, Int_t extension_number) | |
TFITSHDU (const char *filepath, const char *extension_name) | |
~TFITSHDU () | |
Int_t | GetRecordNumber () const |
HDURecord * | GetRecord (const char *keyword) |
TString & | GetKeywordValue (const char *keyword) |
void | Print (const Option_t *opt="") const |
TH1 * | ReadAsHistogram () |
TImage * | ReadAsImage (Int_t layer=0, TImagePalette *pal=0) |
TMatrixD * | ReadAsMatrix (Int_t layer=0, Option_t *opt="") |
TVectorD * | GetArrayRow (UInt_t row) |
TVectorD * | GetArrayColumn (UInt_t col) |
Int_t | GetTabNColumns () const |
Int_t | GetTabNRows () const |
Int_t | GetColumnNumber (const char *colname) |
TObjArray * | GetTabStringColumn (Int_t colnum) |
TObjArray * | GetTabStringColumn (const char *colname) |
TVectorD * | GetTabRealVectorColumn (Int_t colnum) |
TVectorD * | GetTabRealVectorColumn (const char *colname) |
void | Draw (Option_t *opt="") |
Bool_t | Change (const char *filter) |
Bool_t | Change (Int_t extension_number) |
Protected Member Functions | |
Bool_t | LoadHDU (TString &filepath_filter) |
void | PrintHDUMetadata (const Option_t *opt="") const |
void | PrintFileMetadata (const Option_t *opt="") const |
void | PrintColumnInfo (const Option_t *) const |
void | PrintFullTable (const Option_t *) const |
Static Protected Member Functions | |
static void | CleanFilePath (const char *filepath_with_filter, TString &dst) |
Protected Attributes | |
TString | fFilePath |
TString | fBaseFilePath |
HDURecord * | fRecords |
Int_t | fNRecords |
enum EHDUTypes | fType |
TString | fExtensionName |
Int_t | fNumber |
TArrayI * | fSizes |
TArrayD * | fPixels |
TString * | fColumnNames |
enum EColumnTypes *fColumnTypes struct Column * | fColumnsInfo |
Int_t | fNColumns |
Int_t | fNRows |
Cell * | fCells |
Private Member Functions | |
void | _release_resources () |
void | _initialize_me () |
Classes | |
union | Cell |
struct | Column |
struct | HDURecord |
Definition at line 40 of file TFITS.h.
enum TFITSHDU::EHDUTypes |
TFITSHDU::TFITSHDU | ( | const char * | filepath_with_filter | ) |
Definition at line 104 of file TFITS.cxx.
References _initialize_me(), _release_resources(), CleanFilePath(), fBaseFilePath, fFilePath, kFALSE, and LoadHDU().
TFITSHDU::TFITSHDU | ( | const char * | filepath, | |
Int_t | extension_number | |||
) |
Definition at line 129 of file TFITS.cxx.
References _initialize_me(), _release_resources(), CleanFilePath(), TString::Data(), fBaseFilePath, fFilePath, TString::Form(), kFALSE, and LoadHDU().
TFITSHDU::TFITSHDU | ( | const char * | filepath, | |
const char * | extension_name | |||
) |
Definition at line 146 of file TFITS.cxx.
References _initialize_me(), _release_resources(), CleanFilePath(), TString::Data(), fBaseFilePath, fFilePath, TString::Form(), kFALSE, and LoadHDU().
TFITSHDU::~TFITSHDU | ( | ) |
void TFITSHDU::_release_resources | ( | ) | [private] |
void TFITSHDU::_initialize_me | ( | ) | [private] |
Definition at line 218 of file TFITS.cxx.
References array, comment, TString::Data(), ERR, fCells, fColumnsInfo, TFITSHDU::HDURecord::fComment, fExtensionName, TFITSHDU::HDURecord::fKeyword, TFITSHDU::Column::fName, fNColumns, fNRecords, fNRows, fNumber, fp, fPixels, fRecords, fSizes, fType, fValue, TFITSHDU::HDURecord::fValue, TArrayI::GetAt(), i, kFALSE, kImageHDU, kRealNumber, kString, kTableHDU, kTRUE, row, TArrayI::SetAt(), strlcpy(), TObject::Warning(), and width.
Referenced by Change(), and TFITSHDU().
static void TFITSHDU::CleanFilePath | ( | const char * | filepath_with_filter, | |
TString & | dst | |||
) | [static, protected] |
Referenced by TFITSHDU().
void TFITSHDU::PrintHDUMetadata | ( | const Option_t * | opt = "" |
) | const [protected] |
Definition at line 511 of file TFITS.cxx.
References TString::Data(), TFITSHDU::HDURecord::fComment, TFITSHDU::HDURecord::fKeyword, fNRecords, fRecords, TFITSHDU::HDURecord::fValue, i, and TString::Length().
Referenced by Print().
void TFITSHDU::PrintFileMetadata | ( | const Option_t * | opt = "" |
) | const [protected] |
Definition at line 525 of file TFITS.cxx.
References comment, TString::Data(), ERR, fBaseFilePath, TFITSHDU::HDURecord::fComment, TFITSHDU::HDURecord::fKeyword, fp, TFITSHDU::HDURecord::fValue, i, strlcpy(), verbose, and TObject::Warning().
Referenced by Print().
void TFITSHDU::PrintColumnInfo | ( | const Option_t * | ) | const [protected] |
Definition at line 626 of file TFITS.cxx.
References TString::Data(), fColumnsInfo, TNamed::fName, fNColumns, fType, TFITSHDU::Column::fType, i, kRealNumber, kTableHDU, and TObject::Warning().
Referenced by Print().
void TFITSHDU::PrintFullTable | ( | const Option_t * | ) | const [protected] |
Definition at line 641 of file TFITS.cxx.
References TString::Data(), fCells, fColumnsInfo, TNamed::fName, fNColumns, fNRows, fType, kString, kTableHDU, row, and TObject::Warning().
Referenced by Print().
Int_t TFITSHDU::GetRecordNumber | ( | ) | const [inline] |
struct TFITSHDU::HDURecord * TFITSHDU::GetRecord | ( | const char * | keyword | ) |
Definition at line 485 of file TFITS.cxx.
References TFITSHDU::HDURecord::fKeyword, fNRecords, fRecords, and i.
Referenced by GetKeywordValue().
TString & TFITSHDU::GetKeywordValue | ( | const char * | keyword | ) |
void TFITSHDU::Print | ( | const Option_t * | opt = "" |
) | const |
Definition at line 685 of file TFITS.cxx.
References PrintColumnInfo(), PrintFileMetadata(), PrintFullTable(), and PrintHDUMetadata().
TH1 * TFITSHDU::ReadAsHistogram | ( | ) |
Definition at line 916 of file TFITS.cxx.
References fPixels, fSizes, fType, TArrayD::GetAt(), TArrayI::GetAt(), TArray::GetSize(), h, kImageHDU, nentries, result(), TObject::Warning(), x, and y.
TImage * TFITSHDU::ReadAsImage | ( | Int_t | layer = 0 , |
|
TImagePalette * | pal = 0 | |||
) |
Definition at line 711 of file TFITS.cxx.
References TImage::Create(), TImagePalette::fColorAlpha, TImagePalette::fColorBlue, TImagePalette::fColorGreen, TImagePalette::fColorRed, fPixels, TImagePalette::fPoints, fSizes, fType, TArrayD::GetAt(), TArrayI::GetAt(), TArray::GetSize(), height, i, kImageHDU, TArrayD::SetAt(), TImage::SetImage(), TObject::Warning(), and width.
Referenced by Draw().
Definition at line 829 of file TFITS.cxx.
References fPixels, fSizes, fType, TArrayD::GetAt(), TArrayI::GetAt(), TArray::GetSize(), height, i, kImageHDU, TMatrixT< Element >::Use(), TObject::Warning(), and width.
Definition at line 1001 of file TFITS.cxx.
References fPixels, fSizes, fType, TArrayD::GetAt(), TArrayI::GetAt(), TArray::GetSize(), H, i, kImageHDU, and TObject::Warning().
Definition at line 1041 of file TFITS.cxx.
References fPixels, fSizes, fType, TArrayD::GetAt(), TArrayI::GetAt(), TArray::GetSize(), H, i, kImageHDU, and TObject::Warning().
Int_t TFITSHDU::GetTabNColumns | ( | ) | const [inline] |
Int_t TFITSHDU::GetTabNRows | ( | ) | const [inline] |
Int_t TFITSHDU::GetColumnNumber | ( | const char * | colname | ) |
Definition at line 1081 of file TFITS.cxx.
References fColumnsInfo, TNamed::fName, and fNColumns.
Referenced by GetTabRealVectorColumn(), and GetTabStringColumn().
TObjArray * TFITSHDU::GetTabStringColumn | ( | const char * | colname | ) |
Definition at line 1125 of file TFITS.cxx.
References fCells, fColumnsInfo, fNRows, fType, GetColumnNumber(), kString, kTableHDU, row, and TObject::Warning().
Definition at line 1158 of file TFITS.cxx.
References fCells, fColumnsInfo, fNColumns, fNRows, fType, kRealNumber, kTableHDU, row, and TObject::Warning().
TVectorD * TFITSHDU::GetTabRealVectorColumn | ( | const char * | colname | ) |
Definition at line 1192 of file TFITS.cxx.
References fCells, fColumnsInfo, fNRows, fType, GetColumnNumber(), kRealNumber, kTableHDU, row, and TObject::Warning().
void TFITSHDU::Draw | ( | Option_t * | opt = "" |
) | [virtual] |
Reimplemented from TObject.
Definition at line 805 of file TFITS.cxx.
References TObject::Draw(), fSizes, fType, TArrayI::GetAt(), height, kImageHDU, ReadAsImage(), TObject::Warning(), and width.
Bool_t TFITSHDU::Change | ( | const char * | filter | ) |
Definition at line 1228 of file TFITS.cxx.
References _initialize_me(), _release_resources(), TString::Data(), fBaseFilePath, fFilePath, TString::Form(), kFALSE, kTRUE, LoadHDU(), and TObject::Warning().
Referenced by Change().
Definition at line 1262 of file TFITS.cxx.
References Change(), TString::Data(), and TString::Form().
TString TFITSHDU::fFilePath [protected] |
TString TFITSHDU::fBaseFilePath [protected] |
struct HDURecord* TFITSHDU::fRecords [protected] |
Definition at line 76 of file TFITS.h.
Referenced by _initialize_me(), _release_resources(), GetRecord(), LoadHDU(), and PrintHDUMetadata().
Int_t TFITSHDU::fNRecords [protected] |
Definition at line 77 of file TFITS.h.
Referenced by GetRecord(), GetRecordNumber(), LoadHDU(), and PrintHDUMetadata().
enum EHDUTypes TFITSHDU::fType [protected] |
Definition at line 78 of file TFITS.h.
Referenced by _release_resources(), Draw(), GetArrayColumn(), GetArrayRow(), GetTabRealVectorColumn(), GetTabStringColumn(), LoadHDU(), PrintColumnInfo(), PrintFullTable(), ReadAsHistogram(), ReadAsImage(), and ReadAsMatrix().
TString TFITSHDU::fExtensionName [protected] |
Int_t TFITSHDU::fNumber [protected] |
TArrayI* TFITSHDU::fSizes [protected] |
Definition at line 81 of file TFITS.h.
Referenced by _initialize_me(), _release_resources(), Draw(), GetArrayColumn(), GetArrayRow(), LoadHDU(), ReadAsHistogram(), ReadAsImage(), and ReadAsMatrix().
TArrayD* TFITSHDU::fPixels [protected] |
Definition at line 82 of file TFITS.h.
Referenced by _initialize_me(), _release_resources(), GetArrayColumn(), GetArrayRow(), LoadHDU(), ReadAsHistogram(), ReadAsImage(), and ReadAsMatrix().
TString* TFITSHDU::fColumnNames [protected] |
enum EColumnTypes* fColumnTypes struct Column* TFITSHDU::fColumnsInfo [protected] |
Definition at line 85 of file TFITS.h.
Referenced by _initialize_me(), _release_resources(), GetColumnNumber(), GetTabRealVectorColumn(), GetTabStringColumn(), LoadHDU(), PrintColumnInfo(), and PrintFullTable().
Int_t TFITSHDU::fNColumns [protected] |
Definition at line 86 of file TFITS.h.
Referenced by _initialize_me(), _release_resources(), GetColumnNumber(), GetTabNColumns(), GetTabRealVectorColumn(), GetTabStringColumn(), LoadHDU(), PrintColumnInfo(), and PrintFullTable().
Int_t TFITSHDU::fNRows [protected] |
Definition at line 87 of file TFITS.h.
Referenced by _initialize_me(), _release_resources(), GetTabNRows(), GetTabRealVectorColumn(), GetTabStringColumn(), LoadHDU(), and PrintFullTable().
union Cell* TFITSHDU::fCells [protected] |
Definition at line 88 of file TFITS.h.
Referenced by _initialize_me(), _release_resources(), GetTabRealVectorColumn(), GetTabStringColumn(), LoadHDU(), and PrintFullTable().