CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RBCEmulator.h
Go to the documentation of this file.
1 // $Id: RBCEmulator.h,v 1.9 2009/06/17 15:27:23 aosorio Exp $
2 #ifndef RBCEMULATOR_H
3 #define RBCEMULATOR_H 1
4 
5 // Include files
12 
14 
25 class RBCEmulator {
26 public:
28  RBCEmulator( );
29 
30  RBCEmulator( const char * );
31 
32  RBCEmulator( const char * , const char * );
33 
34  RBCEmulator( const char * , const char * , int, int *);
35 
36  virtual ~RBCEmulator( );
37 
38  void setSpecifications( const RBCBoardSpecs * );
39 
40  bool initialise();
41 
42  void setid( int , int * );
43 
44  void emulate();
45 
46  void emulate( RBCInput * );
47 
48  void reset();
49 
50  std::bitset<6> * getlayersignal( int idx ) { return m_layersignal[idx];};
51 
52  bool getdecision( int idx ) { return m_decision[idx];};
53 
54  void printinfo();
55 
56  void printlayerinfo();
57 
59 
60 protected:
61 
62 private:
63 
65 
67 
69 
70  std::bitset<6> * m_layersignal[2];
71 
72  std::bitset<2> m_decision;
73 
74  std::vector< std::bitset<6> *> m_layersignalVec;
75 
76  //...
77 
78  int m_bx;
79 
80  std::string m_logtype;
81 
82  bool m_debug;
83 
84 };
85 #endif // RBCEMULATOR_H
void emulate()
Definition: RBCEmulator.cc:113
virtual ~RBCEmulator()
Destructor.
Definition: RBCEmulator.cc:72
void printlayerinfo()
Definition: RBCEmulator.cc:198
bool initialise()
Definition: RBCEmulator.cc:93
ProcessInputSignal * m_signal
Definition: RBCEmulator.h:64
std::bitset< 6 > * getlayersignal(int idx)
Definition: RBCEmulator.h:50
RBCEmulator()
Standard constructor.
Definition: RBCEmulator.cc:19
Definition: RBCId.h:17
std::string m_logtype
Definition: RBCEmulator.h:80
std::bitset< 6 > * m_layersignal[2]
Definition: RBCEmulator.h:70
bool getdecision(int idx)
Definition: RBCEmulator.h:52
bool m_debug
Definition: RBCEmulator.h:82
RBCId * m_rbcinfo
Definition: RBCEmulator.h:58
std::bitset< 2 > m_decision
Definition: RBCEmulator.h:72
std::vector< std::bitset< 6 > * > m_layersignalVec
Definition: RBCEmulator.h:74
RBCConfiguration * m_rbcconf
Definition: RBCEmulator.h:66
void reset()
Definition: RBCEmulator.cc:179
void setid(int, int *)
Definition: RBCEmulator.cc:108
void setSpecifications(const RBCBoardSpecs *)
Definition: RBCEmulator.cc:86
void printinfo()
Definition: RBCEmulator.cc:188
RBCInput * m_input
Definition: RBCEmulator.h:68