CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
void process (const RBCInput &, std::bitset< 2 > &)
 
 RBCTestLogic ()
 Standard constructor. More...
 
void setBoardSpecs (const RBCBoardSpecs::RBCBoardConfig &)
 
virtual ~RBCTestLogic ()
 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 ( )
virtual

Destructor.

Definition at line 23 of file RBCTestLogic.cc.

23 {}

Member Function Documentation

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

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 
)
virtual

Implements RBCLogic.

Definition at line 26 of file RBCTestLogic.cc.

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

Referenced by ConfigBuilder.ConfigBuilder::__init__(), ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::anyOf(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare(), ConfigBuilder.ConfigBuilder::prepare_ALCA(), ConfigBuilder.ConfigBuilder::prepare_DQM(), ConfigBuilder.ConfigBuilder::prepare_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HARVESTING(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().

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,1);
47  m_testlayer[1].set(k,0);
48  }
49 
50 
51  //....
52 
53 }
int i
Definition: DBlmapReader.cc:9
std::bitset< 6 > m_testlayer[2]
Definition: RBCTestLogic.h:33
std::bitset< 15 > * input_sec
Definition: RBCInput.h:64
tuple cout
Definition: gather_cfg.py:121
void RBCTestLogic::setBoardSpecs ( const RBCBoardSpecs::RBCBoardConfig specs)
virtual

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().