CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RBCLogicUnit.h
Go to the documentation of this file.
1 #ifndef RBCLOGICUNIT_H
2 #define RBCLOGICUNIT_H 1
3 
4 // Include files
9 
10 #include <bitset>
11 
19 class RBCLogicUnit : public RPCLogicUnit {
20 public:
22  RBCLogicUnit( );
23 
24  RBCLogicUnit( const char * );
25 
26  virtual ~RBCLogicUnit( );
27 
28  bool initialise();
29 
30  void setlogic( const char * );
31 
33 
34  void run( const RBCInput & , std::bitset<2> & );
35 
36  std::bitset<6> * getlayersignal(int _idx) { return m_layersignal[_idx]; };
37 
38  bool isTriggered() {
39  return m_logic->m_triggersignal;
40  };
41 
42 protected:
43 
44 private:
45 
47 
48  std::bitset<6> * m_layersignal[2];
49 
51 
53 
54  bool m_debug;
55 
56 };
57 #endif // RBCLOGICUNIT_H
void run(const RBCInput &, std::bitset< 2 > &)
Definition: RBCLogicUnit.cc:76
RBCLogic * m_logic
Definition: RBCLogicUnit.h:50
void setBoardSpecs(const RBCBoardSpecs::RBCBoardConfig &)
Definition: RBCLogicUnit.cc:69
RBCLogicUnit()
Standard constructor.
Definition: RBCLogicUnit.cc:17
bool isTriggered()
Definition: RBCLogicUnit.h:38
std::bitset< 6 > * getlayersignal(int _idx)
Definition: RBCLogicUnit.h:36
void setlogic(const char *)
Definition: RBCLogicUnit.cc:64
bool initialise()
Definition: RBCLogicUnit.cc:44
bool m_triggersignal
Definition: RBCLogic.h:31
virtual ~RBCLogicUnit()
Destructor.
Definition: RBCLogicUnit.cc:34
std::string m_logtype
Definition: RBCLogicUnit.h:40
std::bitset< 6 > * m_layersignal[2]
Definition: RBCLogicUnit.h:48
LogicTool< RBCLogic > * m_logtool
Definition: RBCLogicUnit.h:52