CMS 3D CMS Logo

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 &) override
 
void setBoardSpecs (const TTUBoardSpecs::TTUBoardConfig &) override
 
 TTUTwoORLogic ()
 Standard constructor. More...
 
- Public Member Functions inherited from TTULogic
virtual void setOption (int option)
 
virtual ~TTULogic ()
 

Private Attributes

bool m_debug
 
TTUSectorORLogic m_rbcLogic
 
TTUTrackingAlg m_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 22 of file TTUTwoORLogic.h.

Constructor & Destructor Documentation

TTUTwoORLogic::TTUTwoORLogic ( )

Standard constructor.

Definition at line 20 of file TTUTwoORLogic.cc.

References m_debug, m_rbcLogic, and TTULogic::m_triggersignal.

20  :
21  m_ttuLogic{},
22  m_rbcLogic{},
23  m_debug{false}
24  {
25 
26  m_triggersignal = false;
27 
28 }
TTUTrackingAlg m_ttuLogic
Definition: TTUTwoORLogic.h:40
TTUSectorORLogic m_rbcLogic
Definition: TTUTwoORLogic.h:42
bool m_triggersignal
Definition: TTULogic.h:34

Member Function Documentation

bool TTUTwoORLogic::process ( const TTUInput inmap)
overridevirtual

Implements TTULogic.

Definition at line 41 of file TTUTwoORLogic.cc.

References gather_cfg::cout, m_debug, m_rbcLogic, TTULogic::m_triggersignal, m_ttuLogic, TTUSectorORLogic::process(), and TTUTrackingAlg::process().

42 {
43 
44  if( m_debug) std::cout << "TTUTwoORLogic::process starts" << std::endl;
45 
46  m_triggersignal = false;
47 
48 
49  m_ttuLogic.process( inmap );
50  m_rbcLogic.process( inmap );
51 
52  bool triggerFromTTU = m_ttuLogic.m_triggersignal;
53 
54  bool triggerFromRBC = m_rbcLogic.m_triggersignal;
55 
56  m_triggersignal = triggerFromTTU || triggerFromRBC;
57 
58  if( m_debug ) std::cout << "TTUTwoORLogic>process ends" << std::endl;
59 
60  return true;
61 
62 }
TTUTrackingAlg m_ttuLogic
Definition: TTUTwoORLogic.h:40
TTUSectorORLogic m_rbcLogic
Definition: TTUTwoORLogic.h:42
bool process(const TTUInput &) override
bool process(const TTUInput &) override
bool m_triggersignal
Definition: TTULogic.h:34
void TTUTwoORLogic::setBoardSpecs ( const TTUBoardSpecs::TTUBoardConfig boardspecs)
overridevirtual

Implements TTULogic.

Definition at line 32 of file TTUTwoORLogic.cc.

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

33 {
34 
35  m_ttuLogic.setBoardSpecs( boardspecs );
36 
37  m_rbcLogic.setBoardSpecs( boardspecs );
38 
39 }
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override
TTUTrackingAlg m_ttuLogic
Definition: TTUTwoORLogic.h:40
TTUSectorORLogic m_rbcLogic
Definition: TTUTwoORLogic.h:42
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override

Member Data Documentation

bool TTUTwoORLogic::m_debug
private

Definition at line 44 of file TTUTwoORLogic.h.

Referenced by process(), and TTUTwoORLogic().

TTUSectorORLogic TTUTwoORLogic::m_rbcLogic
private

Definition at line 42 of file TTUTwoORLogic.h.

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

TTUTrackingAlg TTUTwoORLogic::m_ttuLogic
private

Definition at line 40 of file TTUTwoORLogic.h.

Referenced by process(), and setBoardSpecs().