Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:39

0001 // Include files
0002 
0003 // local
0004 #include "L1Trigger/RPCTechnicalTrigger/interface/TTUBoardSpecsIO.h"
0005 
0006 //-----------------------------------------------------------------------------
0007 // Implementation file for class : TTUBoardSpecsIO
0008 //
0009 // 2008-12-16 : Andres Osorio
0010 //-----------------------------------------------------------------------------
0011 
0012 //=============================================================================
0013 // Standard constructor, initializes variables
0014 //=============================================================================
0015 TTUBoardSpecsIO::TTUBoardSpecsIO() {}
0016 //=============================================================================
0017 // Destructor
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   //...m_MaskedSectors is a vector of size 12
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   //...m_ForcedSectors is a vector of size 12
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 }