CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
TTUBoardSpecsIO.h File Reference
#include "CondFormats/RPCObjects/interface/TTUBoardSpecs.h"
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <ios>

Go to the source code of this file.

Classes

class  TTUBoardSpecsIO
 

Functions

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

Function Documentation

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

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.

28 {
29 
30  std::string logitype;
31 
32  istr >> rhs.m_runId ;
33  istr >> rhs.m_runType ;
34  istr >> rhs.m_triggerMode ;
35  istr >> rhs.m_Firmware ;
36  istr >> rhs.m_LengthOfFiber ;
37  istr >> rhs.m_Delay ;
38  istr >> rhs.m_MaxNumWheels ;
39  istr >> rhs.m_Wheel1Id ;
40  istr >> rhs.m_Wheel2Id ;
41  istr >> logitype ;
42  istr >> rhs.m_TrackLength ;
43 
44  //...m_MaskedSectors is a vector of size 12
45  for(int i=0; i < 12; ++i) {
46  int mask(0);
47  istr >> mask;
48  rhs.m_MaskedSectors.push_back(mask);
49  }
50 
51  //...m_ForcedSectors is a vector of size 12
52  for(int i=0; i < 12; ++i) {
53  int force(0);
54  istr >> force;
55  rhs.m_ForcedSectors.push_back(force);
56  }
57 
58  rhs.m_LogicType = logitype;
59 
60  return istr;
61 
62 }
int i
Definition: DBlmapReader.cc:9