CMS 3D CMS Logo

RBCEmulator.h
Go to the documentation of this file.
1 #ifndef RBCEMULATOR_H
2 #define RBCEMULATOR_H 1
3 
4 // Include files
11 
13 
24 class RBCEmulator {
25 public:
27  RBCEmulator( );
28 
29  RBCEmulator( const char * );
30 
31  RBCEmulator( const char * , const char * );
32 
33  RBCEmulator( const char * , const char * , int, int *);
34 
35  virtual ~RBCEmulator( );
36 
37  void setSpecifications( const RBCBoardSpecs * );
38 
39  bool initialise();
40 
41  void setid( int , int * );
42 
43  void emulate();
44 
45  void emulate( RBCInput * );
46 
47  void reset();
48 
49  std::bitset<6> * getlayersignal( int idx ) { return m_layersignal[idx];};
50 
51  bool getdecision( int idx ) { return m_decision[idx];};
52 
53  void printinfo();
54 
55  void printlayerinfo();
56 
58 
59 protected:
60 
61 private:
62 
64 
66 
68 
69  std::bitset<6> * m_layersignal[2];
70 
71  std::bitset<2> m_decision;
72 
73  std::vector< std::bitset<6> *> m_layersignalVec;
74 
75  //...
76 
77  int m_bx;
78 
80 
81  bool m_debug;
82 
83 };
84 #endif // RBCEMULATOR_H
void emulate()
Definition: RBCEmulator.cc:112
virtual ~RBCEmulator()
Destructor.
Definition: RBCEmulator.cc:71
void printlayerinfo()
Definition: RBCEmulator.cc:197
bool initialise()
Definition: RBCEmulator.cc:92
ProcessInputSignal * m_signal
Definition: RBCEmulator.h:63
std::bitset< 6 > * getlayersignal(int idx)
Definition: RBCEmulator.h:49
RBCEmulator()
Standard constructor.
Definition: RBCEmulator.cc:18
Definition: RBCId.h:16
std::string m_logtype
Definition: RBCEmulator.h:79
std::bitset< 6 > * m_layersignal[2]
Definition: RBCEmulator.h:69
bool getdecision(int idx)
Definition: RBCEmulator.h:51
bool m_debug
Definition: RBCEmulator.h:81
RBCId * m_rbcinfo
Definition: RBCEmulator.h:57
std::bitset< 2 > m_decision
Definition: RBCEmulator.h:71
std::vector< std::bitset< 6 > * > m_layersignalVec
Definition: RBCEmulator.h:73
RBCConfiguration * m_rbcconf
Definition: RBCEmulator.h:65
void reset()
Definition: RBCEmulator.cc:178
void setid(int, int *)
Definition: RBCEmulator.cc:107
void setSpecifications(const RBCBoardSpecs *)
Definition: RBCEmulator.cc:85
void printinfo()
Definition: RBCEmulator.cc:187
RBCInput * m_input
Definition: RBCEmulator.h:67