CbmRoot
Loading...
Searching...
No Matches
apr14/currents/StructDef.h
Go to the documentation of this file.
1
/* Copyright (C) 2015 Physikalisches Institut, Universitaet Heidelberg, Heidelberg
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Christian Simon [committer] */
4
5
#include "Riostream.h"
6
7
typedef
struct
{
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
20
void
Rpc_HV::Clear
()
21
{
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::Rpc_HV
(&
Rpc_HV
in)
34
{
35
iTimeSec
= in.
iTimeSec
;
36
iTimeMilliSec
= in.
iTimeMilliSec
;
37
dVoltageNeg
= in.
dVoltageNeg
;
38
dCurrentNeg
= in.
dCurrentNeg
;
39
iPowerNeg
= in.
iPowerNeg
;
40
iStatusNeg
= in.
iStatusNeg
;
41
dVoltagePos
= in.
dVoltagePos
;
42
dCurrentPos
= in.
dCurrentPos
;
43
iPowerPos
= in.
iPowerPos
;
44
iStatusPos
= in.
iStatusPos
;
45
};
46
47
void
Rpc_HV::Print
()
48
{
49
TString sOut = Form(
" Time %09d s %03d ms V- = %5.2f I- = %5.2f P- = %1d S- "
50
"= %1d V+ = %5.2f I+ = %5.2f P+ = %1d S+ = %1d"
,
51
iTimeSec
,
iTimeMilliSec
,
dVoltageNeg
,
dCurrentNeg
,
iPowerNeg
,
iStatusNeg
,
dVoltagePos
,
52
dCurrentPos
,
iPowerPos
,
iStatusPos
);
53
cout << sOut << endl;
54
};
55
56
typedef
struct
{
57
Int_t
iTimeSec
;
58
Int_t
iTimeMilliSec
;
59
Double_t
dVoltage
;
60
Double_t
dCurrent
;
61
Int_t
iPower
;
62
Int_t
iStatus
;
63
}
Pmt_HV
;
64
65
void
Pmt_HV::Clear
()
66
{
67
iTimeSec
= 0;
68
iTimeMilliSec
= 0;
69
dVoltage
= 0.0;
70
dCurrent
= 0.0;
71
iPower
= -1;
72
iStatus
= -1;
73
};
74
void
Pmt_HV::Rpc_HV(&
Pmt_HV
in)
75
{
76
iTimeSec
= in.
iTimeSec
;
77
iTimeMilliSec
= in.
iTimeMilliSec
;
78
dVoltage
= in.
dVoltage
;
79
dCurrent
= in.
dCurrent
;
80
iPower
= in.
iPower
;
81
iStatus
= in.
iStatus
;
82
};
83
84
void
Pmt_HV::Print
()
85
{
86
TString sOut = Form(
" Time %09d s %03d ms V- = %5.2f I- = %5.2f P- = %1d S- = %1d"
,
iTimeSec
,
iTimeMilliSec
,
dVoltage
,
87
dCurrent
,
iPower
,
iStatus
);
88
cout << sOut << endl;
89
};
Rpc_HV
void Rpc_HV::Rpc_HV Rpc_HV
Definition
apr14/currents/StructDef.h:34
Pmt_HV
void Pmt_HV::Rpc_HV Pmt_HV
Definition
apr14/currents/StructDef.h:75
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()
Definition
apr14/currents/StructDef.h:84
Pmt_HV::Clear
void Clear()
Definition
apr14/currents/StructDef.h:65
Rpc_HV
Definition
apr14/currents/StructDef.h:7
Rpc_HV::Print
void Print()
Definition
apr14/currents/StructDef.h:47
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()
Definition
apr14/currents/StructDef.h:20
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()
Definition
feb15/current/StructDef.h:24
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
apr14
currents
StructDef.h
Generated on Sun Dec 22 2024 23:04:12 for CbmRoot by
1.12.0