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 // $Id: RPCWheel.h,v 1.4 2009/06/17 15:27:24 aosorio Exp $
2 #ifndef RPCWHEEL_H
3 #define RPCWHEEL_H 1
4 
5 // Include files
9 
10 #include<vector>
11 #include<map>
12 
22 void print_wheel( const TTUInput & );
23 
24 class RPCWheel {
25 public:
27  RPCWheel( );
28 
29  virtual ~RPCWheel( );
30 
31  void setProperties( int );
32 
33  void setProperties( int , const char * );
34 
35  void setProperties( int , const char *, const char * );
36 
37  void setSpecifications( const RBCBoardSpecs * );
38 
39  bool initialise();
40 
41  void emulate();
42 
43  bool process( int , const std::map<int,RBCInput*> & );
44 
45  bool process( int , const std::map<int,TTUInput*> & );
46 
47  void createWheelMap();
48 
49  void retrieveWheelMap( TTUInput & );
50 
51  int getid() { return m_id; };
52 
53  void printinfo();
54 
55  void print_wheel(const TTUInput & );
56 
57  std::vector<RBCEmulator*> m_RBCE;
58 
59 protected:
60 
61 private:
62 
63  int m_id;
64  int m_maxrbc;
67 
68  std::vector<int> m_sec1id;
69  std::vector<int> m_sec2id;
70 
71  //...
72 
73  std::bitset<12> m_rbcDecision;
74  std::bitset<6> * m_wheelmap;
75 
76  bool m_debug;
77 
78 };
79 
80 #endif // RPCWHEEL_H
void printinfo()
Definition: RPCWheel.cc:292
void print_wheel(const TTUInput &)
Definition: RPCWheel.cc:301
std::bitset< 6 > * m_wheelmap
Definition: RPCWheel.h:74
std::vector< int > m_sec2id
Definition: RPCWheel.h:69
RPCWheel()
Standard constructor.
Definition: RPCWheel.cc:18
int m_id
Definition: RPCWheel.h:63
bool initialise()
Definition: RPCWheel.cc:130
int getid()
Definition: RPCWheel.h:51
bool process(int, const std::map< int, RBCInput * > &)
Definition: RPCWheel.cc:150
bool m_debug
Definition: RPCWheel.h:76
std::bitset< 12 > m_rbcDecision
Definition: RPCWheel.h:73
std::vector< int > m_sec1id
Definition: RPCWheel.h:68
int m_maxsectors
Definition: RPCWheel.h:66
void print_wheel(const TTUInput &)
int m_maxlayers
Definition: RPCWheel.h:65
void createWheelMap()
Definition: RPCWheel.cc:234
int m_maxrbc
Definition: RPCWheel.h:64
void retrieveWheelMap(TTUInput &)
Definition: RPCWheel.cc:267
void setProperties(int)
Definition: RPCWheel.cc:45
std::vector< RBCEmulator * > m_RBCE
Definition: RPCWheel.h:57
void emulate()
Definition: RPCWheel.cc:140
void setSpecifications(const RBCBoardSpecs *)
Definition: RPCWheel.cc:122
virtual ~RPCWheel()
Destructor.
Definition: RPCWheel.cc:106