CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
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.

28 {
29 
30  std::string logitype;
31 
32  istr >> rhs.m_Firmware ;
33  istr >> rhs.m_WheelId ;
34  istr >> rhs.m_Latency ;
35  istr >> rhs.m_MayorityLevel ;
36  istr >> logitype ;
37 
38  //...m_MaskedOrInput is a vector of size 30
39  for(int i=0; i < 30; ++i) {
40  int mask(0);
41  istr >> mask;
42  rhs.m_MaskedOrInput.push_back(mask);
43  }
44 
45  //...m_ForcedOrInput is a vector of size 30
46  for(int i=0; i < 30; ++i) {
47  int force(0);
48  istr >> force;
49  rhs.m_ForcedOrInput.push_back(force);
50  }
51 
52  rhs.m_LogicType = logitype;
53 
54  return istr;
55 
56 }
int i
Definition: DBlmapReader.cc:9