CMS 3D CMS Logo

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  m_ttuLogic{},
22  m_rbcLogic{},
23  m_debug{false}
24  {
25 
26  m_triggersignal = false;
27 
28 }
29 
30 //=============================================================================
31 
33 {
34 
35  m_ttuLogic.setBoardSpecs( boardspecs );
36 
37  m_rbcLogic.setBoardSpecs( boardspecs );
38 
39 }
40 
41 bool TTUTwoORLogic::process( const TTUInput & inmap )
42 {
43 
44  if( m_debug) std::cout << "TTUTwoORLogic::process starts" << std::endl;
45 
46  m_triggersignal = false;
47 
48 
49  m_ttuLogic.process( inmap );
50  m_rbcLogic.process( inmap );
51 
52  bool triggerFromTTU = m_ttuLogic.m_triggersignal;
53 
54  bool triggerFromRBC = m_rbcLogic.m_triggersignal;
55 
56  m_triggersignal = triggerFromTTU || triggerFromRBC;
57 
58  if( m_debug ) std::cout << "TTUTwoORLogic>process ends" << std::endl;
59 
60  return true;
61 
62 }
63 
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override
TTUTwoORLogic()
Standard constructor.
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override
TTUTrackingAlg m_ttuLogic
Definition: TTUTwoORLogic.h:40
TTUSectorORLogic m_rbcLogic
Definition: TTUTwoORLogic.h:42
bool process(const TTUInput &) override
bool process(const TTUInput &) override
bool process(const TTUInput &) override
bool m_triggersignal
Definition: TTULogic.h:34
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override