ATLAS Offline Software
EMBHVPayload.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARHV_EMBHVPAYLOAD_H
6 #define LARHV_EMBHVPAYLOAD_H
7 #include <iostream>
8 struct EMBHVPayload {
9  double voltage[2];
10  double current[2];
11  int hvLineNo[2];
12 };
13 
14 inline std::ostream & operator << (std::ostream & o, const EMBHVPayload & payload) {
15  o << "Half Gap #0: HV Line No " << payload.hvLineNo[0] << ' ' << payload.voltage[0] << " volts; " << payload.current[0] << " amps" << std::endl;
16  o << "Half Gap #1: HV Line No " << payload.hvLineNo[1] << ' ' << payload.voltage[1] << " volts; " << payload.current[1] << " amps" << std::endl;
17  return o;
18 }
19 #endif
EMBHVPayload::hvLineNo
int hvLineNo[2]
Definition: EMBHVPayload.h:11
EMBHVPayload::current
double current[2]
Definition: EMBHVPayload.h:10
EMBHVPayload
Definition: EMBHVPayload.h:8
EMBHVPayload::voltage
double voltage[2]
Definition: EMBHVPayload.h:9
PixelModuleFeMask_create_db.payload
string payload
Definition: PixelModuleFeMask_create_db.py:69
operator<<
std::ostream & operator<<(std::ostream &o, const EMBHVPayload &payload)
Definition: EMBHVPayload.h:14