CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RBCChamberORLogic.h
Go to the documentation of this file.
1 // $Id: RBCChamberORLogic.h,v 1.2 2009/06/07 21:18:50 aosorio Exp $
2 #ifndef RBCCHAMBERORLOGIC_H
3 #define RBCCHAMBERORLOGIC_H 1
4 
5 // Include files
6 
9 
10 #include <iostream>
11 #include <vector>
12 #include <map>
13 
14 
28 class RBCChamberORLogic : public RBCLogic {
29 public:
32 
33  virtual ~RBCChamberORLogic( );
34 
35  void process ( const RBCInput & , std::bitset<2> & );
36 
38 
39  std::bitset<6> * getlayersignal(int _idx) { return & m_layersignal[_idx]; };
40 
41  typedef std::vector<std::string>::iterator itr2names;
42  typedef std::map<std::string,bool>::iterator itr2chambers;
43 
44  void copymap( const std::bitset<15> & );
45 
46  void createmap( const std::bitset<15> & );
47 
48  void reset();
49 
50  bool evaluateLayerOR( const char *, const char * );
51 
52  void setmaxlevel( int _mx ) { m_maxlevel = _mx;};
53 
54  std::bitset<6> * m_layersignal;
55 
56 protected:
57 
58 private:
59 
60  std::vector<std::string> m_rbname;
61 
62  std::map<std::string, bool> m_chamber;
63 
64  int m_maxcb;
65 
67 
68 };
69 #endif // RBCCHAMBERORLOGIC_H
std::vector< std::string >::iterator itr2names
void setmaxlevel(int _mx)
std::map< std::string, bool > m_chamber
std::bitset< 6 > * m_layersignal
RBCChamberORLogic()
Standard constructor.
bool evaluateLayerOR(const char *, const char *)
void createmap(const std::bitset< 15 > &)
std::bitset< 6 > * getlayersignal(int _idx)
void process(const RBCInput &, std::bitset< 2 > &)
std::vector< std::string > m_rbname
std::map< std::string, bool >::iterator itr2chambers
void copymap(const std::bitset< 15 > &)
void setBoardSpecs(const RBCBoardSpecs::RBCBoardConfig &)
virtual ~RBCChamberORLogic()
Destructor.