CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 &) 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 18 of file TTUTwoORLogic.cc.

18 : m_ttuLogic{}, m_rbcLogic{}, m_debug{false} { m_triggersignal = false; }
TTUTrackingAlg m_ttuLogic
Definition: TTUTwoORLogic.h:37
TTUSectorORLogic m_rbcLogic
Definition: TTUTwoORLogic.h:39
bool m_triggersignal
Definition: TTULogic.h:30

Member Function Documentation

bool TTUTwoORLogic::process ( const TTUInput inmap)
overridevirtual

Implements TTULogic.

Definition at line 28 of file TTUTwoORLogic.cc.

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

28  {
29  if (m_debug)
30  std::cout << "TTUTwoORLogic::process starts" << std::endl;
31 
32  m_triggersignal = false;
33 
34  m_ttuLogic.process(inmap);
35  m_rbcLogic.process(inmap);
36 
37  bool triggerFromTTU = m_ttuLogic.m_triggersignal;
38 
39  bool triggerFromRBC = m_rbcLogic.m_triggersignal;
40 
41  m_triggersignal = triggerFromTTU || triggerFromRBC;
42 
43  if (m_debug)
44  std::cout << "TTUTwoORLogic>process ends" << std::endl;
45 
46  return true;
47 }
TTUTrackingAlg m_ttuLogic
Definition: TTUTwoORLogic.h:37
TTUSectorORLogic m_rbcLogic
Definition: TTUTwoORLogic.h:39
bool process(const TTUInput &) override
bool process(const TTUInput &) override
bool m_triggersignal
Definition: TTULogic.h:30
tuple cout
Definition: gather_cfg.py:144
void TTUTwoORLogic::setBoardSpecs ( const TTUBoardSpecs::TTUBoardConfig boardspecs)
overridevirtual

Implements TTULogic.

Definition at line 22 of file TTUTwoORLogic.cc.

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

22  {
23  m_ttuLogic.setBoardSpecs(boardspecs);
24 
25  m_rbcLogic.setBoardSpecs(boardspecs);
26 }
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override
TTUTrackingAlg m_ttuLogic
Definition: TTUTwoORLogic.h:37
TTUSectorORLogic m_rbcLogic
Definition: TTUTwoORLogic.h:39
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override

Member Data Documentation

bool TTUTwoORLogic::m_debug
private

Definition at line 41 of file TTUTwoORLogic.h.

Referenced by process().

TTUSectorORLogic TTUTwoORLogic::m_rbcLogic
private

Definition at line 39 of file TTUTwoORLogic.h.

Referenced by process(), and setBoardSpecs().

TTUTrackingAlg TTUTwoORLogic::m_ttuLogic
private

Definition at line 37 of file TTUTwoORLogic.h.

Referenced by process(), and setBoardSpecs().