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 22 of file RBCTestLogic.h.

Constructor & Destructor Documentation

RBCTestLogic::RBCTestLogic ( )

Standard constructor.

Definition at line 17 of file RBCTestLogic.cc.

17  {
18 
19 }
RBCTestLogic::~RBCTestLogic ( )
override

Destructor.

Definition at line 23 of file RBCTestLogic.cc.

23 {}

Member Function Documentation

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

Implements RBCLogic.

Definition at line 33 of file RBCTestLogic.h.

33 { return &m_testlayer[_idx];};
std::bitset< 6 > m_testlayer[2]
Definition: RBCTestLogic.h:33
void RBCTestLogic::process ( const RBCInput _input,
std::bitset< 2 > &  _decision 
)
overridevirtual

Implements RBCLogic.

Definition at line 26 of file RBCTestLogic.cc.

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

27 {
28  std::cout << "RBCTestLogic> Implementing just a plain OR" << '\n';
29 
30  std::bitset<15> _data[2];
31 
32  _data[0] = _input.input_sec[0];
33  _data[1] = _input.input_sec[1];
34 
35  bool _ds = true;
36  for(int i=0; i < 15; ++i) _ds = _ds | _data[0][i];
37  _decision.set(0,_ds);
38 
39  _ds = true;
40  for(int i=0; i < 15; ++i) _ds = _ds | _data[1][i];
41  _decision.set(1,_ds);
42 
43 
44  //...Layer information:
45  for(int k=0; k < 6; ++k) {
46  m_testlayer[0].set(k,true);
47  m_testlayer[1].set(k,false);
48  }
49 
50 
51  //....
52 
53 }
std::bitset< 6 > m_testlayer[2]
Definition: RBCTestLogic.h:33
std::bitset< 15 > * input_sec
Definition: RBCInput.h:64
int k[5][pyjets_maxn]
void RBCTestLogic::setBoardSpecs ( const RBCBoardSpecs::RBCBoardConfig specs)
overridevirtual

Implements RBCLogic.

Definition at line 55 of file RBCTestLogic.cc.

56 {
57 
58 
59 
60 
61 
62 }

Member Data Documentation

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

Definition at line 33 of file RBCTestLogic.h.

Referenced by process().