CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TTUBoardSpecsIO.cc
Go to the documentation of this file.
1 // Include files
2 
3 
4 
5 // local
7 
8 //-----------------------------------------------------------------------------
9 // Implementation file for class : TTUBoardSpecsIO
10 //
11 // 2008-12-16 : Andres Osorio
12 //-----------------------------------------------------------------------------
13 
14 //=============================================================================
15 // Standard constructor, initializes variables
16 //=============================================================================
18 
19 }
20 //=============================================================================
21 // Destructor
22 //=============================================================================
24 
25 //=============================================================================
26 std::istream& operator>>(std::istream &istr, TTUBoardSpecsIO::TTUBoardConfig &rhs)
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:39
virtual ~TTUBoardSpecsIO()
Destructor.
std::vector< int > m_MaskedSectors
Definition: TTUBoardSpecs.h:38
TTUBoardSpecsIO()
Standard constructor.
std::istream & operator>>(std::istream &input, CLHEP::HepGenMatrix &matrix)
Definition: matrixSaver.cc:111