22 TFITSHDU hdu(dir +
"/fitsio/sample1.fits");
31 printf(
"Exposure time = %s\n", hdu.GetKeywordValue(
"EXPTIME").Data());
36 std::unique_ptr<TMatrixD> mat(hdu.ReadAsMatrix(0));
44 TH1 * hist = (
TH1 *)hdu.ReadAsHistogram();
46 auto c =
new TCanvas(
"c1",
"FITS tutorial #1", 1400, 800);
FITS file interface class.
TH1 is the base class of all histogram classes in ROOT.
void Draw(Option_t *option="") override
Draw this histogram with options.
An abstract interface to image processing library.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.