CMS 3D CMS Logo

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

#include <RBCPatternLogic.h>

Inheritance diagram for RBCPatternLogic:
RBCLogic

Public Member Functions

std::bitset< 6 > * getlayersignal (int _idx) override
 
void process (const RBCInput &, std::bitset< 2 > &) override
 
 RBCPatternLogic ()
 Standard constructor. More...
 
void setBoardSpecs (const RBCBoardSpecs::RBCBoardConfig &) override
 
 ~RBCPatternLogic () 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-15

Definition at line 19 of file RBCPatternLogic.h.

Constructor & Destructor Documentation

RBCPatternLogic::RBCPatternLogic ( )

Standard constructor.

Definition at line 17 of file RBCPatternLogic.cc.

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

Destructor.

Definition at line 23 of file RBCPatternLogic.cc.

23 {}

Member Function Documentation

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

Implements RBCLogic.

Definition at line 30 of file RBCPatternLogic.h.

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

Implements RBCLogic.

Definition at line 27 of file RBCPatternLogic.cc.

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

28 {
29  std::cout << "RBCPatternLogic> Working with pattern logic" << '\n';
30 
31  _decision.set(0,true);
32  _decision.set(1,true);
33 
34  //...Layer information:
35  for(int k=0; k < 6; ++k) {
36  m_testlayer[0].set(k,true);
37  m_testlayer[1].set(k,false);
38  }
39 
40 
41  //....
42 
43 
44 }
int k[5][pyjets_maxn]
std::bitset< 6 > m_testlayer[2]
void RBCPatternLogic::setBoardSpecs ( const RBCBoardSpecs::RBCBoardConfig specs)
overridevirtual

Implements RBCLogic.

Definition at line 46 of file RBCPatternLogic.cc.

47 {
48 
49 
50 
51 
52 
53 }

Member Data Documentation

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

Definition at line 30 of file RBCPatternLogic.h.

Referenced by process().