Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:05:08

0001 #ifndef RPCOBJECTS_RPCDIGIL1LINK_H
0002 #define RPCOBJECTS_RPCDIGIL1LINK_H
0003 
0004 #include <vector>
0005 #include <map>
0006 
0007 class RPCDigiL1Link {
0008 public:
0009   RPCDigiL1Link();
0010 
0011   ~RPCDigiL1Link();
0012 
0013   bool empty() const;
0014 
0015   // Getters -- layer runs from 1 to nlayer
0016   bool empty(unsigned int layer) const;
0017   unsigned int rawdetId(unsigned int layer) const;
0018   int strip(unsigned int layer) const;
0019   int bx(unsigned int layer) const;
0020   unsigned int nlayer() const;
0021 
0022   // Setters --layer run from 1 to nlayer
0023   void setLink(unsigned int layer, unsigned int rpcdetId, int strip, int bx);
0024 
0025 private:
0026   void checklayer(unsigned int layer) const;
0027 
0028 private:
0029   std::vector<std::pair<unsigned int, int> > _link;
0030 };
0031 #endif