CMS 3D CMS Logo

Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/L1Trigger/RPCTechnicalTrigger/src/RBCBoardSpecsIO.cc File Reference

#include "L1Trigger/RPCTechnicalTrigger/interface/RBCBoardSpecsIO.h"

Go to the source code of this file.

Functions

std::istream & operator>> (std::istream &istr, RBCBoardSpecsIO::RBCBoardConfig &rhs)

Function Documentation

std::istream& operator>> ( std::istream &  istr,
RBCBoardSpecsIO::RBCBoardConfig rhs 
)

Definition at line 27 of file RBCBoardSpecsIO.cc.

References i, RBCBoardSpecs::RBCBoardConfig::m_Firmware, RBCBoardSpecs::RBCBoardConfig::m_ForcedOrInput, RBCBoardSpecs::RBCBoardConfig::m_Latency, RBCBoardSpecs::RBCBoardConfig::m_LogicType, RBCBoardSpecs::RBCBoardConfig::m_MaskedOrInput, RBCBoardSpecs::RBCBoardConfig::m_MayorityLevel, and RBCBoardSpecs::RBCBoardConfig::m_WheelId.

{
  
  std::string logitype;
  
  istr >> rhs.m_Firmware      ;
  istr >> rhs.m_WheelId       ;
  istr >> rhs.m_Latency       ;
  istr >> rhs.m_MayorityLevel ;
  istr >> logitype ;

  //...m_MaskedOrInput is a vector of size 30
  for(int i=0; i < 30; ++i) {
    int mask(0);
    istr >> mask;
    rhs.m_MaskedOrInput.push_back(mask);
  }
  
  //...m_ForcedOrInput is a vector of size 30
  for(int i=0; i < 30; ++i) {
    int force(0);
    istr >> force;
    rhs.m_ForcedOrInput.push_back(force);
  }

  rhs.m_LogicType = logitype;
  
  return istr;
  
}