CMS 3D CMS Logo

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

#include <RBCTestLogic.h>

Inheritance diagram for RBCTestLogic:
RBCLogic

Public Member Functions

std::bitset< 6 > * getlayersignal (int _idx) override
 
void process (const RBCInput &, std::bitset< 2 > &) override
 
 RBCTestLogic ()
 Standard constructor. More...
 
void setBoardSpecs (const RBCBoardSpecs::RBCBoardConfig &) override
 
 ~RBCTestLogic () override
 Destructor. More...
 
- Public Member Functions inherited from RBCLogic
virtual ~RBCLogic ()
 

Private Attributes

std::bitset< 6 > m_testlayer [2]
 

Additional Inherited Members

- Public Attributes inherited from RBCLogic
bool m_triggersignal
 

Detailed Description

Author
Andres Osorio

email: aosor.nosp@m.io@u.nosp@m.niand.nosp@m.es.e.nosp@m.du.co

Date
2008-10-13

Definition at line 21 of file RBCTestLogic.h.

Constructor & Destructor Documentation

◆ RBCTestLogic()

RBCTestLogic::RBCTestLogic ( )

Standard constructor.

Definition at line 15 of file RBCTestLogic.cc.

15 {}

◆ ~RBCTestLogic()

RBCTestLogic::~RBCTestLogic ( )
override

Destructor.

Definition at line 19 of file RBCTestLogic.cc.

19 {}

Member Function Documentation

◆ getlayersignal()

std::bitset<6>* RBCTestLogic::getlayersignal ( int  _idx)
inlineoverridevirtual

Implements RBCLogic.

Definition at line 32 of file RBCTestLogic.h.

32 { return &m_testlayer[_idx]; };

◆ process()

void RBCTestLogic::process ( const RBCInput _input,
std::bitset< 2 > &  _decision 
)
overridevirtual

Implements RBCLogic.

Definition at line 22 of file RBCTestLogic.cc.

22  {
23  std::cout << "RBCTestLogic> Implementing just a plain OR" << '\n';
24 
25  std::bitset<15> _data[2];
26 
27  _data[0] = _input.input_sec[0];
28  _data[1] = _input.input_sec[1];
29 
30  bool _ds = true;
31  for (int i = 0; i < 15; ++i)
32  _ds = _ds | _data[0][i];
33  _decision.set(0, _ds);
34 
35  _ds = true;
36  for (int i = 0; i < 15; ++i)
37  _ds = _ds | _data[1][i];
38  _decision.set(1, _ds);
39 
40  //...Layer information:
41  for (int k = 0; k < 6; ++k) {
42  m_testlayer[0].set(k, true);
43  m_testlayer[1].set(k, false);
44  }
45 
46  //....
47 }

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

◆ setBoardSpecs()

void RBCTestLogic::setBoardSpecs ( const RBCBoardSpecs::RBCBoardConfig specs)
overridevirtual

Implements RBCLogic.

Definition at line 49 of file RBCTestLogic.cc.

49 {}

Member Data Documentation

◆ m_testlayer

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

Definition at line 32 of file RBCTestLogic.h.

Referenced by process().

mps_fire.i
i
Definition: mps_fire.py:428
gather_cfg.cout
cout
Definition: gather_cfg.py:144
RBCTestLogic::m_testlayer
std::bitset< 6 > m_testlayer[2]
Definition: RBCTestLogic.h:32
RBCInput::input_sec
std::array< std::bitset< 15 >, 2 > input_sec
Definition: RBCInput.h:41
dqmdumpme.k
k
Definition: dqmdumpme.py:60