CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
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 26 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, TTUBoardSpecs::TTUBoardConfig::m_Wheel2Id, and AlCaHLTBitMon_QueryRunRegistry::string.

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