Definition at line 563 of file RawEventsViewer.cc.
References _softwareOrdering, adcCount, boardTime, builderVersion, camera, izstream::close(), creationDate, daq, eventData, eventNum, eventStep, firstDataTime, fits::Get(), fits::GetColumns(), fits::GetFloat(), fits::GetInt(), fits::GetStr(), fits::HasColumn(), fits::HasKey(), inputFile, fits::IsCompressedFITS(), lastDataTime, nbBad, nBoards, nbOk, nbRej, newFileLoaded(), nightInt, nPixels, nRoi, nRoiTM, nRows, nTM, offSetRoi, pcTime, plusEvent(), rawEventData, revision, rowNum, runNumber, runType, selectedPixel, fits::SetPtrAddress(), signalCurrentPixel(), softTrig, startPix, startTM, timeSystem, triggerType, and waveLetArray.
573 catch (std::runtime_error e)
575 cout <<
"Something went wrong while loading fits. Aborting: " << e.what() << endl;
584 vector<string> entriesToCheck;
586 entriesToCheck.push_back(
"ZNAXIS2");
588 entriesToCheck.push_back(
"NAXIS2");
589 entriesToCheck.push_back(
"NROI");
590 entriesToCheck.push_back(
"REVISION");
591 entriesToCheck.push_back(
"RUNID");
592 entriesToCheck.push_back(
"NBOARD");
593 entriesToCheck.push_back(
"NPIX");
594 entriesToCheck.push_back(
"NROITM");
595 entriesToCheck.push_back(
"TIMESYS");
596 entriesToCheck.push_back(
"DATE");
597 entriesToCheck.push_back(
"NIGHT");
598 entriesToCheck.push_back(
"CAMERA");
599 entriesToCheck.push_back(
"DAQ");
600 entriesToCheck.push_back(
"TSTART");
601 entriesToCheck.push_back(
"TSTOP");
604 for (vector<string>::const_iterator it=entriesToCheck.begin(); it != entriesToCheck.end(); it++)
608 cout <<
"Warning: header keyword " << *it <<
" missing." << endl;
611 catch (std::runtime_error e)
613 cout << e.what() << endl;
649 cout <<
"could not read num pixels from fits header. Assuming 1440 (FACT)." << endl;
655 if (cols.find(
"Data") == cols.end())
657 cout <<
"ERROR: Column \"Data\" could not be found. abortin load." << endl;
660 const fits::Table::Columns::const_iterator col = cols.find(
"Data");
661 if (col->second.type !=
'I')
663 cout <<
"ERROR: Data Column has type " << col->second.type <<
" while viewer expects I" << endl;
666 if (col->second.num %
nPixels != 0)
668 cout <<
"ERROR: Num pixels (" <<
nPixels <<
") does not match Data length (" << col->second.num <<
"). Aborting" << endl;
672 cout <<
"Estimate num samples per pixels to be " <<
nRoi;
702 cout <<
"Warning: could not find column \"EventNum\"" << endl;
706 cout <<
"Warning: could not find column \"TriggerType\"" << endl;
710 cout <<
"Warning: could not find column \"SoftTrig\"" << endl;
714 cout <<
"Warning: could not find column \"BoardTime\"" << endl;
718 cout <<
"Warning: could not find column \"StartCellData\"" << endl;
722 cout <<
"Warning: could not find column \"StartCellTimeMarker\"" << endl;
726 cout <<
"Warning: could not find column \"TimeMarker\"" << endl;
728 catch (
const runtime_error &e)
730 cout << e.what() << endl;
731 cout <<
"Loading aborted." << endl;
744 catch (
const runtime_error&)
751 cout <<
"Warning: could not find column \"UnixTimeUTC\" nor \"PCTime\"" << endl;
754 catch (
const runtime_error&)
bool HasKey(const std::string &key) const
std::string GetStr(const std::string &key) const
void signalCurrentPixel(int pixel)
void * SetPtrAddress(const std::string &name)
bool IsCompressedFITS() const
std::map< std::string, Column > Columns
uint32_t boardTime[NBOARDS]
double GetFloat(const std::string &key) const
int64_t GetInt(const std::string &key) const
bool HasColumn(const std::string &col) const
const Table::Columns & GetColumns() const
T Get(const std::string &key) const