CMS 3D CMS Logo

Public Member Functions | Private Attributes

RBCPatternLogic Class Reference

#include <RBCPatternLogic.h>

Inheritance diagram for RBCPatternLogic:
RBCLogic

List of all members.

Public Member Functions

std::bitset< 6 > * getlayersignal (int _idx)
void process (const RBCInput &, std::bitset< 2 > &)
 RBCPatternLogic ()
 Standard constructor.
void setBoardSpecs (const RBCBoardSpecs::RBCBoardConfig &)
virtual ~RBCPatternLogic ()
 Destructor.

Private Attributes

std::bitset< 6 > m_testlayer [2]

Detailed Description

Author:
Andres Osorio

email: aosorio@uniandes.edu.co

Date:
2008-10-15

Definition at line 20 of file RBCPatternLogic.h.


Constructor & Destructor Documentation

RBCPatternLogic::RBCPatternLogic ( )

Standard constructor.

Definition at line 18 of file RBCPatternLogic.cc.

                                   {

}
RBCPatternLogic::~RBCPatternLogic ( ) [virtual]

Destructor.

Definition at line 24 of file RBCPatternLogic.cc.

{} 

Member Function Documentation

std::bitset<6>* RBCPatternLogic::getlayersignal ( int  _idx) [inline, virtual]

Implements RBCLogic.

Definition at line 31 of file RBCPatternLogic.h.

{ return &m_testlayer[_idx];};
void RBCPatternLogic::process ( const RBCInput _input,
std::bitset< 2 > &  _decision 
) [virtual]

Implements RBCLogic.

Definition at line 28 of file RBCPatternLogic.cc.

References gather_cfg::cout, gen::k, and m_testlayer.

{
  std::cout << "RBCPatternLogic> Working with pattern logic" << '\n';
  
  _decision.set(0,1);
  _decision.set(1,1);
  
  //...Layer information:
  for(int k=0; k < 6; ++k) {
    m_testlayer[0].set(k,1);
    m_testlayer[1].set(k,0);
  }
  

  //....


}
void RBCPatternLogic::setBoardSpecs ( const RBCBoardSpecs::RBCBoardConfig specs) [virtual]

Implements RBCLogic.

Definition at line 47 of file RBCPatternLogic.cc.

{
  
  
  
  
  
}

Member Data Documentation

std::bitset<6> RBCPatternLogic::m_testlayer[2] [private]

Definition at line 31 of file RBCPatternLogic.h.

Referenced by process().