CMS 3D CMS Logo

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  ~RBCLogicUnit( ) override;
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 
50  std::unique_ptr<RBCLogic> m_logic;
51 
52 
53  bool m_debug;
54 
55 };
56 #endif // RBCLOGICUNIT_H
void run(const RBCInput &, std::bitset< 2 > &)
Definition: RBCLogicUnit.cc:61
void setBoardSpecs(const RBCBoardSpecs::RBCBoardConfig &)
Definition: RBCLogicUnit.cc:54
RBCLogicUnit()
Standard constructor.
Definition: RBCLogicUnit.cc:17
bool isTriggered()
Definition: RBCLogicUnit.h:38
std::bitset< 6 > * getlayersignal(int _idx)
Definition: RBCLogicUnit.h:36
~RBCLogicUnit() override
Destructor.
Definition: RBCLogicUnit.cc:30
void setlogic(const char *)
Definition: RBCLogicUnit.cc:49
bool initialise()
Definition: RBCLogicUnit.cc:34
std::unique_ptr< RBCLogic > m_logic
Definition: RBCLogicUnit.h:50
std::string m_logtype
Definition: RBCLogicUnit.h:40
std::bitset< 6 > * m_layersignal[2]
Definition: RBCLogicUnit.h:48