CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 &)
 
void setBoardSpecs (const TTUBoardSpecs::TTUBoardConfig &)
 
 TTUTwoORLogic ()
 Standard constructor. More...
 
virtual ~TTUTwoORLogic ()
 Destructor. More...
 
- Public Member Functions inherited from TTULogic
virtual void setOption (int option)
 
virtual ~TTULogic ()
 

Private Attributes

bool m_debug
 
TTUSectorORLogicm_rbcLogic
 
TTUTrackingAlgm_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 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.

21  {
22 
23  m_triggersignal = false;
24 
25  m_debug = false;
26 
27  m_ttuLogic = new TTUTrackingAlg();
28 
30 
31 }
bool m_triggersignal
Definition: TTULogic.h:35
TTUTrackingAlg * m_ttuLogic
Definition: TTUTwoORLogic.h:44
TTUSectorORLogic * m_rbcLogic
Definition: TTUTwoORLogic.h:46
TTUTwoORLogic::~TTUTwoORLogic ( )
virtual

Destructor.

Definition at line 35 of file TTUTwoORLogic.cc.

References m_rbcLogic, and m_ttuLogic.

35  {
36 
37  if ( m_ttuLogic ) delete m_ttuLogic;
38 
39  if ( m_rbcLogic ) delete m_rbcLogic;
40 
41 }
TTUTrackingAlg * m_ttuLogic
Definition: TTUTwoORLogic.h:44
TTUSectorORLogic * m_rbcLogic
Definition: TTUTwoORLogic.h:46

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

Referenced by ConfigBuilder.ConfigBuilder.PrintAllModules::leave().

55 {
56 
57  if( m_debug) std::cout << "TTUTwoORLogic::process starts" << std::endl;
58 
59  m_triggersignal = false;
60 
61 
62  m_ttuLogic->process( inmap );
63  m_rbcLogic->process( inmap );
64 
65  bool triggerFromTTU = m_ttuLogic->m_triggersignal;
66 
67  bool triggerFromRBC = m_rbcLogic->m_triggersignal;
68 
69  m_triggersignal = triggerFromTTU || triggerFromRBC;
70 
71  if( m_debug ) std::cout << "TTUTwoORLogic>process ends" << std::endl;
72 
73  return true;
74 
75 }
bool process(const TTUInput &)
bool process(const TTUInput &)
bool m_triggersignal
Definition: TTULogic.h:35
TTUTrackingAlg * m_ttuLogic
Definition: TTUTwoORLogic.h:44
tuple cout
Definition: gather_cfg.py:121
TTUSectorORLogic * m_rbcLogic
Definition: TTUTwoORLogic.h:46
void TTUTwoORLogic::setBoardSpecs ( const TTUBoardSpecs::TTUBoardConfig boardspecs)
virtual

Implements TTULogic.

Definition at line 45 of file TTUTwoORLogic.cc.

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

46 {
47 
48  m_ttuLogic->setBoardSpecs( boardspecs );
49 
50  m_rbcLogic->setBoardSpecs( boardspecs );
51 
52 }
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &)
TTUTrackingAlg * m_ttuLogic
Definition: TTUTwoORLogic.h:44
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &)
TTUSectorORLogic * m_rbcLogic
Definition: TTUTwoORLogic.h:46

Member Data Documentation

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