CMS 3D CMS Logo

Public Member Functions | Private Attributes

TTUSectorORLogic Class Reference

#include <interface/TTUSectorORLogic.h>

Inheritance diagram for TTUSectorORLogic:
TTULogic

List of all members.

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

Detailed Description

Author:
Andres Felipe Osorio Oliveros
Date:
2009-06-15

Definition at line 18 of file TTUSectorORLogic.h.


Constructor & Destructor Documentation

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]

Destructor.

Definition at line 30 of file TTUSectorORLogic.cc.

{} 

Member Function Documentation

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().

{
  
  
}

Member Data Documentation

bool TTUSectorORLogic::m_debug [private]

Definition at line 37 of file TTUSectorORLogic.h.

Referenced by process(), and TTUSectorORLogic().

Definition at line 39 of file TTUSectorORLogic.h.

Referenced by process(), and TTUSectorORLogic().