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