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
7
typedef
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
;
18
Rpc_HV
();
19
void
Clear
();
20
Rpc_HV
(
Rpc_HV
& in);
21
void
Print
();
22
}
Rpc_HV
;
23
24
Rpc_HV::Rpc_HV
()
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
};
37
void
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
};
50
Rpc_HV::Rpc_HV
(
Rpc_HV
& in)
51
{
52
iTimeSec
= in.
iTimeSec
;
53
iTimeMilliSec
= in.
iTimeMilliSec
;
54
dVoltageNeg
= in.
dVoltageNeg
;
55
dCurrentNeg
= in.
dCurrentNeg
;
56
iPowerNeg
= in.
iPowerNeg
;
57
iStatusNeg
= in.
iStatusNeg
;
58
dVoltagePos
= in.
dVoltagePos
;
59
dCurrentPos
= in.
dCurrentPos
;
60
iPowerPos
= in.
iPowerPos
;
61
iStatusPos
= in.
iStatusPos
;
62
};
63
64
void
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"
,
68
iTimeSec
,
iTimeMilliSec
,
dVoltageNeg
,
dCurrentNeg
,
iPowerNeg
,
iStatusNeg
,
dVoltagePos
,
69
dCurrentPos
,
iPowerPos
,
iStatusPos
);
70
cout << sOut << endl;
71
};
72
73
typedef
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
;
80
Pmt_HV
();
81
void
Clear
();
82
Pmt_HV
(
Pmt_HV
& in);
83
void
Print
();
84
}
Pmt_HV
;
85
86
Pmt_HV::Pmt_HV
()
87
{
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
{
97
iTimeSec
= 0;
98
iTimeMilliSec
= 0;
99
dVoltage
= 0.0;
100
dCurrent
= 0.0;
101
iPower
= -1;
102
iStatus
= -1;
103
};
104
Pmt_HV::Pmt_HV
(
Pmt_HV
& in)
105
{
106
iTimeSec
= in.
iTimeSec
;
107
iTimeMilliSec
= in.
iTimeMilliSec
;
108
dVoltage
= in.
dVoltage
;
109
dCurrent
= in.
dCurrent
;
110
iPower
= in.
iPower
;
111
iStatus
= in.
iStatus
;
112
};
113
114
void
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
,
117
dCurrent
,
iPower
,
iStatus
);
118
cout << sOut << endl;
119
};
Rpc_HV
struct Rpc_HV Rpc_HV
Pmt_HV
struct Pmt_HV Pmt_HV
Pmt_HV
Definition
apr14/currents/StructDef.h:56
Pmt_HV::dCurrent
Double_t dCurrent
Definition
apr14/currents/StructDef.h:60
Pmt_HV::dVoltage
Double_t dVoltage
Definition
apr14/currents/StructDef.h:59
Pmt_HV::iTimeSec
Int_t iTimeSec
Definition
apr14/currents/StructDef.h:57
Pmt_HV::iPower
Int_t iPower
Definition
apr14/currents/StructDef.h:61
Pmt_HV::iTimeMilliSec
Int_t iTimeMilliSec
Definition
apr14/currents/StructDef.h:58
Pmt_HV::iStatus
Int_t iStatus
Definition
apr14/currents/StructDef.h:62
Pmt_HV::Print
void Print()
Pmt_HV::Pmt_HV
Pmt_HV(Pmt_HV &in)
Pmt_HV::Pmt_HV
Pmt_HV()
Pmt_HV::Clear
void Clear()
Rpc_HV
Definition
apr14/currents/StructDef.h:7
Rpc_HV::Print
void Print()
Rpc_HV::iPowerNeg
Int_t iPowerNeg
Definition
apr14/currents/StructDef.h:12
Rpc_HV::iStatusNeg
Int_t iStatusNeg
Definition
apr14/currents/StructDef.h:13
Rpc_HV::dCurrentPos
Double_t dCurrentPos
Definition
apr14/currents/StructDef.h:15
Rpc_HV::dCurrentNeg
Double_t dCurrentNeg
Definition
apr14/currents/StructDef.h:11
Rpc_HV::dVoltagePos
Double_t dVoltagePos
Definition
apr14/currents/StructDef.h:14
Rpc_HV::Clear
void Clear()
Rpc_HV::Rpc_HV
Rpc_HV(Rpc_HV &in)
Rpc_HV::iTimeSec
Int_t iTimeSec
Definition
apr14/currents/StructDef.h:8
Rpc_HV::iTimeMilliSec
Int_t iTimeMilliSec
Definition
apr14/currents/StructDef.h:9
Rpc_HV::Rpc_HV
Rpc_HV()
Rpc_HV::iStatusPos
Int_t iStatusPos
Definition
apr14/currents/StructDef.h:17
Rpc_HV::dVoltageNeg
Double_t dVoltageNeg
Definition
apr14/currents/StructDef.h:10
Rpc_HV::iPowerPos
Int_t iPowerPos
Definition
apr14/currents/StructDef.h:16
macro
tof
beamtime
nov15
current
StructDef.h
Generated on Sun Dec 22 2024 23:04:12 for CbmRoot by
1.12.0