FACT++  1.0
bool StateMachineSmartFACT::SetError ( bool  b,
const string &  err 
)
inlineprivate

Definition at line 2262 of file smartfact.cc.

References StateMachineSmartFACT::EventHist::add(), Sun::fSunRise12, Sun::fSunSet12, Nova::GetHrzFromEqu(), Time::JD(), and FACT::PredictI().

2263  {
2264  if (!b)
2265  {
2266  fErrorList.erase(err);
2267  return 0;
2268  }
2269 
2270  const bool isnew = fErrorList.insert(err).second;
2271  if (isnew)
2272  fErrorHist.add(err);
2273 
2274  return isnew;
2275  }
void add(const string &s, const Time &t=Time())
Definition: smartfact.cc:469
set< string > fErrorList
Definition: smartfact.cc:589

+ Here is the call graph for this function: