-
Notifications
You must be signed in to change notification settings - Fork 3
/
ORLakeshore210Decoder.hh
42 lines (33 loc) · 1.45 KB
/
ORLakeshore210Decoder.hh
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
// ORLakeshore210Decoder.hh
/*
*/
#ifndef _ORLakeshore210Decoder_hh_
#define _ORLakeshore210Decoder_hh_
#include "ORVBasicTreeDecoder.hh"
class ORLakeshore210Decoder: public ORVBasicTreeDecoder
{
public:
ORLakeshore210Decoder() {}
virtual ~ORLakeshore210Decoder() {}
enum EORLakeshore210TempUnits {kKelvin, kCelsius};
enum EORLakeshore210TempConsts {kNumChannels = 8};
virtual inline EORLakeshore210TempUnits GetTemperatureUnits(UInt_t* record)
{ return (((record[1] & 0x00010000) >> 16) == 0) ? kCelsius : kKelvin;}
/* Return the units in which the temperature is given. */
virtual inline UInt_t GetNumberOfChannels() {return (UInt_t)kNumChannels;}
/* The number of channels in this card. */
virtual Float_t GetTempOfChannel(UInt_t* record, UInt_t channel);
/* Temperature of a channel. */
virtual UInt_t GetTimeOfChannel(UInt_t* record, UInt_t channel);
/* Time in channel given in seconds since 1 Jan 1970. */
virtual void Dump(UInt_t* record);
/* Provides a debug dump of the record. */
virtual std::string GetDataObjectPath()
{ return "LakeShore210Model:Temperatures"; }
/* Satisfying the ORVBasicTreeDecoder interface. */
virtual size_t GetNPars() { return 4; }
virtual size_t GetNRows(UInt_t* /*record*/) { return GetNumberOfChannels(); }
virtual std::string GetParName(size_t iPar);
virtual UInt_t GetPar(UInt_t* record, size_t iPar, size_t iRow);
};
#endif