CMS 3D CMS Logo

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

#include <RBCLogicUnit.h>

Inheritance diagram for RBCLogicUnit:
RPCLogicUnit

Public Member Functions

std::bitset< 6 > * getlayersignal (int _idx)
 
bool initialise ()
 
bool isTriggered ()
 
 RBCLogicUnit ()
 Standard constructor. More...
 
 RBCLogicUnit (const char *)
 
void run (const RBCInput &, std::bitset< 2 > &)
 
void setBoardSpecs (const RBCBoardSpecs::RBCBoardConfig &)
 
void setlogic (const char *)
 
 ~RBCLogicUnit () override
 Destructor. More...
 
- Public Member Functions inherited from RPCLogicUnit
 RPCLogicUnit ()
 Standard constructor. More...
 
 RPCLogicUnit (int, int, int)
 
virtual ~RPCLogicUnit ()
 Destructor. More...
 

Private Attributes

bool m_debug
 
std::bitset< 6 > * m_layersignal [2]
 
std::unique_ptr< RBCLogicm_logic
 
std::string m_logtype
 

Additional Inherited Members

- Public Attributes inherited from RPCLogicUnit
int m_propA
 
int m_propB
 
int m_propC
 

Detailed Description

Author
Andres Osorio
Date
2008-10-25

Definition at line 19 of file RBCLogicUnit.h.

Constructor & Destructor Documentation

RBCLogicUnit::RBCLogicUnit ( )

Standard constructor.

Definition at line 17 of file RBCLogicUnit.cc.

17  : RPCLogicUnit(),
18  m_debug{false}
19 {
20 }
RPCLogicUnit()
Standard constructor.
Definition: RPCLogicUnit.h:16
RBCLogicUnit::RBCLogicUnit ( const char *  logic_type)

Definition at line 22 of file RBCLogicUnit.cc.

References m_debug.

22  : RPCLogicUnit(),
23  m_logtype{ logic_type },
24  m_debug{ false }
25 {
26 }
RPCLogicUnit()
Standard constructor.
Definition: RPCLogicUnit.h:16
std::string m_logtype
Definition: RBCLogicUnit.h:40
RBCLogicUnit::~RBCLogicUnit ( )
override

Destructor.

Definition at line 30 of file RBCLogicUnit.cc.

30  {
31 }

Member Function Documentation

std::bitset<6>* RBCLogicUnit::getlayersignal ( int  _idx)
inline

Definition at line 36 of file RBCLogicUnit.h.

References m_layersignal.

36 { return m_layersignal[_idx]; };
std::bitset< 6 > * m_layersignal[2]
Definition: RBCLogicUnit.h:48
bool RBCLogicUnit::initialise ( )

Definition at line 34 of file RBCLogicUnit.cc.

References gather_cfg::cout, m_debug, m_logic, m_logtype, and LogicTool< GenLogic >::retrieve().

35 {
36 
37  LogicTool<RBCLogic> logtool;
38 
39  m_logic = logtool.retrieve(m_logtype);
40 
41  if ( ! m_logic ) {
42  if( m_debug ) std::cout << "RBCLogicUnit> No logic found \n";
43  return false; };
44 
45  return true;
46 
47 }
std::unique_ptr< RBCLogic > m_logic
Definition: RBCLogicUnit.h:50
std::string m_logtype
Definition: RBCLogicUnit.h:40
std::unique_ptr< GenLogic > retrieve(const std::string &_logic_name)
...
Definition: LogicTool.h:29
bool RBCLogicUnit::isTriggered ( )
inline

Definition at line 38 of file RBCLogicUnit.h.

References m_logic.

38  {
39  return m_logic->m_triggersignal;
40  };
std::unique_ptr< RBCLogic > m_logic
Definition: RBCLogicUnit.h:50
void RBCLogicUnit::run ( const RBCInput _input,
std::bitset< 2 > &  _decision 
)

Definition at line 61 of file RBCLogicUnit.cc.

References m_layersignal, and m_logic.

62 {
63 
64  m_logic->process( _input , _decision );
65  m_layersignal[0] = m_logic->getlayersignal( 0 );
66  m_layersignal[1] = m_logic->getlayersignal( 1 );
67 }
std::unique_ptr< RBCLogic > m_logic
Definition: RBCLogicUnit.h:50
std::bitset< 6 > * m_layersignal[2]
Definition: RBCLogicUnit.h:48
void RBCLogicUnit::setBoardSpecs ( const RBCBoardSpecs::RBCBoardConfig specs)

Definition at line 54 of file RBCLogicUnit.cc.

References m_logic.

55 {
56 
57  m_logic->setBoardSpecs( specs );
58 
59 }
std::unique_ptr< RBCLogic > m_logic
Definition: RBCLogicUnit.h:50
void RBCLogicUnit::setlogic ( const char *  _logic)

Definition at line 49 of file RBCLogicUnit.cc.

References m_logtype, and AlCaHLTBitMon_QueryRunRegistry::string.

Member Data Documentation

bool RBCLogicUnit::m_debug
private

Definition at line 53 of file RBCLogicUnit.h.

Referenced by initialise(), and RBCLogicUnit().

std::bitset<6>* RBCLogicUnit::m_layersignal[2]
private

Definition at line 48 of file RBCLogicUnit.h.

Referenced by getlayersignal(), and run().

std::unique_ptr<RBCLogic> RBCLogicUnit::m_logic
private

Definition at line 50 of file RBCLogicUnit.h.

Referenced by initialise(), isTriggered(), run(), and setBoardSpecs().

std::string RBCLogicUnit::m_logtype
private

Definition at line 40 of file RBCLogicUnit.h.

Referenced by initialise(), and setlogic().