38int main(
int argc,
char **argv)
71 catch(
const exception &error) {
77 JManager<JLocation_t, TH1D>
H1(
new TH1D(
"HV[%]",
NULL, 201, -256.0, +256.0));
96 if (parameters.PMTUPI.getPBS() == PBS::PMT) {
97 detector[parameters.PMTUPI] =
JLocation_t(parameters.DUID, parameters.FLOORID, parameters.CABLEPOS);
104 for (
const int run :
runs) {
108 JSelector selection(&JDatalogNumbers::PARAMETER_NAME,
"pmt_highvolt");
114 long long int counter = 0;
120 const JUPI_t upi = parameters.SOURCE_NAME;
127 G1[location].put(parameters.getTime(), parameters.DATA_VALUE);
129 H1[location]->Fill(HV(
upi).value - parameters.DATA_VALUE);
131 if (fabs(HV(
upi).value - parameters.DATA_VALUE) > precision) {
133 ERROR(
"HV " <<
setw(6) << parameters.RUN <<
' ' <<
setw(10) << parameters.UNIXTIME <<
' ' << location <<
" set/read " <<
FIXED(7,1) << HV(
upi) <<
"/" <<
FIXED(7,1) << parameters.DATA_VALUE <<
endl);
149 if (
debug >= warning_t) {
151 cout <<
"Error HV " <<
setw(32) << left << i->first << right <<
' ' <<
detector[i->first] <<
' ' <<
setw(3) << i->second <<
endl;
154 cout <<
"Alien UPI " <<
setw(32) << left << i->first << right <<
' ' <<
setw(3) << i->second <<
endl;
158 catch(
const exception& error) {