34 class TFITSHDU :
public TNamed {
37 void _release_resources();
38 void _initialize_me();
60 enum EColumnTypes fType;
68 Double_t *fRealVector;
73 TString fBaseFilePath;
74 struct HDURecord *fRecords;
77 TString fExtensionName;
81 struct Column *fColumnsInfo;
91 Bool_t LoadHDU(TString& filepath_filter);
92 static void CleanFilePath(
const char *filepath_with_filter, TString &dst);
93 void PrintHDUMetadata(
const Option_t *opt=
"")
const;
94 void PrintFileMetadata(
const Option_t *opt=
"")
const;
95 void PrintColumnInfo(
const Option_t *)
const;
96 void PrintFullTable(
const Option_t *)
const;
99 TFITSHDU(
const char *filepath_with_filter);
100 TFITSHDU(
const char *filepath, Int_t extension_number);
101 TFITSHDU(
const char *filepath,
const char *extension_name);
105 Int_t GetRecordNumber()
const {
return fNRecords; }
106 struct HDURecord *GetRecord(
const char *keyword);
107 TString& GetKeywordValue(
const char *keyword);
108 void Print(
const Option_t *opt=
"")
const;
111 TH1 *ReadAsHistogram();
112 TImage *ReadAsImage(Int_t layer = 0, TImagePalette *pal = 0);
113 TMatrixD *ReadAsMatrix(Int_t layer = 0, Option_t *opt=
"");
114 TVectorD *GetArrayRow(UInt_t row);
115 TVectorD *GetArrayColumn(UInt_t col);
118 Int_t GetTabNColumns()
const {
return fNColumns; }
119 Int_t GetTabNRows()
const {
return fNRows; }
120 Int_t GetColumnNumber(
const char *colname);
121 const TString& GetColumnName(Int_t colnum);
122 TObjArray *GetTabStringColumn(Int_t colnum);
123 TObjArray *GetTabStringColumn(
const char *colname);
124 TVectorD *GetTabRealVectorColumn(Int_t colnum);
125 TVectorD *GetTabRealVectorColumn(
const char *colname);
126 TVectorD *GetTabRealVectorCell(Int_t rownum, Int_t colnum);
127 TVectorD *GetTabRealVectorCell(Int_t rownum,
const char *colname);
128 TObjArray *GetTabRealVectorCells(Int_t colnum);
129 TObjArray *GetTabRealVectorCells(
const char *colname);
132 void Draw(Option_t *opt=
"");
133 Bool_t Change(
const char *filter);
134 Bool_t Change(Int_t extension_number);