CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_5_3_0/src/L1Trigger/RPCTechnicalTrigger/interface/RBCBoardSpecsIO.h File Reference

#include "CondFormats/RPCObjects/interface/RBCBoardSpecs.h"
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <ios>

Go to the source code of this file.

Classes

class  RBCBoardSpecsIO

Functions

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

Function Documentation

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

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;
  
}