CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TTUTwoORLogic.cc
Go to the documentation of this file.
1 // Include files
2 
3 
4 
5 // local
7 
8 //-----------------------------------------------------------------------------
9 // Implementation file for class : TTUTwoORLogic
10 //
11 // This logic implements the OR of the two logics TTU or RBC
12 //
13 //
14 // 2009-06-15 : Andres Felipe Osorio Oliveros
15 //-----------------------------------------------------------------------------
16 
17 //=============================================================================
18 // Standard constructor, initializes variables
19 //=============================================================================
21 
22  m_triggersignal = false;
23 
24  m_debug = false;
25 
26  m_ttuLogic = new TTUTrackingAlg();
27 
29 
30 }
31 //=============================================================================
32 // Destructor
33 //=============================================================================
35 
36  if ( m_ttuLogic ) delete m_ttuLogic;
37 
38  if ( m_rbcLogic ) delete m_rbcLogic;
39 
40 }
41 
42 //=============================================================================
43 
45 {
46 
47  m_ttuLogic->setBoardSpecs( boardspecs );
48 
49  m_rbcLogic->setBoardSpecs( boardspecs );
50 
51 }
52 
53 bool TTUTwoORLogic::process( const TTUInput & inmap )
54 {
55 
56  if( m_debug) std::cout << "TTUTwoORLogic::process starts" << std::endl;
57 
58  m_triggersignal = false;
59 
60 
61  m_ttuLogic->process( inmap );
62  m_rbcLogic->process( inmap );
63 
64  bool triggerFromTTU = m_ttuLogic->m_triggersignal;
65 
66  bool triggerFromRBC = m_rbcLogic->m_triggersignal;
67 
68  m_triggersignal = triggerFromTTU || triggerFromRBC;
69 
70  if( m_debug ) std::cout << "TTUTwoORLogic>process ends" << std::endl;
71 
72  return true;
73 
74 }
75 
TTUTwoORLogic()
Standard constructor.
bool process(const TTUInput &)
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &)
bool process(const TTUInput &)
bool process(const TTUInput &)
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &)
bool m_triggersignal
Definition: TTULogic.h:34
TTUTrackingAlg * m_ttuLogic
Definition: TTUTwoORLogic.h:43
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &)
tuple cout
Definition: gather_cfg.py:121
TTUSectorORLogic * m_rbcLogic
Definition: TTUTwoORLogic.h:45
virtual ~TTUTwoORLogic()
Destructor.