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
7typedef struct {
8 Int_t iTimeSec;
10 Double_t dVoltageNeg;
11 Double_t dCurrentNeg;
12 Int_t iPowerNeg;
14 Double_t dVoltagePos;
15 Double_t dCurrentPos;
16 Int_t iPowerPos;
18} Rpc_HV;
19
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};
34{
35 iTimeSec = in.iTimeSec;
45};
46
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",
53 cout << sOut << endl;
54};
55
56typedef struct {
57 Int_t iTimeSec;
59 Double_t dVoltage;
60 Double_t dCurrent;
61 Int_t iPower;
62 Int_t iStatus;
63} Pmt_HV;
64
66{
67 iTimeSec = 0;
68 iTimeMilliSec = 0;
69 dVoltage = 0.0;
70 dCurrent = 0.0;
71 iPower = -1;
72 iStatus = -1;
73};
74void Pmt_HV::Rpc_HV(&Pmt_HV in)
75{
76 iTimeSec = in.iTimeSec;
82};
83
85{
86 TString sOut = Form(" Time %09d s %03d ms V- = %5.2f I- = %5.2f P- = %1d S- = %1d", iTimeSec, iTimeMilliSec, dVoltage,
88 cout << sOut << endl;
89};
void Rpc_HV::Rpc_HV Rpc_HV
void Pmt_HV::Rpc_HV Pmt_HV