-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathORCTITempDecoder.cc
46 lines (38 loc) · 1.15 KB
/
ORCTITempDecoder.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// ORCTITempDecoder.cc
#include "ORCTITempDecoder.hh"
#include "ORLogger.hh"
//**************************************************************************************
void ORCTITempDecoder::Dump(UInt_t* record)
{
ORLog(kDebug) << "*************** Dumping out CTITemp Data *************" << std::endl;
ORLog(kDebug) << "Device ID: " << GetDeviceID(record) << std::endl
<< " Temperature: " << GetTemperature(record) << std::endl
<< " Time: " << GetTime(record) << std::endl;
ORLog(kDebug) << "********************************************************" << std::endl;
}
std::string ORCTITempDecoder::GetParName(size_t iPar)
{
switch(iPar) {
case 0:
return "Device ID";
case 1:
return "Temperature";
case 2:
return "Time";
}
ORLog(kError) << "Parameter number out of bounds" << std::endl;
return "";
}
UInt_t ORCTITempDecoder::GetPar(UInt_t* record, size_t iPar, size_t /*iRow*/)
{
switch (iPar) {
case 0:
return GetDeviceID(record);
case 1:
return (UInt_t)GetTemperature(record);
case 2:
return GetTime(record);
}
ORLog(kError) << "Parameter number out of bounds" << std::endl;
return 0;
}