CbmRoot
apr14/currents/StructDef.h
Go to the documentation of this file.
1 
2 #include "Riostream.h"
3 
4 typedef struct {
5  Int_t iTimeSec;
6  Int_t iTimeMilliSec;
7  Double_t dVoltageNeg;
8  Double_t dCurrentNeg;
9  Int_t iPowerNeg;
10  Int_t iStatusNeg;
11  Double_t dVoltagePos;
12  Double_t dCurrentPos;
13  Int_t iPowerPos;
14  Int_t iStatusPos;
15 } Rpc_HV;
16 
17 void Rpc_HV::Clear() {
18  iTimeSec = 0;
19  iTimeMilliSec = 0;
20  dVoltageNeg = 0.0;
21  dCurrentNeg = 0.0;
22  iPowerNeg = -1;
23  iStatusNeg = -1;
24  dVoltagePos = 0.0;
25  dCurrentPos = 0.0;
26  iPowerPos = -1;
27  iStatusPos = -1;
28 };
30  iTimeSec = in.iTimeSec;
40 };
41 
42 void Rpc_HV::Print() {
43  TString sOut = Form(" Time %09d s %03d ms V- = %5.2f I- = %5.2f P- = %1d S- "
44  "= %1d V+ = %5.2f I+ = %5.2f P+ = %1d S+ = %1d",
45  iTimeSec,
49  iPowerNeg,
50  iStatusNeg,
53  iPowerPos,
54  iStatusPos);
55  cout << sOut << endl;
56 };
57 
58 typedef struct {
59  Int_t iTimeSec;
61  Double_t dVoltage;
62  Double_t dCurrent;
63  Int_t iPower;
64  Int_t iStatus;
65 } Pmt_HV;
66 
67 void Pmt_HV::Clear() {
68  iTimeSec = 0;
69  iTimeMilliSec = 0;
70  dVoltage = 0.0;
71  dCurrent = 0.0;
72  iPower = -1;
73  iStatus = -1;
74 };
76  iTimeSec = in.iTimeSec;
80  iPower = in.iPower;
82 };
83 
84 void Pmt_HV::Print() {
85  TString sOut =
86  Form(" Time %09d s %03d ms V- = %5.2f I- = %5.2f P- = %1d S- = %1d",
87  iTimeSec,
89  dVoltage,
90  dCurrent,
91  iPower,
92  iStatus);
93  cout << sOut << endl;
94 };
Pmt_HV::Clear
void Clear()
Definition: apr14/currents/StructDef.h:67
Pmt_HV::iTimeSec
Int_t iTimeSec
Definition: apr14/currents/StructDef.h:59
Rpc_HV::Rpc_HV
Rpc_HV()
Definition: feb15/current/StructDef.h:21
Rpc_HV
void Rpc_HV::Rpc_HV Rpc_HV
Definition: apr14/currents/StructDef.h:29
Pmt_HV
Definition: apr14/currents/StructDef.h:58
Rpc_HV::dVoltageNeg
Double_t dVoltageNeg
Definition: apr14/currents/StructDef.h:7
Rpc_HV
Definition: apr14/currents/StructDef.h:4
Pmt_HV
void Pmt_HV::Rpc_HV Pmt_HV
Definition: apr14/currents/StructDef.h:75
Rpc_HV::Print
void Print()
Definition: apr14/currents/StructDef.h:42
Rpc_HV::dVoltagePos
Double_t dVoltagePos
Definition: apr14/currents/StructDef.h:11
Rpc_HV::iTimeSec
Int_t iTimeSec
Definition: apr14/currents/StructDef.h:5
Rpc_HV::iPowerPos
Int_t iPowerPos
Definition: apr14/currents/StructDef.h:13
Pmt_HV::dCurrent
Double_t dCurrent
Definition: apr14/currents/StructDef.h:62
Rpc_HV::iStatusNeg
Int_t iStatusNeg
Definition: apr14/currents/StructDef.h:10
Pmt_HV::iStatus
Int_t iStatus
Definition: apr14/currents/StructDef.h:64
Rpc_HV::dCurrentNeg
Double_t dCurrentNeg
Definition: apr14/currents/StructDef.h:8
Rpc_HV::dCurrentPos
Double_t dCurrentPos
Definition: apr14/currents/StructDef.h:12
Pmt_HV::iPower
Int_t iPower
Definition: apr14/currents/StructDef.h:63
Pmt_HV::Print
void Print()
Definition: apr14/currents/StructDef.h:84
Rpc_HV::Clear
void Clear()
Definition: apr14/currents/StructDef.h:17
Rpc_HV::iTimeMilliSec
Int_t iTimeMilliSec
Definition: apr14/currents/StructDef.h:6
Pmt_HV::dVoltage
Double_t dVoltage
Definition: apr14/currents/StructDef.h:61
Pmt_HV::iTimeMilliSec
Int_t iTimeMilliSec
Definition: apr14/currents/StructDef.h:60
Rpc_HV::iStatusPos
Int_t iStatusPos
Definition: apr14/currents/StructDef.h:14
Rpc_HV::iPowerNeg
Int_t iPowerNeg
Definition: apr14/currents/StructDef.h:9