Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 // Include files
0002 
0003 // local
0004 #include "L1Trigger/RPCTechnicalTrigger/interface/RBCBoardSpecsIO.h"
0005 
0006 //-----------------------------------------------------------------------------
0007 // Implementation file for class : RBCBoardSpecsIO
0008 //
0009 // 2008-12-16 : Andres Osorio
0010 //-----------------------------------------------------------------------------
0011 
0012 //=============================================================================
0013 // Standard constructor, initializes variables
0014 //=============================================================================
0015 RBCBoardSpecsIO::RBCBoardSpecsIO() {}
0016 //=============================================================================
0017 // Destructor
0018 //=============================================================================
0019 RBCBoardSpecsIO::~RBCBoardSpecsIO() {}
0020 
0021 //=============================================================================
0022 std::istream& operator>>(std::istream& istr, RBCBoardSpecsIO::RBCBoardConfig& rhs) {
0023   std::string logitype;
0024 
0025   istr >> rhs.m_Firmware;
0026   istr >> rhs.m_WheelId;
0027   istr >> rhs.m_Latency;
0028   istr >> rhs.m_MayorityLevel;
0029   istr >> logitype;
0030 
0031   //...m_MaskedOrInput is a vector of size 30
0032   for (int i = 0; i < 30; ++i) {
0033     int mask(0);
0034     istr >> mask;
0035     rhs.m_MaskedOrInput.push_back(mask);
0036   }
0037 
0038   //...m_ForcedOrInput is a vector of size 30
0039   for (int i = 0; i < 30; ++i) {
0040     int force(0);
0041     istr >> force;
0042     rhs.m_ForcedOrInput.push_back(force);
0043   }
0044 
0045   rhs.m_LogicType = logitype;
0046 
0047   return istr;
0048 }