CMS 3D CMS Logo

TTULogicUnit.cc
Go to the documentation of this file.
1 // Include files
2 
3 
4 
5 // local
7 
8 //-----------------------------------------------------------------------------
9 // Implementation file for class : TTULogicUnit
10 //
11 // 2008-10-25 : Andres Osorio
12 //-----------------------------------------------------------------------------
13 
14 //=============================================================================
15 // Standard constructor, initializes variables
16 //=============================================================================
18 
19  m_debug = false;
20 
21 }
22 
23 TTULogicUnit::TTULogicUnit( const char * logic_type ) : RPCLogicUnit () {
24 
25  m_logtype = std::string( logic_type );
26  m_debug = false;
27 
28 }
29 
30 //=============================================================================
32 {
33 
34  LogicTool<TTULogic> logtool;
35  m_logic = logtool.retrieve(m_logtype);
36 
37  if ( ! m_logic ) {
38  if( m_debug ) std::cout << "TTULogicUnit> No logic found \n";
39  return false; };
40 
41  return true;
42 
43 }
44 
45 void TTULogicUnit::setlogic( const char * logic )
46 {
47 
48  m_logtype = std::string( logic );
49 
50 }
51 
53 {
54 
55  m_logic->setBoardSpecs ( boardSpcs );
56 
57 }
58 
60 {
61 
62  //... check the thresholds
63 
64  //... by Sector
65 
66  //... by Tower
67 
68  //... by Wheel
69 
70  m_logic->process( input );
71 
72  //m_logic->m_triggersignal = false;
73 
74 
75 }
76 
77 void TTULogicUnit::run( const TTUInput & input , int option )
78 {
79 
80  m_logic->setOption( option );
81  m_logic->process( input );
82 
83  //m_logic->m_triggersignal = false;
84 
85 }
std::string m_logtype
Definition: TTULogicUnit.h:40
static std::string const input
Definition: EdmProvDump.cc:48
bool initialise()
Definition: TTULogicUnit.cc:31
void run(const TTUInput &)
Definition: TTULogicUnit.cc:59
std::unique_ptr< TTULogic > m_logic
Definition: TTULogicUnit.h:48
void setlogic(const char *)
Definition: TTULogicUnit.cc:45
TTULogicUnit()
Standard constructor.
Definition: TTULogicUnit.cc:17
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &)
Definition: TTULogicUnit.cc:52
std::unique_ptr< GenLogic > retrieve(const std::string &_logic_name)
...
Definition: LogicTool.h:29