CMS 3D CMS Logo

Public Member Functions | Private Attributes

TTUTwoORLogic Class Reference

#include <interface/TTUTwoORLogic.h>

Inheritance diagram for TTUTwoORLogic:
TTULogic

List of all members.

Public Member Functions

bool process (const TTUInput &)
void setBoardSpecs (const TTUBoardSpecs::TTUBoardConfig &)
 TTUTwoORLogic ()
 Standard constructor.
virtual ~TTUTwoORLogic ()
 Destructor.

Private Attributes

bool m_debug
TTUSectorORLogicm_rbcLogic
TTUTrackingAlgm_ttuLogic

Detailed Description

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

Definition at line 23 of file TTUTwoORLogic.h.


Constructor & Destructor Documentation

TTUTwoORLogic::TTUTwoORLogic ( )

Standard constructor.

Definition at line 21 of file TTUTwoORLogic.cc.

References m_debug, m_rbcLogic, TTULogic::m_triggersignal, and m_ttuLogic.

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;
  
} 

Member Function Documentation

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 );
  
}

Member Data Documentation

bool TTUTwoORLogic::m_debug [private]

Definition at line 42 of file TTUTwoORLogic.h.

Referenced by process(), and TTUTwoORLogic().

Definition at line 46 of file TTUTwoORLogic.h.

Referenced by process(), setBoardSpecs(), TTUTwoORLogic(), and ~TTUTwoORLogic().

Definition at line 44 of file TTUTwoORLogic.h.

Referenced by process(), setBoardSpecs(), TTUTwoORLogic(), and ~TTUTwoORLogic().