File indexing completed on 2024-04-06 12:21:39
0001
0002
0003
0004 #include "L1Trigger/RPCTechnicalTrigger/interface/TTUBoardSpecsIO.h"
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 TTUBoardSpecsIO::TTUBoardSpecsIO() {}
0016
0017
0018
0019 TTUBoardSpecsIO::~TTUBoardSpecsIO() {}
0020
0021
0022 std::istream &operator>>(std::istream &istr, TTUBoardSpecsIO::TTUBoardConfig &rhs) {
0023 std::string logitype;
0024
0025 istr >> rhs.m_runId;
0026 istr >> rhs.m_runType;
0027 istr >> rhs.m_triggerMode;
0028 istr >> rhs.m_Firmware;
0029 istr >> rhs.m_LengthOfFiber;
0030 istr >> rhs.m_Delay;
0031 istr >> rhs.m_MaxNumWheels;
0032 istr >> rhs.m_Wheel1Id;
0033 istr >> rhs.m_Wheel2Id;
0034 istr >> logitype;
0035 istr >> rhs.m_TrackLength;
0036
0037
0038 for (int i = 0; i < 12; ++i) {
0039 int mask(0);
0040 istr >> mask;
0041 rhs.m_MaskedSectors.push_back(mask);
0042 }
0043
0044
0045 for (int i = 0; i < 12; ++i) {
0046 int force(0);
0047 istr >> force;
0048 rhs.m_ForcedSectors.push_back(force);
0049 }
0050
0051 rhs.m_LogicType = logitype;
0052
0053 return istr;
0054 }