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 }
TTUTwoORLogic::m_ttuLogic
TTUTrackingAlg m_ttuLogic
Definition: TTUTwoORLogic.h:37
TTUSectorORLogic::process
bool process(const TTUInput &) override
Definition: TTUSectorORLogic.cc:30
gather_cfg.cout
cout
Definition: gather_cfg.py:144
TTUTwoORLogic::TTUTwoORLogic
TTUTwoORLogic()
Standard constructor.
Definition: TTUTwoORLogic.cc:18
TTUTwoORLogic::m_debug
bool m_debug
Definition: TTUTwoORLogic.h:41
TTUTrackingAlg::setBoardSpecs
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override
Definition: TTUTrackingAlg.cc:38
TTUTwoORLogic::process
bool process(const TTUInput &) override
Definition: TTUTwoORLogic.cc:28
TTUInput
Definition: TTUInput.h:18
TTUSectorORLogic::setBoardSpecs
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override
Definition: TTUSectorORLogic.cc:28
TTUBoardSpecs::TTUBoardConfig
Definition: TTUBoardSpecs.h:25
TTUTwoORLogic::m_rbcLogic
TTUSectorORLogic m_rbcLogic
Definition: TTUTwoORLogic.h:39
TTULogic::m_triggersignal
bool m_triggersignal
Definition: TTULogic.h:30
TTUTwoORLogic::setBoardSpecs
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override
Definition: TTUTwoORLogic.cc:22
TTUTrackingAlg::process
bool process(const TTUInput &) override
Definition: TTUTrackingAlg.cc:42
TTUTwoORLogic.h