#include #include #include "ISlowControlDatabase.hxx" #include "gscUtils.hxx" /// Example program showing some sample access to the M11 slow control /// database for FGD front end electronics. int main(int argc,char **argv){ for (int i = 0; i < 100; i++){ int delay = i*60*120 + 10 ; sleep(delay); std::cout << "Waited " << delay/60 << " minutes before doing next query." << std::endl; // Get time from 48 hours ago int utime = 1270080000 - 60*60*24*2; double temp1 = ISlowControlDatabase::Get().QueryShowField(utime,"fgdsc_f040","f040_temp1"); std::cout << "Busboard Temperature 1: " << temp1 <