L1Trigger
RPCTechnicalTrigger
src
RBCLogicUnit.cc
Go to the documentation of this file.
1
// Include files
2
3
// local
4
#include "
L1Trigger/RPCTechnicalTrigger/interface/RBCLogicUnit.h
"
5
6
//-----------------------------------------------------------------------------
7
// Implementation file for class : RBCLogicUnit
8
//
9
// 2008-10-25 : Andres Osorio
10
//-----------------------------------------------------------------------------
11
12
//=============================================================================
13
// Standard constructor, initializes variables
14
//=============================================================================
15
RBCLogicUnit::RBCLogicUnit
() :
RPCLogicUnit
(), m_debug{
false
} {}
16
17
RBCLogicUnit::RBCLogicUnit
(
const
char
* logic_type) :
RPCLogicUnit
(), m_logtype{logic_type}, m_debug{
false
} {}
18
//=============================================================================
19
// Destructor
20
//=============================================================================
21
RBCLogicUnit::~RBCLogicUnit
() {}
22
23
//=============================================================================
24
bool
RBCLogicUnit::initialise
() {
25
LogicTool<RBCLogic>
logtool;
26
27
m_logic
= logtool.
retrieve
(
m_logtype
);
28
29
if
(!
m_logic
) {
30
if
(
m_debug
)
31
std::cout
<<
"RBCLogicUnit> No logic found \n"
;
32
return
false
;
33
};
34
35
return
true
;
36
}
37
38
void
RBCLogicUnit::setlogic
(
const
char
* _logic) {
m_logtype
=
std::string
(_logic); }
39
40
void
RBCLogicUnit::setBoardSpecs
(
const
RBCBoardSpecs::RBCBoardConfig
&
specs
) {
m_logic
->setBoardSpecs(
specs
); }
41
42
void
RBCLogicUnit::run
(
const
RBCInput
& _input, std::bitset<2>& _decision) {
43
m_logic
->process(_input, _decision);
44
m_layersignal
[0] =
m_logic
->getlayersignal(0);
45
m_layersignal
[1] =
m_logic
->getlayersignal(1);
46
}
RBCLogicUnit::m_logic
std::unique_ptr< RBCLogic > m_logic
Definition:
RBCLogicUnit.h:46
RBCLogicUnit::~RBCLogicUnit
~RBCLogicUnit() override
Destructor.
Definition:
RBCLogicUnit.cc:21
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
RBCLogicUnit.h
HistogramManager_cfi.specs
specs
Definition:
HistogramManager_cfi.py:83
RPCLogicUnit
Definition:
RPCLogicUnit.h:13
RBCLogicUnit::m_layersignal
std::bitset< 6 > * m_layersignal[2]
Definition:
RBCLogicUnit.h:44
LogicTool
Definition:
LogicTool.h:22
RBCLogicUnit::initialise
bool initialise()
Definition:
RBCLogicUnit.cc:24
RBCLogicUnit::m_logtype
std::string m_logtype
Definition:
RBCLogicUnit.h:38
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
RBCLogicUnit::setBoardSpecs
void setBoardSpecs(const RBCBoardSpecs::RBCBoardConfig &)
Definition:
RBCLogicUnit.cc:40
RBCLogicUnit::RBCLogicUnit
RBCLogicUnit()
Standard constructor.
Definition:
RBCLogicUnit.cc:15
RBCLogicUnit::setlogic
void setlogic(const char *)
Definition:
RBCLogicUnit.cc:38
LogicTool::retrieve
std::unique_ptr< GenLogic > retrieve(const std::string &_logic_name)
...
Definition:
LogicTool.h:29
RBCBoardSpecs::RBCBoardConfig
Definition:
RBCBoardSpecs.h:22
RBCLogicUnit::run
void run(const RBCInput &, std::bitset< 2 > &)
Definition:
RBCLogicUnit.cc:42
RBCLogicUnit::m_debug
bool m_debug
Definition:
RBCLogicUnit.h:48
RBCInput
Definition:
RBCInput.h:22
Generated for CMSSW Reference Manual by
1.8.16