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

Constructor & Destructor Documentation

RBCTestLogic::RBCTestLogic ( )

Standard constructor.

Definition at line 18 of file RBCTestLogic.cc.

18  {
19 
20 }
RBCTestLogic::~RBCTestLogic ( )
virtual

Destructor.

Definition at line 24 of file RBCTestLogic.cc.

24 {}

Member Function Documentation

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

Implements RBCLogic.

Definition at line 34 of file RBCTestLogic.h.

34 { return &m_testlayer[_idx];};
std::bitset< 6 > m_testlayer[2]
Definition: RBCTestLogic.h:34
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.

Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), ConfigBuilder.ConfigBuilder::prepare_FASTSIM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder::scheduleSequence().

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

Implements RBCLogic.

Definition at line 56 of file RBCTestLogic.cc.

57 {
58 
59 
60 
61 
62 
63 }

Member Data Documentation

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

Definition at line 34 of file RBCTestLogic.h.

Referenced by process().