CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCWheel.h
Go to the documentation of this file.
1 #ifndef RPCWHEEL_H
2 #define RPCWHEEL_H 1
3 
4 // Include files
8 
9 #include<vector>
10 #include<map>
11 
21 void print_wheel( const TTUInput & );
22 
23 class RPCWheel {
24 public:
26  RPCWheel( );
27 
28  virtual ~RPCWheel( );
29 
30  void setProperties( int );
31 
32  void setProperties( int , const char * );
33 
34  void setProperties( int , const char *, const char * );
35 
36  void setSpecifications( const RBCBoardSpecs * );
37 
38  bool initialise();
39 
40  void emulate();
41 
42  bool process( int , const std::map<int,RBCInput*> & );
43 
44  bool process( int , const std::map<int,TTUInput*> & );
45 
46  void createWheelMap();
47 
48  void retrieveWheelMap( TTUInput & );
49 
50  int getid() { return m_id; };
51 
52  void printinfo();
53 
54  void print_wheel(const TTUInput & );
55 
56  std::vector<RBCEmulator*> m_RBCE;
57 
58 protected:
59 
60 private:
61 
62  int m_id;
63  int m_maxrbc;
66 
67  std::vector<int> m_sec1id;
68  std::vector<int> m_sec2id;
69 
70  //...
71 
72  std::bitset<12> m_rbcDecision;
73  std::bitset<6> * m_wheelmap;
74 
75  bool m_debug;
76 
77 };
78 
79 #endif // RPCWHEEL_H
void printinfo()
Definition: RPCWheel.cc:291
void print_wheel(const TTUInput &)
Definition: RPCWheel.cc:300
std::bitset< 6 > * m_wheelmap
Definition: RPCWheel.h:73
std::vector< int > m_sec2id
Definition: RPCWheel.h:68
RPCWheel()
Standard constructor.
Definition: RPCWheel.cc:17
int m_id
Definition: RPCWheel.h:62
bool initialise()
Definition: RPCWheel.cc:129
int getid()
Definition: RPCWheel.h:50
bool process(int, const std::map< int, RBCInput * > &)
Definition: RPCWheel.cc:149
bool m_debug
Definition: RPCWheel.h:75
std::bitset< 12 > m_rbcDecision
Definition: RPCWheel.h:72
std::vector< int > m_sec1id
Definition: RPCWheel.h:67
int m_maxsectors
Definition: RPCWheel.h:65
void print_wheel(const TTUInput &)
int m_maxlayers
Definition: RPCWheel.h:64
void createWheelMap()
Definition: RPCWheel.cc:233
int m_maxrbc
Definition: RPCWheel.h:63
void retrieveWheelMap(TTUInput &)
Definition: RPCWheel.cc:266
void setProperties(int)
Definition: RPCWheel.cc:44
std::vector< RBCEmulator * > m_RBCE
Definition: RPCWheel.h:56
void emulate()
Definition: RPCWheel.cc:139
void setSpecifications(const RBCBoardSpecs *)
Definition: RPCWheel.cc:121
virtual ~RPCWheel()
Destructor.
Definition: RPCWheel.cc:105