CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TTUSectorORLogic Class Reference

#include <interface/TTUSectorORLogic.h>

Inheritance diagram for TTUSectorORLogic:
TTULogic

Public Member Functions

bool process (const TTUInput &) override
 
void setBoardSpecs (const TTUBoardSpecs::TTUBoardConfig &) override
 
 TTUSectorORLogic ()
 Standard constructor. More...
 
 ~TTUSectorORLogic () override
 Destructor. More...
 
- Public Member Functions inherited from TTULogic
virtual void setOption (int option)
 
virtual ~TTULogic ()
 

Private Attributes

bool m_debug
 
int m_maxsectors
 

Additional Inherited Members

- Public Attributes inherited from TTULogic
int m_option
 
bool m_triggersignal
 

Detailed Description

Author
Andres Felipe Osorio Oliveros
Date
2009-06-15

Definition at line 17 of file TTUSectorORLogic.h.

Constructor & Destructor Documentation

TTUSectorORLogic::TTUSectorORLogic ( )

Standard constructor.

Definition at line 17 of file TTUSectorORLogic.cc.

References m_debug, m_maxsectors, and TTULogic::m_triggersignal.

17  {
18 
19  m_triggersignal = false;
20 
21  m_maxsectors = 12;
22 
23  m_debug = false;
24 
25 }
bool m_triggersignal
Definition: TTULogic.h:34
TTUSectorORLogic::~TTUSectorORLogic ( )
override

Destructor.

Definition at line 29 of file TTUSectorORLogic.cc.

29 {}

Member Function Documentation

bool TTUSectorORLogic::process ( const TTUInput inmap)
overridevirtual

Implements TTULogic.

Definition at line 38 of file TTUSectorORLogic.cc.

References gather_cfg::cout, mps_fire::i, m_debug, m_maxsectors, TTUInput::m_rbcDecision, and TTULogic::m_triggersignal.

Referenced by TTUTwoORLogic::process().

39 {
40 
41  if( m_debug) std::cout << "TTUSectorORLogic::process starts" << std::endl;
42 
43  m_triggersignal = false;
44 
45  for(int i=0; i < m_maxsectors; ++i)
47 
48  if( m_debug )
49  std::cout << "TTUSectorORLogic " << m_triggersignal << std::endl;
50 
51  if( m_debug ) std::cout << "TTUSectorORLogic>process ends" << std::endl;
52 
53  return true;
54 
55 }
std::bitset< 12 > m_rbcDecision
Definition: TTUInput.h:38
bool m_triggersignal
Definition: TTULogic.h:34
void TTUSectorORLogic::setBoardSpecs ( const TTUBoardSpecs::TTUBoardConfig boardspecs)
overridevirtual

Implements TTULogic.

Definition at line 32 of file TTUSectorORLogic.cc.

Referenced by TTUTwoORLogic::setBoardSpecs().

33 {
34 
35 
36 }

Member Data Documentation

bool TTUSectorORLogic::m_debug
private

Definition at line 36 of file TTUSectorORLogic.h.

Referenced by process(), and TTUSectorORLogic().

int TTUSectorORLogic::m_maxsectors
private

Definition at line 38 of file TTUSectorORLogic.h.

Referenced by process(), and TTUSectorORLogic().