FACT++  1.0
int StateMachineFeedback::EvalOptions ( Configuration conf)
inline

Definition at line 1327 of file feedback.cc.

References Error(), Configuration::Get(), Configuration::Has(), and PixelMap::Read().

1328  {
1329  fIsVerbose = !conf.Get<bool>("quiet");
1330 
1331  if (!fMap.Read(conf.Get<string>("pixel-map-file")))
1332  {
1333  Error("Reading mapping table from "+conf.Get<string>("pixel-map-file")+" failed.");
1334  return 1;
1335  }
1336 
1337  fCurrentRequestInterval = conf.Get<uint16_t>("current-request-interval");
1338  fNumCalibIgnore = conf.Get<uint16_t>("num-calib-ignore");
1339  fNumCalibRequests = conf.Get<uint16_t>("num-calib-average");
1340  fTempCoefficient = conf.Get<double>("temp-coefficient");
1341 
1342  if (conf.Has("offset-file"))
1343  LoadOffsets(conf.Get<string>("offset-file"));
1344 
1345  return -1;
1346  }
bool LoadOffsets(const string &file)
Definition: feedback.cc:1063
T Get(const std::string &var)
uint16_t fNumCalibIgnore
Definition: feedback.cc:80
uint16_t fCurrentRequestInterval
Definition: feedback.cc:79
bool Has(const std::string &var)
uint16_t fNumCalibRequests
Definition: feedback.cc:81
int Error(const std::string &str)
Definition: MessageImp.h:49
double fTempCoefficient
Definition: feedback.cc:72
bool Read(const std::string &fname)
Definition: PixelMap.h:56

+ Here is the call graph for this function: