FACT++  1.0
bool Fits::WriteHeaderKeys ( )
private

Write the FITS header keys.

This writes the standard header.

Definition at line 330 of file Fits.cc.

References fRunNumber.

331 {
332  if (!fFile->fTable)
333  return false;
334 
335  if (!fFile->WriteDefaultKeys("datalogger"))
336  return false;
337 
338  if (!fFile->WriteKeyNT("TSTARTI", 0, "Time when first event received (integral part)") ||
339  !fFile->WriteKeyNT("TSTARTF", 0, "Time when first event received (fractional part)") ||
340  !fFile->WriteKeyNT("TSTOPI", 0, "Time when last event received (integral part)") ||
341  !fFile->WriteKeyNT("TSTOPF", 0, "Time when last event received (fractional part)") ||
342  !fFile->WriteKeyNT("DATE-OBS", 0, "Time when first event received") ||
343  !fFile->WriteKeyNT("DATE-END", 0, "Time when last event received") ||
344  !fFile->WriteKeyNT("RUNID", fRunNumber, "Run number. 0 means not run file"))
345  return false;
346 
347  return true;
348 }
CCfits::Table * fTable
The pointer to the CCfits FITS file.
Definition: FitsFile.h:19
bool WriteDefaultKeys(const string &prgname, float version=1.0)
Definition: FitsFile.cc:21
bool WriteKeyNT(const string &name, const T &value, const string &comment)
Definition: FitsFile.h:62
FitsFile * fFile
Definition: Fits.h:14
int32_t fRunNumber
current run number being logged
Definition: Fits.h:53