L1Trigger
RPCTechnicalTrigger
src
TTULogicUnit.cc
Go to the documentation of this file.
1
// Include files
2
3
// local
4
#include "
L1Trigger/RPCTechnicalTrigger/interface/TTULogicUnit.h
"
5
6
//-----------------------------------------------------------------------------
7
// Implementation file for class : TTULogicUnit
8
//
9
// 2008-10-25 : Andres Osorio
10
//-----------------------------------------------------------------------------
11
12
//=============================================================================
13
// Standard constructor, initializes variables
14
//=============================================================================
15
TTULogicUnit::TTULogicUnit
() :
RPCLogicUnit
() {
m_debug
=
false
; }
16
17
TTULogicUnit::TTULogicUnit
(
const
char
* logic_type) :
RPCLogicUnit
() {
18
m_logtype
=
std::string
(logic_type);
19
m_debug
=
false
;
20
}
21
22
//=============================================================================
23
bool
TTULogicUnit::initialise
() {
24
LogicTool<TTULogic>
logtool;
25
m_logic
= logtool.
retrieve
(
m_logtype
);
26
27
if
(!
m_logic
) {
28
if
(
m_debug
)
29
std::cout
<<
"TTULogicUnit> No logic found \n"
;
30
return
false
;
31
};
32
33
return
true
;
34
}
35
36
void
TTULogicUnit::setlogic
(
const
char
* logic) {
m_logtype
=
std::string
(logic); }
37
38
void
TTULogicUnit::setBoardSpecs
(
const
TTUBoardSpecs::TTUBoardConfig
& boardSpcs) {
m_logic
->setBoardSpecs(boardSpcs); }
39
40
void
TTULogicUnit::run
(
const
TTUInput
&
input
) {
41
//... check the thresholds
42
43
//... by Sector
44
45
//... by Tower
46
47
//... by Wheel
48
49
m_logic
->process(
input
);
50
51
//m_logic->m_triggersignal = false;
52
}
53
54
void
TTULogicUnit::run
(
const
TTUInput
&
input
,
int
option
) {
55
m_logic
->setOption(
option
);
56
m_logic
->process(
input
);
57
58
//m_logic->m_triggersignal = false;
59
}
TTULogicUnit::m_logic
std::unique_ptr< TTULogic > m_logic
Definition:
TTULogicUnit.h:44
input
static const std::string input
Definition:
EdmProvDump.cc:48
TTULogicUnit::TTULogicUnit
TTULogicUnit()
Standard constructor.
Definition:
TTULogicUnit.cc:15
TTULogicUnit::m_debug
bool m_debug
Definition:
TTULogicUnit.h:46
gather_cfg.cout
cout
Definition:
gather_cfg.py:144
RPCLogicUnit
Definition:
RPCLogicUnit.h:13
TTULogicUnit::run
void run(const TTUInput &)
Definition:
TTULogicUnit.cc:40
TTULogicUnit::m_logtype
std::string m_logtype
Definition:
TTULogicUnit.h:38
fileinputsource_cfi.option
option
Definition:
fileinputsource_cfi.py:94
TTULogicUnit.h
LogicTool
Definition:
LogicTool.h:22
TTULogicUnit::setlogic
void setlogic(const char *)
Definition:
TTULogicUnit.cc:36
TTUInput
Definition:
TTUInput.h:18
TTUBoardSpecs::TTUBoardConfig
Definition:
TTUBoardSpecs.h:25
TTULogicUnit::initialise
bool initialise()
Definition:
TTULogicUnit.cc:23
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
LogicTool::retrieve
std::unique_ptr< GenLogic > retrieve(const std::string &_logic_name)
...
Definition:
LogicTool.h:29
TTULogicUnit::setBoardSpecs
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &)
Definition:
TTULogicUnit.cc:38
Generated for CMSSW Reference Manual by
1.8.16