Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:56

0001 #include "OnlMonDBVar.h"
0002 
0003 #include <cmath>
0004 #include <iostream>
0005 
0006 OnlMonDBVar::OnlMonDBVar()
0007 {
0008   val.fill(NAN);
0009   return;
0010 }
0011 
0012 int OnlMonDBVar::SetVar(const float rval[3])
0013 {
0014   updated = 1;
0015   for (short int i = 0; i < 3; i++)
0016   {
0017     val[i] = rval[i];
0018   }
0019   return 0;
0020 }
0021 
0022 void OnlMonDBVar::Print() const
0023 {
0024   std::cout << "Value: " << val[0] << ", Error: " << val[1]
0025             << ", Quality: " << val[2]
0026             << ", updated: " << updated << std::endl;
0027   return;
0028 }