CbmRoot
nov15/current/StructDef.h
Go to the documentation of this file.
1 
2 //#include "Riostream.h"
3 
4 typedef struct Rpc_HV {
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  void Clear();
17  Rpc_HV(Rpc_HV& in);
18  void Print();
20 
22  iTimeSec = 0;
23  iTimeMilliSec = 0;
24  dVoltageNeg = 0.0;
25  dCurrentNeg = 0.0;
26  iPowerNeg = -1;
27  iStatusNeg = -1;
28  dVoltagePos = 0.0;
29  dCurrentPos = 0.0;
30  iPowerPos = -1;
31  iStatusPos = -1;
32 };
33 void Rpc_HV::Clear() {
34  iTimeSec = 0;
35  iTimeMilliSec = 0;
36  dVoltageNeg = 0.0;
37  dCurrentNeg = 0.0;
38  iPowerNeg = -1;
39  iStatusNeg = -1;
40  dVoltagePos = 0.0;
41  dCurrentPos = 0.0;
42  iPowerPos = -1;
43  iStatusPos = -1;
44 };
46  iTimeSec = in.iTimeSec;
50  iPowerNeg = in.iPowerNeg;
54  iPowerPos = in.iPowerPos;
56 };
57 
58 void Rpc_HV::Print() {
59  TString sOut = Form(" Time %09d s %03d ms V- = %5.2f I- = %5.2f P- = %1d S- "
60  "= %1d V+ = %5.2f I+ = %5.2f P+ = %1d S+ = %1d",
61  iTimeSec,
65  iPowerNeg,
66  iStatusNeg,
69  iPowerPos,
70  iStatusPos);
71  cout << sOut << endl;
72 };
73 
74 typedef struct Pmt_HV {
75  Int_t iTimeSec;
76  Int_t iTimeMilliSec;
77  Double_t dVoltage;
78  Double_t dCurrent;
79  Int_t iPower;
80  Int_t iStatus;
81  Pmt_HV();
82  void Clear();
83  Pmt_HV(Pmt_HV& in);
84  void Print();
86 
88  iTimeSec = 0;
89  iTimeMilliSec = 0;
90  dVoltage = 0.0;
91  dCurrent = 0.0;
92  iPower = -1;
93  iStatus = -1;
94 };
95 void Pmt_HV::Clear() {
96  iTimeSec = 0;
97  iTimeMilliSec = 0;
98  dVoltage = 0.0;
99  dCurrent = 0.0;
100  iPower = -1;
101  iStatus = -1;
102 };
103 Pmt_HV::Pmt_HV(Pmt_HV& in) {
104  iTimeSec = in.iTimeSec;
106  dVoltage = in.dVoltage;
107  dCurrent = in.dCurrent;
108  iPower = in.iPower;
109  iStatus = in.iStatus;
110 };
111 
112 void Pmt_HV::Print() {
113  TString sOut =
114  Form(" Time %09d s %03d ms V- = %5.2f I- = %5.2f P- = %1d S- = %1d",
115  iTimeSec,
117  dVoltage,
118  dCurrent,
119  iPower,
120  iStatus);
121  cout << sOut << endl;
122 };
Pmt_HV::Clear
void Clear()
Pmt_HV::iTimeSec
Int_t iTimeSec
Definition: apr14/currents/StructDef.h:59
Rpc_HV::Rpc_HV
Rpc_HV()
Rpc_HV
struct Rpc_HV Rpc_HV
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
Rpc_HV::Rpc_HV
Rpc_HV(Rpc_HV &in)
Rpc_HV::Print
void Print()
Rpc_HV::dVoltagePos
Double_t dVoltagePos
Definition: apr14/currents/StructDef.h:11
Rpc_HV::iTimeSec
Int_t iTimeSec
Definition: apr14/currents/StructDef.h:5
Pmt_HV::Pmt_HV
Pmt_HV(Pmt_HV &in)
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::Pmt_HV
Pmt_HV()
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()
Rpc_HV::Clear
void Clear()
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
Pmt_HV
struct Pmt_HV Pmt_HV
Rpc_HV::iStatusPos
Int_t iStatusPos
Definition: apr14/currents/StructDef.h:14
Rpc_HV::iPowerNeg
Int_t iPowerNeg
Definition: apr14/currents/StructDef.h:9