#include <interface/TTUSectorORLogic.h>
Public Member Functions | |
bool | process (const TTUInput &) |
void | setBoardSpecs (const TTUBoardSpecs::TTUBoardConfig &) |
TTUSectorORLogic () | |
Standard constructor. | |
virtual | ~TTUSectorORLogic () |
Destructor. | |
Private Attributes | |
bool | m_debug |
int | m_maxsectors |
Definition at line 18 of file TTUSectorORLogic.h.
TTUSectorORLogic::TTUSectorORLogic | ( | ) |
Standard constructor.
Definition at line 18 of file TTUSectorORLogic.cc.
References m_debug, m_maxsectors, and TTULogic::m_triggersignal.
{ m_triggersignal = false; m_maxsectors = 12; m_debug = false; }
TTUSectorORLogic::~TTUSectorORLogic | ( | ) | [virtual] |
bool TTUSectorORLogic::process | ( | const TTUInput & | inmap | ) | [virtual] |
Implements TTULogic.
Definition at line 39 of file TTUSectorORLogic.cc.
References gather_cfg::cout, i, m_debug, m_maxsectors, TTUInput::m_rbcDecision, and TTULogic::m_triggersignal.
Referenced by TTUTwoORLogic::process().
{ if( m_debug) std::cout << "TTUSectorORLogic::process starts" << std::endl; m_triggersignal = false; for(int i=0; i < m_maxsectors; ++i) m_triggersignal |= inmap.m_rbcDecision[i]; if( m_debug ) std::cout << "TTUSectorORLogic " << m_triggersignal << std::endl; if( m_debug ) std::cout << "TTUSectorORLogic>process ends" << std::endl; return true; }
void TTUSectorORLogic::setBoardSpecs | ( | const TTUBoardSpecs::TTUBoardConfig & | boardspecs | ) | [virtual] |
Implements TTULogic.
Definition at line 33 of file TTUSectorORLogic.cc.
Referenced by TTUTwoORLogic::setBoardSpecs().
{ }
bool TTUSectorORLogic::m_debug [private] |
Definition at line 37 of file TTUSectorORLogic.h.
Referenced by process(), and TTUSectorORLogic().
int TTUSectorORLogic::m_maxsectors [private] |
Definition at line 39 of file TTUSectorORLogic.h.
Referenced by process(), and TTUSectorORLogic().