CMS 3D CMS Logo

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 
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:50
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
std::unique_ptr< GenLogic > retrieve(const std::string &_logic_name)
...
Definition: LogicTool.h:29