#include <interface/TTUTwoORLogic.h>
Public Member Functions | |
bool | process (const TTUInput &) |
void | setBoardSpecs (const TTUBoardSpecs::TTUBoardConfig &) |
TTUTwoORLogic () | |
Standard constructor. | |
virtual | ~TTUTwoORLogic () |
Destructor. | |
Private Attributes | |
bool | m_debug |
TTUSectorORLogic * | m_rbcLogic |
TTUTrackingAlg * | m_ttuLogic |
Definition at line 23 of file TTUTwoORLogic.h.
TTUTwoORLogic::TTUTwoORLogic | ( | ) |
Standard constructor.
Definition at line 21 of file TTUTwoORLogic.cc.
References m_debug, m_rbcLogic, TTULogic::m_triggersignal, and m_ttuLogic.
{ m_triggersignal = false; m_debug = false; m_ttuLogic = new TTUTrackingAlg(); m_rbcLogic = new TTUSectorORLogic(); }
TTUTwoORLogic::~TTUTwoORLogic | ( | ) | [virtual] |
Destructor.
Definition at line 35 of file TTUTwoORLogic.cc.
References m_rbcLogic, and m_ttuLogic.
{ if ( m_ttuLogic ) delete m_ttuLogic; if ( m_rbcLogic ) delete m_rbcLogic; }
bool TTUTwoORLogic::process | ( | const TTUInput & | inmap | ) | [virtual] |
Implements TTULogic.
Definition at line 54 of file TTUTwoORLogic.cc.
References gather_cfg::cout, m_debug, m_rbcLogic, TTULogic::m_triggersignal, m_ttuLogic, TTUSectorORLogic::process(), and TTUTrackingAlg::process().
{ if( m_debug) std::cout << "TTUTwoORLogic::process starts" << std::endl; m_triggersignal = false; m_ttuLogic->process( inmap ); m_rbcLogic->process( inmap ); bool triggerFromTTU = m_ttuLogic->m_triggersignal; bool triggerFromRBC = m_rbcLogic->m_triggersignal; m_triggersignal = triggerFromTTU || triggerFromRBC; if( m_debug ) std::cout << "TTUTwoORLogic>process ends" << std::endl; return true; }
void TTUTwoORLogic::setBoardSpecs | ( | const TTUBoardSpecs::TTUBoardConfig & | boardspecs | ) | [virtual] |
Implements TTULogic.
Definition at line 45 of file TTUTwoORLogic.cc.
References m_rbcLogic, m_ttuLogic, TTUTrackingAlg::setBoardSpecs(), and TTUSectorORLogic::setBoardSpecs().
{ m_ttuLogic->setBoardSpecs( boardspecs ); m_rbcLogic->setBoardSpecs( boardspecs ); }
bool TTUTwoORLogic::m_debug [private] |
Definition at line 42 of file TTUTwoORLogic.h.
Referenced by process(), and TTUTwoORLogic().
TTUSectorORLogic* TTUTwoORLogic::m_rbcLogic [private] |
Definition at line 46 of file TTUTwoORLogic.h.
Referenced by process(), setBoardSpecs(), TTUTwoORLogic(), and ~TTUTwoORLogic().
TTUTrackingAlg* TTUTwoORLogic::m_ttuLogic [private] |
Definition at line 44 of file TTUTwoORLogic.h.
Referenced by process(), setBoardSpecs(), TTUTwoORLogic(), and ~TTUTwoORLogic().