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::TTUSectorORLogic ( )

Standard constructor.

Definition at line 15 of file TTUSectorORLogic.cc.

References m_debug, m_maxsectors, and TTULogic::m_triggersignal.

15  {
16  m_triggersignal = false;
17 
18  m_maxsectors = 12;
19 
20  m_debug = false;
21 }
bool m_triggersignal
Definition: TTULogic.h:30

◆ ~TTUSectorORLogic()

TTUSectorORLogic::~TTUSectorORLogic ( )
override

Destructor.

Definition at line 25 of file TTUSectorORLogic.cc.

25 {}

Member Function Documentation

◆ process()

bool TTUSectorORLogic::process ( const TTUInput inmap)
overridevirtual

Implements TTULogic.

Definition at line 30 of file TTUSectorORLogic.cc.

References gather_cfg::cout, mps_fire::i, caHitNtupletGeneratorKernels::if(), m_debug, m_maxsectors, TTUInput::m_rbcDecision, and TTULogic::m_triggersignal.

Referenced by TTUTwoORLogic::process().

30  {
31  if (m_debug)
32  std::cout << "TTUSectorORLogic::process starts" << std::endl;
33 
34  m_triggersignal = false;
35 
36  for (int i = 0; i < m_maxsectors; ++i)
38 
39  if (m_debug)
40  std::cout << "TTUSectorORLogic " << m_triggersignal << std::endl;
41 
42  if (m_debug)
43  std::cout << "TTUSectorORLogic>process ends" << std::endl;
44 
45  return true;
46 }
std::bitset< 12 > m_rbcDecision
Definition: TTUInput.h:37
bool m_triggersignal
Definition: TTULogic.h:30

◆ setBoardSpecs()

void TTUSectorORLogic::setBoardSpecs ( const TTUBoardSpecs::TTUBoardConfig boardspecs)
overridevirtual

Implements TTULogic.

Definition at line 28 of file TTUSectorORLogic.cc.

Referenced by TTUTwoORLogic::setBoardSpecs().

28 {}

Member Data Documentation

◆ m_debug

bool TTUSectorORLogic::m_debug
private

Definition at line 34 of file TTUSectorORLogic.h.

Referenced by process(), and TTUSectorORLogic().

◆ m_maxsectors

int TTUSectorORLogic::m_maxsectors
private

Definition at line 36 of file TTUSectorORLogic.h.

Referenced by process(), and TTUSectorORLogic().