FACT++  1.0
void RawDataViewer::openCalibFile ( std::string &  file)

Definition at line 771 of file RawEventsViewer.cc.

References DrsCalibration::Clear(), fDrsCalib, newFileLoaded(), and DrsCalibration::ReadFitsImp().

772 {
773  //calibrationLoaded = false;
774  string msg;
775  try
776  {
777  msg = fDrsCalib.ReadFitsImp(file);
778  if (msg.empty())
779  {
780  emit newFileLoaded();
781  updateGL();
782  return;
783  }
784  }
785  catch (const runtime_error &e)
786  {
787  msg = string("Something went wrong while loading Drs Calib: ") + e.what() + string(".. Aborting file loading");
788  }
789  cerr << msg << endl;
790  fDrsCalib.Clear();
791 }
void Clear()
Definition: DrsCalib.h:1366
std::string ReadFitsImp(const std::string &str, std::vector< float > &vec)
Definition: DrsCalib.h:1390
DrsCalibration fDrsCalib
void newFileLoaded()

+ Here is the call graph for this function: