Main Page
Namespaces
Classes
Package Documentation
src
L1Trigger
RPCTechnicalTrigger
interface
RBCInput.h
Go to the documentation of this file.
1
#ifndef INTERFACE_RBCINPUT_H
2
#define INTERFACE_RBCINPUT_H 1
3
4
// Include files
5
#include <cstdlib>
6
#include <istream>
7
#include <ostream>
8
#include <iostream>
9
#include <bitset>
10
#include <vector>
11
#include <array>
12
22
class
RBCInput
{
23
public
:
25
RBCInput
( ) {
26
needmapping
=
false
;
27
m_debug
=
false
;
28
hasData
=
false
;
29
};
30
31
RBCInput
(
const
RBCInput
&) =
default
;
32
RBCInput
(
RBCInput
&&) =
default
;
33
RBCInput
&
operator=
(
const
RBCInput
& ) =
default
;
34
RBCInput
&
operator=
(
RBCInput
&& ) =
default
;
35
36
// io functions
37
friend
std::istream&
operator>>
(std::istream &istr,
RBCInput
&);
38
friend
std::ostream&
operator<<
(std::ostream &ostr,
RBCInput
const
&);
39
40
bool
input
[30];
41
std::array<std::bitset<15>,2>
input_sec
;
42
43
void
printinfo
()
const
{
44
std::cout
<<
"RBCInput: "
<< (*this);
45
};
46
47
void
mask
(
const
std::vector<int> & );
48
49
void
force
(
const
std::vector<int> & );
50
51
bool
hasData
;
52
bool
needmapping
;
53
54
void
setWheelId
(
int
wid ) {
55
m_wheelId
= wid;
56
};
57
58
int
wheelId
()
const
{
59
return
m_wheelId
;
60
};
61
62
63
private
:
64
65
bool
m_debug
;
66
67
int
m_wheelId
;
68
69
};
70
#endif // INTERFACE_RBCINPUT_H
RBCInput::operator<<
friend std::ostream & operator<<(std::ostream &ostr, RBCInput const &)
Definition:
RBCInput.cc:26
RBCInput::operator=
RBCInput & operator=(const RBCInput &)=default
RBCInput::mask
void mask(const std::vector< int > &)
Definition:
RBCInput.cc:37
RBCInput::printinfo
void printinfo() const
Definition:
RBCInput.h:43
RBCInput
Definition:
RBCInput.h:22
RBCInput::operator>>
friend std::istream & operator>>(std::istream &istr, RBCInput &)
Definition:
RBCInput.cc:12
RBCInput::input_sec
std::array< std::bitset< 15 >, 2 > input_sec
Definition:
RBCInput.h:41
RBCInput::force
void force(const std::vector< int > &)
Definition:
RBCInput.cc:52
RBCInput::setWheelId
void setWheelId(int wid)
Definition:
RBCInput.h:54
RBCInput::RBCInput
RBCInput()
Standard constructor.
Definition:
RBCInput.h:25
RBCInput::needmapping
bool needmapping
Definition:
RBCInput.h:52
RBCInput::wheelId
int wheelId() const
Definition:
RBCInput.h:58
RBCInput::input
bool input[30]
Definition:
RBCInput.h:40
RBCInput::hasData
bool hasData
Definition:
RBCInput.h:51
RBCInput::m_wheelId
int m_wheelId
Definition:
RBCInput.h:67
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
RBCInput::m_debug
bool m_debug
Definition:
RBCInput.h:60
Generated for CMSSW Reference Manual by
1.8.11