CbmRoot
Loading...
Searching...
No Matches
nov15/current/StructDef.h
Go to the documentation of this file.
1/* Copyright (C) 2015 Facility for Antiproton and Ion Research in Europe, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Pierre-Alain Loizeau [committer] */
4
5//#include "Riostream.h"
6
7typedef struct Rpc_HV {
8 Int_t iTimeSec;
9 Int_t iTimeMilliSec;
10 Double_t dVoltageNeg;
11 Double_t dCurrentNeg;
12 Int_t iPowerNeg;
13 Int_t iStatusNeg;
14 Double_t dVoltagePos;
15 Double_t dCurrentPos;
16 Int_t iPowerPos;
17 Int_t iStatusPos;
19 void Clear();
21 void Print();
23
25{
26 iTimeSec = 0;
27 iTimeMilliSec = 0;
28 dVoltageNeg = 0.0;
29 dCurrentNeg = 0.0;
30 iPowerNeg = -1;
31 iStatusNeg = -1;
32 dVoltagePos = 0.0;
33 dCurrentPos = 0.0;
34 iPowerPos = -1;
35 iStatusPos = -1;
36};
37void Rpc_HV::Clear()
38{
39 iTimeSec = 0;
40 iTimeMilliSec = 0;
41 dVoltageNeg = 0.0;
42 dCurrentNeg = 0.0;
43 iPowerNeg = -1;
44 iStatusNeg = -1;
45 dVoltagePos = 0.0;
46 dCurrentPos = 0.0;
47 iPowerPos = -1;
48 iStatusPos = -1;
49};
51{
52 iTimeSec = in.iTimeSec;
62};
63
64void Rpc_HV::Print()
65{
66 TString sOut = Form(" Time %09d s %03d ms V- = %5.2f I- = %5.2f P- = %1d S- "
67 "= %1d V+ = %5.2f I+ = %5.2f P+ = %1d S+ = %1d",
70 cout << sOut << endl;
71};
72
73typedef struct Pmt_HV {
74 Int_t iTimeSec;
75 Int_t iTimeMilliSec;
76 Double_t dVoltage;
77 Double_t dCurrent;
78 Int_t iPower;
79 Int_t iStatus;
81 void Clear();
83 void Print();
85
87{
88 iTimeSec = 0;
89 iTimeMilliSec = 0;
90 dVoltage = 0.0;
91 dCurrent = 0.0;
92 iPower = -1;
93 iStatus = -1;
94};
95void Pmt_HV::Clear()
96{
97 iTimeSec = 0;
98 iTimeMilliSec = 0;
99 dVoltage = 0.0;
100 dCurrent = 0.0;
101 iPower = -1;
102 iStatus = -1;
103};
105{
106 iTimeSec = in.iTimeSec;
108 dVoltage = in.dVoltage;
109 dCurrent = in.dCurrent;
110 iPower = in.iPower;
111 iStatus = in.iStatus;
112};
113
114void Pmt_HV::Print()
115{
116 TString sOut = Form(" Time %09d s %03d ms V- = %5.2f I- = %5.2f P- = %1d S- = %1d", iTimeSec, iTimeMilliSec, dVoltage,
118 cout << sOut << endl;
119};
struct Rpc_HV Rpc_HV
struct Pmt_HV Pmt_HV
void Print()
Pmt_HV(Pmt_HV &in)
void Clear()
void Print()
void Clear()
Rpc_HV(Rpc_HV &in)