Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
L1Trigger
RPCTechnicalTrigger
src
RBCBoardSpecsIO.cc
Go to the documentation of this file.
1
// $Id: RBCBoardSpecsIO.cc,v 1.1 2009/06/04 11:52:59 aosorio Exp $
2
// Include files
3
4
5
6
// local
7
#include "
L1Trigger/RPCTechnicalTrigger/interface/RBCBoardSpecsIO.h
"
8
9
//-----------------------------------------------------------------------------
10
// Implementation file for class : RBCBoardSpecsIO
11
//
12
// 2008-12-16 : Andres Osorio
13
//-----------------------------------------------------------------------------
14
15
//=============================================================================
16
// Standard constructor, initializes variables
17
//=============================================================================
18
RBCBoardSpecsIO::RBCBoardSpecsIO
( ) {
19
20
}
21
//=============================================================================
22
// Destructor
23
//=============================================================================
24
RBCBoardSpecsIO::~RBCBoardSpecsIO
() {}
25
26
//=============================================================================
27
std::istream&
operator>>
(std::istream & istr,
RBCBoardSpecsIO::RBCBoardConfig
& rhs)
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
}
57
RBCBoardSpecsIO::RBCBoardSpecsIO
RBCBoardSpecsIO()
Standard constructor.
Definition:
RBCBoardSpecsIO.cc:18
i
int i
Definition:
DBlmapReader.cc:9
RBCBoardSpecs::RBCBoardConfig
Definition:
RBCBoardSpecs.h:21
RBCBoardSpecsIO::~RBCBoardSpecsIO
virtual ~RBCBoardSpecsIO()
Destructor.
Definition:
RBCBoardSpecsIO.cc:24
RBCBoardSpecsIO.h
RBCBoardSpecs::RBCBoardConfig::m_Latency
int m_Latency
Definition:
RBCBoardSpecs.h:29
RBCBoardSpecs::RBCBoardConfig::m_ForcedOrInput
std::vector< int > m_ForcedOrInput
Definition:
RBCBoardSpecs.h:33
RBCBoardSpecs::RBCBoardConfig::m_MaskedOrInput
std::vector< int > m_MaskedOrInput
Definition:
RBCBoardSpecs.h:32
RBCBoardSpecs::RBCBoardConfig::m_LogicType
std::string m_LogicType
Definition:
RBCBoardSpecs.h:35
RBCBoardSpecs::RBCBoardConfig::m_MayorityLevel
int m_MayorityLevel
Definition:
RBCBoardSpecs.h:30
RBCBoardSpecs::RBCBoardConfig::m_Firmware
int m_Firmware
Destructor.
Definition:
RBCBoardSpecs.h:25
operator>>
std::istream & operator>>(std::istream &input, CLHEP::HepGenMatrix &matrix)
Definition:
matrixSaver.cc:111
RBCBoardSpecs::RBCBoardConfig::m_WheelId
int m_WheelId
Definition:
RBCBoardSpecs.h:28
Generated for CMSSW Reference Manual by
1.8.5