Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
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
6
OnlMonDBVar::OnlMonDBVar
()
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
}
OnlMon
blob
main
onlmondatabase
OnlMonDBVar.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:28
using
1.8.2 with
sPHENIX GitHub integration