CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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  ~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() { return m_logic->m_triggersignal; };
39 
40 protected:
41 private:
43 
44  std::bitset<6>* m_layersignal[2];
45 
46  std::unique_ptr<RBCLogic> m_logic;
47 
48  bool m_debug;
49 };
50 #endif // RBCLOGICUNIT_H
void run(const RBCInput &, std::bitset< 2 > &)
Definition: RBCLogicUnit.cc:42
void setBoardSpecs(const RBCBoardSpecs::RBCBoardConfig &)
Definition: RBCLogicUnit.cc:40
RBCLogicUnit()
Standard constructor.
Definition: RBCLogicUnit.cc:15
bool isTriggered()
Definition: RBCLogicUnit.h:38
std::bitset< 6 > * getlayersignal(int _idx)
Definition: RBCLogicUnit.h:36
~RBCLogicUnit() override
Destructor.
Definition: RBCLogicUnit.cc:21
void setlogic(const char *)
Definition: RBCLogicUnit.cc:38
bool initialise()
Definition: RBCLogicUnit.cc:24
std::unique_ptr< RBCLogic > m_logic
Definition: RBCLogicUnit.h:46
std::string m_logtype
Definition: RBCLogicUnit.h:38
std::bitset< 6 > * m_layersignal[2]
Definition: RBCLogicUnit.h:44