TFITSHDU Class Reference

#include <TFITS.h>

Inheritance diagram for TFITSHDU:

TNamed TObject TObject List of all members.

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
HDURecordGetRecord (const char *keyword)
TStringGetKeywordValue (const char *keyword)
void Print (const Option_t *opt="") const
TH1ReadAsHistogram ()
TImageReadAsImage (Int_t layer=0, TImagePalette *pal=0)
TMatrixDReadAsMatrix (Int_t layer=0, Option_t *opt="")
TVectorDGetArrayRow (UInt_t row)
TVectorDGetArrayColumn (UInt_t col)
Int_t GetTabNColumns () const
Int_t GetTabNRows () const
Int_t GetColumnNumber (const char *colname)
TObjArrayGetTabStringColumn (Int_t colnum)
TObjArrayGetTabStringColumn (const char *colname)
TVectorDGetTabRealVectorColumn (Int_t colnum)
TVectorDGetTabRealVectorColumn (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
HDURecordfRecords
Int_t fNRecords
enum EHDUTypes fType
TString fExtensionName
Int_t fNumber
TArrayIfSizes
TArrayDfPixels
TStringfColumnNames
enum EColumnTypes *fColumnTypes
struct Column
fColumnsInfo
Int_t fNColumns
Int_t fNRows
CellfCells

Private Member Functions

void _release_resources ()
void _initialize_me ()

Classes

union  Cell
struct  Column
struct  HDURecord

Detailed Description

Definition at line 40 of file TFITS.h.


Member Enumeration Documentation

enum TFITSHDU::EHDUTypes

Definition at line 47 of file TFITS.h.

enum TFITSHDU::EColumnTypes

Definition at line 52 of file TFITS.h.


Constructor & Destructor Documentation

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 (  ) 

Definition at line 164 of file TFITS.cxx.

References _release_resources().


Member Function Documentation

void TFITSHDU::_release_resources (  )  [private]

Definition at line 172 of file TFITS.cxx.

References fCells, fColumnsInfo, fNColumns, fNRows, fPixels, fRecords, fSizes, fType, i, kImageHDU, kString, and row.

Referenced by Change(), TFITSHDU(), and ~TFITSHDU().

void TFITSHDU::_initialize_me (  )  [private]

Definition at line 205 of file TFITS.cxx.

References fCells, fColumnsInfo, fNColumns, fNRows, fPixels, fRecords, and fSizes.

Referenced by Change(), and TFITSHDU().

Bool_t TFITSHDU::LoadHDU ( TString filepath_filter  )  [protected]

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]

Definition at line 109 of file TFITS.h.

References fNRecords.

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  ) 

Definition at line 498 of file TFITS.cxx.

References TFITSHDU::HDURecord::fValue, and GetRecord().

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().

TMatrixD * TFITSHDU::ReadAsMatrix ( Int_t  layer = 0,
Option_t opt = "" 
)

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.

TVectorD * TFITSHDU::GetArrayRow ( UInt_t  row  ) 

Definition at line 1001 of file TFITS.cxx.

References fPixels, fSizes, fType, TArrayD::GetAt(), TArrayI::GetAt(), TArray::GetSize(), H, i, kImageHDU, and TObject::Warning().

TVectorD * TFITSHDU::GetArrayColumn ( UInt_t  col  ) 

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]

Definition at line 122 of file TFITS.h.

References fNColumns.

Int_t TFITSHDU::GetTabNRows (  )  const [inline]

Definition at line 123 of file TFITS.h.

References fNRows.

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 ( Int_t  colnum  ) 

Definition at line 1095 of file TFITS.cxx.

References fCells, fColumnsInfo, fNColumns, fNRows, fType, kString, kTableHDU, row, and TObject::Warning().

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().

TVectorD * TFITSHDU::GetTabRealVectorColumn ( Int_t  colnum  ) 

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().

Bool_t TFITSHDU::Change ( Int_t  extension_number  ) 

Definition at line 1262 of file TFITS.cxx.

References Change(), TString::Data(), and TString::Form().


Member Data Documentation

TString TFITSHDU::fFilePath [protected]

Definition at line 74 of file TFITS.h.

Referenced by Change(), and TFITSHDU().

TString TFITSHDU::fBaseFilePath [protected]

Definition at line 75 of file TFITS.h.

Referenced by Change(), PrintFileMetadata(), and TFITSHDU().

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]

Definition at line 79 of file TFITS.h.

Referenced by LoadHDU().

Int_t TFITSHDU::fNumber [protected]

Definition at line 80 of file TFITS.h.

Referenced by LoadHDU().

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]

Definition at line 83 of file TFITS.h.

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().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:37:52 2011 for ROOT_528-00b_version by  doxygen 1.5.1