Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OnlMonDBVar.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file OnlMonDBVar.cc
1 #include "OnlMonDBVar.h"
2 
3 #include <cmath>
4 #include <iostream>
5 
7 {
8  val.fill(NAN);
9  return;
10 }
11 
12 int OnlMonDBVar::SetVar(const float rval[3])
13 {
14  updated = 1;
15  for (short int i = 0; i < 3; i++)
16  {
17  val[i] = rval[i];
18  }
19  return 0;
20 }
21 
22 void OnlMonDBVar::Print() const
23 {
24  std::cout << "Value: " << val[0] << ", Error: " << val[1]
25  << ", Quality: " << val[2]
26  << ", updated: " << updated << std::endl;
27  return;
28 }