FACT++  1.0
int StateMachineSmartFACT::HandleRateControlThreshold ( const EventImp d)
inlineprivate

Definition at line 2126 of file smartfact.cc.

References EventImp::Get().

Referenced by StateMachineSmartFACT().

2127  {
2128  if (!CheckDataSize(d, "RateControl:Threshold", 18))
2129  return GetCurrentState();
2130 
2131  const uint16_t th = d.Get<uint16_t>();
2132 
2133  fRateControlThreshold.push_back(th);
2134  if (fRateControlThreshold.size()>300)
2135  fRateControlThreshold.pop_front();
2136 
2137  WriteHist(d, "hist-ratecontrol-threshold", fRateControlThreshold, 1000);
2138 
2139  return GetCurrentState();
2140  }
int GetCurrentState() const
return the current state of the machine
bool CheckDataSize(const EventImp &d, const char *name, size_t size, bool min=false)
Definition: smartfact.cc:669
void WriteHist(const EventImp &d, const string &fname, const T &t, double scale, double offset=0)
Definition: smartfact.cc:752
deque< float > fRateControlThreshold
Definition: smartfact.cc:583
T Get(size_t offset=0) const
Definition: EventImp.h:66

+ Here is the call graph for this function:

+ Here is the caller graph for this function: