CMS 3D CMS Logo

TTUTwoORLogic.cc
Go to the documentation of this file.
1 // Include files
2 
3 // local
5 
6 //-----------------------------------------------------------------------------
7 // Implementation file for class : TTUTwoORLogic
8 //
9 // This logic implements the OR of the two logics TTU or RBC
10 //
11 //
12 // 2009-06-15 : Andres Felipe Osorio Oliveros
13 //-----------------------------------------------------------------------------
14 
15 //=============================================================================
16 // Standard constructor, initializes variables
17 //=============================================================================
18 TTUTwoORLogic::TTUTwoORLogic() : m_ttuLogic{}, m_rbcLogic{}, m_debug{false} { m_triggersignal = false; }
19 
20 //=============================================================================
21 
23  m_ttuLogic.setBoardSpecs(boardspecs);
24 
25  m_rbcLogic.setBoardSpecs(boardspecs);
26 }
27 
28 bool TTUTwoORLogic::process(const TTUInput& inmap) {
29  if (m_debug)
30  std::cout << "TTUTwoORLogic::process starts" << std::endl;
31 
32  m_triggersignal = false;
33 
34  m_ttuLogic.process(inmap);
35  m_rbcLogic.process(inmap);
36 
37  bool triggerFromTTU = m_ttuLogic.m_triggersignal;
38 
39  bool triggerFromRBC = m_rbcLogic.m_triggersignal;
40 
41  m_triggersignal = triggerFromTTU || triggerFromRBC;
42 
43  if (m_debug)
44  std::cout << "TTUTwoORLogic>process ends" << std::endl;
45 
46  return true;
47 }
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override
TTUTwoORLogic()
Standard constructor.
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override
TTUTrackingAlg m_ttuLogic
Definition: TTUTwoORLogic.h:37
TTUSectorORLogic m_rbcLogic
Definition: TTUTwoORLogic.h:39
bool process(const TTUInput &) override
bool process(const TTUInput &) override
bool process(const TTUInput &) override
bool m_triggersignal
Definition: TTULogic.h:30
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override