CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TTUTwoORLogic Class Reference

#include <interface/TTUTwoORLogic.h>

Inheritance diagram for TTUTwoORLogic:
TTULogic

Public Member Functions

bool process (const TTUInput &) override
 
void setBoardSpecs (const TTUBoardSpecs::TTUBoardConfig &) override
 
 TTUTwoORLogic ()
 Standard constructor. More...
 
- Public Member Functions inherited from TTULogic
virtual void setOption (int option)
 
virtual ~TTULogic ()
 

Private Attributes

bool m_debug
 
TTUSectorORLogic m_rbcLogic
 
TTUTrackingAlg m_ttuLogic
 

Additional Inherited Members

- Public Attributes inherited from TTULogic
int m_option
 
bool m_triggersignal
 

Detailed Description

Author
Andres Felipe Osorio Oliveros
Date
2009-06-16

Definition at line 22 of file TTUTwoORLogic.h.

Constructor & Destructor Documentation

◆ TTUTwoORLogic()

TTUTwoORLogic::TTUTwoORLogic ( )

Standard constructor.

Definition at line 18 of file TTUTwoORLogic.cc.

18 : m_ttuLogic{}, m_rbcLogic{}, m_debug{false} { m_triggersignal = false; }

Member Function Documentation

◆ process()

bool TTUTwoORLogic::process ( const TTUInput inmap)
overridevirtual

Implements TTULogic.

Definition at line 28 of file TTUTwoORLogic.cc.

28  {
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 }

References gather_cfg::cout, m_debug, m_rbcLogic, TTULogic::m_triggersignal, m_ttuLogic, TTUSectorORLogic::process(), and TTUTrackingAlg::process().

◆ setBoardSpecs()

void TTUTwoORLogic::setBoardSpecs ( const TTUBoardSpecs::TTUBoardConfig boardspecs)
overridevirtual

Implements TTULogic.

Definition at line 22 of file TTUTwoORLogic.cc.

22  {
23  m_ttuLogic.setBoardSpecs(boardspecs);
24 
25  m_rbcLogic.setBoardSpecs(boardspecs);
26 }

References m_rbcLogic, m_ttuLogic, TTUSectorORLogic::setBoardSpecs(), and TTUTrackingAlg::setBoardSpecs().

Member Data Documentation

◆ m_debug

bool TTUTwoORLogic::m_debug
private

Definition at line 41 of file TTUTwoORLogic.h.

Referenced by process().

◆ m_rbcLogic

TTUSectorORLogic TTUTwoORLogic::m_rbcLogic
private

Definition at line 39 of file TTUTwoORLogic.h.

Referenced by process(), and setBoardSpecs().

◆ m_ttuLogic

TTUTrackingAlg TTUTwoORLogic::m_ttuLogic
private

Definition at line 37 of file TTUTwoORLogic.h.

Referenced by process(), and setBoardSpecs().

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::m_debug
bool m_debug
Definition: TTUTwoORLogic.h:41
TTUTrackingAlg::setBoardSpecs
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override
Definition: TTUTrackingAlg.cc:38
TTUSectorORLogic::setBoardSpecs
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override
Definition: TTUSectorORLogic.cc:28
TTUTwoORLogic::m_rbcLogic
TTUSectorORLogic m_rbcLogic
Definition: TTUTwoORLogic.h:39
TTULogic::m_triggersignal
bool m_triggersignal
Definition: TTULogic.h:30
TTUTrackingAlg::process
bool process(const TTUInput &) override
Definition: TTUTrackingAlg.cc:42