FACT++  1.0
void EventBuilderWrapper::SetOutputFormat ( FAD::FileFormat_t  f)
inline

Definition at line 466 of file EventBuilderWrapper.h.

References kCalib, kCfitsio, kDebug, kFits, kNone, kRaw, kZFits, MessageImp::Message(), DataCalib::Restart(), DataCalib::Update(), and DimDescribedService::Update().

467  {
468  const bool changed = f!=fFileFormat;
469 
470  fFileFormat = f;
471  fDimFileFormat.Update(uint16_t(f));
472 
473  string msg = "File format set to: ";
474  switch (f)
475  {
476  case FAD::kNone: msg += "kNone."; break;
477  case FAD::kDebug: msg += "kDebug."; break;
478  case FAD::kFits: msg += "kFits."; break;
479  case FAD::kZFits: msg += "kZFits."; break;
480  case FAD::kCfitsio: msg += "kCfitsio"; break;
481  case FAD::kRaw: msg += "kRaw"; break;
482  case FAD::kCalib:
485  fMsg.Message("Resetted DRS calibration.");
486  return;
487  }
488 
489  if (changed)
490  fMsg.Message(msg);
491  }
DimDescribedService fDimFileFormat
static void Restart()
Definition: DataCalib.cc:15
FAD::FileFormat_t fFileFormat
DimDescribedService fDimDrsRuns
DimDescribedService fDimDrsCalibration
int Message(const std::string &str)
Definition: MessageImp.h:46
static void Update(DimDescribedService &dim, DimDescribedService &runs)
Definition: DataCalib.cc:56

+ Here is the call graph for this function: