CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TTULogicUnit.cc
Go to the documentation of this file.
1 // Include files
2 
3 // local
5 
6 //-----------------------------------------------------------------------------
7 // Implementation file for class : TTULogicUnit
8 //
9 // 2008-10-25 : Andres Osorio
10 //-----------------------------------------------------------------------------
11 
12 //=============================================================================
13 // Standard constructor, initializes variables
14 //=============================================================================
16 
17 TTULogicUnit::TTULogicUnit(const char* logic_type) : RPCLogicUnit() {
18  m_logtype = std::string(logic_type);
19  m_debug = false;
20 }
21 
22 //=============================================================================
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 
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 }
std::string m_logtype
Definition: TTULogicUnit.h:38
static std::string const input
Definition: EdmProvDump.cc:47
bool initialise()
Definition: TTULogicUnit.cc:23
void run(const TTUInput &)
Definition: TTULogicUnit.cc:40
std::unique_ptr< TTULogic > m_logic
Definition: TTULogicUnit.h:44
void setlogic(const char *)
Definition: TTULogicUnit.cc:36
TTULogicUnit()
Standard constructor.
Definition: TTULogicUnit.cc:15
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &)
Definition: TTULogicUnit.cc:38
tuple cout
Definition: gather_cfg.py:144
std::unique_ptr< GenLogic > retrieve(const std::string &_logic_name)
...
Definition: LogicTool.h:29