CMS 3D CMS Logo

Public Member Functions | Private Attributes

RBCTestLogic Class Reference

#include <RBCTestLogic.h>

Inheritance diagram for RBCTestLogic:
RBCLogic

List of all members.

Public Member Functions

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

Private Attributes

std::bitset< 6 > m_testlayer [2]

Detailed Description

Author:
Andres Osorio

email: aosorio@uniandes.edu.co

Date:
2008-10-13

Definition at line 23 of file RBCTestLogic.h.


Constructor & Destructor Documentation

RBCTestLogic::RBCTestLogic ( )

Standard constructor.

Definition at line 18 of file RBCTestLogic.cc.

                             {

}
RBCTestLogic::~RBCTestLogic ( ) [virtual]

Destructor.

Definition at line 24 of file RBCTestLogic.cc.

{} 

Member Function Documentation

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

Implements RBCLogic.

Definition at line 34 of file RBCTestLogic.h.

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

Implements RBCLogic.

Definition at line 27 of file RBCTestLogic.cc.

References gather_cfg::cout, i, RBCInput::input_sec, gen::k, and m_testlayer.

{
  std::cout << "RBCTestLogic> Implementing just a plain OR" << '\n';
  
  std::bitset<15> _data[2];
  
  _data[0] = _input.input_sec[0];
  _data[1] = _input.input_sec[1];
  
  bool _ds = true;
  for(int i=0; i < 15; ++i) _ds = _ds | _data[0][i];
  _decision.set(0,_ds);
  
  _ds = true;
  for(int i=0; i < 15; ++i) _ds = _ds | _data[1][i];
  _decision.set(1,_ds);
  
  
  //...Layer information:
  for(int k=0; k < 6; ++k) {
    m_testlayer[0].set(k,1);
    m_testlayer[1].set(k,0);
  }
  
  
  //....
  
}
void RBCTestLogic::setBoardSpecs ( const RBCBoardSpecs::RBCBoardConfig specs) [virtual]

Implements RBCLogic.

Definition at line 56 of file RBCTestLogic.cc.

{
  
  
  
  
  
}

Member Data Documentation

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

Definition at line 34 of file RBCTestLogic.h.

Referenced by process().