working database for cuts in cross at least
This commit is contained in:
parent
be62125e77
commit
1466f8540f
|
@ -27,9 +27,9 @@ public:
|
||||||
evtbder = GetEventBuilder();
|
evtbder = GetEventBuilder();
|
||||||
evtbder->SetTimeWindow(500);
|
evtbder->SetTimeWindow(500);
|
||||||
|
|
||||||
//========== use the influx from the Analyzer
|
SetDatabase("http://localhost:8086/", "testing", "zKhzKk4Yhf1l9QU-yE2GsIZ1RazqUgoW3NlF8LJqq_xDMwatOJwg1sKrjgq36uLEsQf8Fmn4sJALP7Kkilk14A==");
|
||||||
influx = new InfluxDB("http://localhost:8086");
|
|
||||||
dataBaseName = "testing";
|
printf(" %p \n", influx);
|
||||||
|
|
||||||
SetUpCanvas(); // see below
|
SetUpCanvas(); // see below
|
||||||
|
|
||||||
|
@ -220,10 +220,12 @@ inline void Cross::UpdateHistograms(){
|
||||||
//printf("%llu %llu, %f %d\n", tMin1[p], tMax1[p], dT, count1[p]);
|
//printf("%llu %llu, %f %d\n", tMin1[p], tMax1[p], dT, count1[p]);
|
||||||
printf("%10s | %d | %f Hz \n", cutNameList1[p].toStdString().c_str(), count1[p], rate);
|
printf("%10s | %d | %f Hz \n", cutNameList1[p].toStdString().c_str(), count1[p], rate);
|
||||||
|
|
||||||
|
if( influx ){
|
||||||
influx->AddDataPoint("Cut,name=" + cutNameList1[p].toStdString()+ " value=" + std::to_string(rate));
|
influx->AddDataPoint("Cut,name=" + cutNameList1[p].toStdString()+ " value=" + std::to_string(rate));
|
||||||
influx->WriteData("testing");
|
influx->WriteData("testing");
|
||||||
influx->ClearDataPointsBuffer();
|
influx->ClearDataPointsBuffer();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@ public:
|
||||||
evtbder = GetEventBuilder();
|
evtbder = GetEventBuilder();
|
||||||
evtbder->SetTimeWindow(500); //ns
|
evtbder->SetTimeWindow(500); //ns
|
||||||
|
|
||||||
|
influx = new InfluxDB();
|
||||||
SetDatabase("https://localhost:8086", "testing", "zKhzKk4Yhf1l9QU-yE2GsIZ1RazqUgoW3NlF8LJqq_xDMwatOJwg1sKrjgq36uLEsQf8Fmn4sJALP7Kkilk14A==");
|
SetDatabase("https://localhost:8086", "testing", "zKhzKk4Yhf1l9QU-yE2GsIZ1RazqUgoW3NlF8LJqq_xDMwatOJwg1sKrjgq36uLEsQf8Fmn4sJALP7Kkilk14A==");
|
||||||
|
|
||||||
SetUpCanvas(); // see below
|
SetUpCanvas(); // see below
|
||||||
|
|
|
@ -28,6 +28,7 @@ public:
|
||||||
evtbder = GetEventBuilder();
|
evtbder = GetEventBuilder();
|
||||||
evtbder->SetTimeWindow(500);
|
evtbder->SetTimeWindow(500);
|
||||||
|
|
||||||
|
influx = new InfluxDB();
|
||||||
SetDatabase("https://localhost:8086", "testing", "zKhzKk4Yhf1l9QU-yE2GsIZ1RazqUgoW3NlF8LJqq_xDMwatOJwg1sKrjgq36uLEsQf8Fmn4sJALP7Kkilk14A==");
|
SetDatabase("https://localhost:8086", "testing", "zKhzKk4Yhf1l9QU-yE2GsIZ1RazqUgoW3NlF8LJqq_xDMwatOJwg1sKrjgq36uLEsQf8Fmn4sJALP7Kkilk14A==");
|
||||||
|
|
||||||
SetUpCanvas(); // see below
|
SetUpCanvas(); // see below
|
||||||
|
|
|
@ -25,6 +25,7 @@ public:
|
||||||
evtbder = GetEventBuilder();
|
evtbder = GetEventBuilder();
|
||||||
evtbder->SetTimeWindow(500);
|
evtbder->SetTimeWindow(500);
|
||||||
|
|
||||||
|
influx = new InfluxDB();
|
||||||
SetDatabase("https://localhost:8086", "testing", "zKhzKk4Yhf1l9QU-yE2GsIZ1RazqUgoW3NlF8LJqq_xDMwatOJwg1sKrjgq36uLEsQf8Fmn4sJALP7Kkilk14A==");
|
SetDatabase("https://localhost:8086", "testing", "zKhzKk4Yhf1l9QU-yE2GsIZ1RazqUgoW3NlF8LJqq_xDMwatOJwg1sKrjgq36uLEsQf8Fmn4sJALP7Kkilk14A==");
|
||||||
|
|
||||||
SetUpCanvas(); // see below
|
SetUpCanvas(); // see below
|
||||||
|
|
|
@ -26,6 +26,7 @@ public:
|
||||||
evtbder->SetTimeWindow(500);
|
evtbder->SetTimeWindow(500);
|
||||||
|
|
||||||
//========== use the influx from the Analyzer
|
//========== use the influx from the Analyzer
|
||||||
|
influx = new InfluxDB();
|
||||||
SetDatabase("https://localhost:8086", "testing", "zKhzKk4Yhf1l9QU-yE2GsIZ1RazqUgoW3NlF8LJqq_xDMwatOJwg1sKrjgq36uLEsQf8Fmn4sJALP7Kkilk14A==");
|
SetDatabase("https://localhost:8086", "testing", "zKhzKk4Yhf1l9QU-yE2GsIZ1RazqUgoW3NlF8LJqq_xDMwatOJwg1sKrjgq36uLEsQf8Fmn4sJALP7Kkilk14A==");
|
||||||
|
|
||||||
SetUpCanvas(); // see below
|
SetUpCanvas(); // see below
|
||||||
|
|
|
@ -27,6 +27,7 @@ public:
|
||||||
evtbder = GetEventBuilder();
|
evtbder = GetEventBuilder();
|
||||||
evtbder->SetTimeWindow(500);
|
evtbder->SetTimeWindow(500);
|
||||||
|
|
||||||
|
influx = new InfluxDB();
|
||||||
SetDatabase("https://localhost:8086", "testing", "zKhzKk4Yhf1l9QU-yE2GsIZ1RazqUgoW3NlF8LJqq_xDMwatOJwg1sKrjgq36uLEsQf8Fmn4sJALP7Kkilk14A==");
|
SetDatabase("https://localhost:8086", "testing", "zKhzKk4Yhf1l9QU-yE2GsIZ1RazqUgoW3NlF8LJqq_xDMwatOJwg1sKrjgq36uLEsQf8Fmn4sJALP7Kkilk14A==");
|
||||||
|
|
||||||
SetUpCanvas(); // see below
|
SetUpCanvas(); // see below
|
||||||
|
|
Loading…
Reference in New Issue
Block a user