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 // $Id: RBCLogicUnit.h,v 1.4 2009/06/07 21:18:50 aosorio Exp $
2 #ifndef RBCLOGICUNIT_H
3 #define RBCLOGICUNIT_H 1
4 
5 // Include files
10 
11 #include <bitset>
12 
20 class RBCLogicUnit : public RPCLogicUnit {
21 public:
23  RBCLogicUnit( );
24 
25  RBCLogicUnit( const char * );
26 
27  virtual ~RBCLogicUnit( );
28 
29  bool initialise();
30 
31  void setlogic( const char * );
32 
34 
35  void run( const RBCInput & , std::bitset<2> & );
36 
37  std::bitset<6> * getlayersignal(int _idx) { return m_layersignal[_idx]; };
38 
39  bool isTriggered() {
40  return m_logic->m_triggersignal;
41  };
42 
43 protected:
44 
45 private:
46 
47  std::string m_logtype;
48 
49  std::bitset<6> * m_layersignal[2];
50 
52 
54 
55  bool m_debug;
56 
57 };
58 #endif // RBCLOGICUNIT_H
void run(const RBCInput &, std::bitset< 2 > &)
Definition: RBCLogicUnit.cc:77
RBCLogic * m_logic
Definition: RBCLogicUnit.h:51
void setBoardSpecs(const RBCBoardSpecs::RBCBoardConfig &)
Definition: RBCLogicUnit.cc:70
RBCLogicUnit()
Standard constructor.
Definition: RBCLogicUnit.cc:18
bool isTriggered()
Definition: RBCLogicUnit.h:39
std::bitset< 6 > * getlayersignal(int _idx)
Definition: RBCLogicUnit.h:37
void setlogic(const char *)
Definition: RBCLogicUnit.cc:65
bool initialise()
Definition: RBCLogicUnit.cc:45
bool m_triggersignal
Definition: RBCLogic.h:32
virtual ~RBCLogicUnit()
Destructor.
Definition: RBCLogicUnit.cc:35
std::string m_logtype
Definition: RBCLogicUnit.h:41
std::bitset< 6 > * m_layersignal[2]
Definition: RBCLogicUnit.h:49
LogicTool< RBCLogic > * m_logtool
Definition: RBCLogicUnit.h:53