FACT++  1.0
void StateMachineSmartFACT::WriteWeather ( const EventImp d,
const string &  name,
int  i,
float  min,
float  max 
)
inlineprivate

Definition at line 972 of file smartfact.cc.

References StateMachineSmartFACT::Statistics::avg, EventImp::GetJavaDate(), i, HTML::kWhite, StateMachineSmartFACT::Statistics::max, and StateMachineSmartFACT::Statistics::min.

973  {
974  const Statistics stat(fMagicWeatherHist[i]);
975 
976  ostringstream out;
977  out << setprecision(3);
978  out << d.GetJavaDate() << '\n';
979 
980  out << HTML::kWhite << '\t' << fMagicWeatherHist[i].back() << '\n';
981  out << HTML::kWhite << '\t' << stat.min << '\n';
982  out << HTML::kWhite << '\t' << stat.avg << '\n';
983  out << HTML::kWhite << '\t' << stat.max << '\n';
984 
985  ofstream(fPath+"/"+name+".data") << out.str();
986 
987  WriteHist(d, "hist-magicweather-"+name, fMagicWeatherHist[i], max-min, min);
988  }
int i
Definition: db_dim_client.c:21
void WriteHist(const EventImp &d, const string &fname, const T &t, double scale, double offset=0)
Definition: smartfact.cc:752
static const string kWhite
Definition: smartfact.cc:74
uint64_t GetJavaDate() const
Definition: EventImp.cc:303
deque< float > fMagicWeatherHist[kWeatherEnd]
Definition: smartfact.cc:540

+ Here is the call graph for this function: