L1Trigger
RPCTechnicalTrigger
src
RBCTestLogic.cc
Go to the documentation of this file.
1
// Include files
2
3
// local
4
#include "
L1Trigger/RPCTechnicalTrigger/interface/RBCTestLogic.h
"
5
6
//-----------------------------------------------------------------------------
7
// Implementation file for class : RBCTestLogic
8
//
9
// 2008-10-13 : Andres Osorio
10
//-----------------------------------------------------------------------------
11
12
//=============================================================================
13
// Standard constructor, initializes variables
14
//=============================================================================
15
RBCTestLogic::RBCTestLogic
() {}
16
//=============================================================================
17
// Destructor
18
//=============================================================================
19
RBCTestLogic::~RBCTestLogic
() {}
20
21
//=============================================================================
22
void
RBCTestLogic::process
(
const
RBCInput
& _input, std::bitset<2>& _decision) {
23
std::cout
<<
"RBCTestLogic> Implementing just a plain OR"
<<
'\n'
;
24
25
std::bitset<15> _data[2];
26
27
_data[0] = _input.
input_sec
[0];
28
_data[1] = _input.
input_sec
[1];
29
30
bool
_ds =
true
;
31
for
(
int
i
= 0;
i
< 15; ++
i
)
32
_ds = _ds | _data[0][
i
];
33
_decision.set(0, _ds);
34
35
_ds =
true
;
36
for
(
int
i
= 0;
i
< 15; ++
i
)
37
_ds = _ds | _data[1][
i
];
38
_decision.set(1, _ds);
39
40
//...Layer information:
41
for
(
int
k
= 0;
k
< 6; ++
k
) {
42
m_testlayer
[0].set(
k
,
true
);
43
m_testlayer
[1].set(
k
,
false
);
44
}
45
46
//....
47
}
48
49
void
RBCTestLogic::setBoardSpecs
(
const
RBCBoardSpecs::RBCBoardConfig
&
specs
) {}
mps_fire.i
i
Definition:
mps_fire.py:428
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
HistogramManager_cfi.specs
specs
Definition:
HistogramManager_cfi.py:83
RBCTestLogic::m_testlayer
std::bitset< 6 > m_testlayer[2]
Definition:
RBCTestLogic.h:32
RBCTestLogic::RBCTestLogic
RBCTestLogic()
Standard constructor.
Definition:
RBCTestLogic.cc:15
RBCInput::input_sec
std::array< std::bitset< 15 >, 2 > input_sec
Definition:
RBCInput.h:41
RBCTestLogic.h
dqmdumpme.k
k
Definition:
dqmdumpme.py:60
RBCTestLogic::~RBCTestLogic
~RBCTestLogic() override
Destructor.
Definition:
RBCTestLogic.cc:19
RBCTestLogic::process
void process(const RBCInput &, std::bitset< 2 > &) override
Definition:
RBCTestLogic.cc:22
RBCBoardSpecs::RBCBoardConfig
Definition:
RBCBoardSpecs.h:22
RBCTestLogic::setBoardSpecs
void setBoardSpecs(const RBCBoardSpecs::RBCBoardConfig &) override
Definition:
RBCTestLogic.cc:49
RBCInput
Definition:
RBCInput.h:22
Generated for CMSSW Reference Manual by
1.8.16