CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/L1Trigger/RPCTechnicalTrigger/src/TTUBoardSpecsIO.cc File Reference

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

Go to the source code of this file.

Functions

std::istream & operator>> (std::istream &istr, TTUBoardSpecsIO::TTUBoardConfig &rhs)

Function Documentation

std::istream& operator>> ( std::istream &  istr,
TTUBoardSpecsIO::TTUBoardConfig rhs 
)

Definition at line 27 of file TTUBoardSpecsIO.cc.

References i, TTUBoardSpecs::TTUBoardConfig::m_Delay, TTUBoardSpecs::TTUBoardConfig::m_Firmware, TTUBoardSpecs::TTUBoardConfig::m_ForcedSectors, TTUBoardSpecs::TTUBoardConfig::m_LengthOfFiber, TTUBoardSpecs::TTUBoardConfig::m_LogicType, TTUBoardSpecs::TTUBoardConfig::m_MaskedSectors, TTUBoardSpecs::TTUBoardConfig::m_MaxNumWheels, RPCTechTriggerConfig::m_runId, RPCTechTriggerConfig::m_runType, TTUBoardSpecs::TTUBoardConfig::m_TrackLength, RPCTechTriggerConfig::m_triggerMode, TTUBoardSpecs::TTUBoardConfig::m_Wheel1Id, and TTUBoardSpecs::TTUBoardConfig::m_Wheel2Id.

{
  
  std::string logitype;
  
  istr >> rhs.m_runId         ;
  istr >> rhs.m_runType       ;
  istr >> rhs.m_triggerMode   ;
  istr >> rhs.m_Firmware      ;
  istr >> rhs.m_LengthOfFiber ;
  istr >> rhs.m_Delay         ;
  istr >> rhs.m_MaxNumWheels  ;
  istr >> rhs.m_Wheel1Id      ;
  istr >> rhs.m_Wheel2Id      ;
  istr >> logitype            ;
  istr >> rhs.m_TrackLength   ;
  
  //...m_MaskedSectors is a vector of size 12
  for(int i=0; i < 12; ++i) {
    int mask(0);
    istr >> mask;
    rhs.m_MaskedSectors.push_back(mask);
  }
  
  //...m_ForcedSectors is a vector of size 12
  for(int i=0; i < 12; ++i) {
    int force(0);
    istr >> force;
    rhs.m_ForcedSectors.push_back(force);
  }
  
  rhs.m_LogicType = logitype;
  
  return istr;
  
}