Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:30

0001 #ifndef CondFormatsRPCObjectsLinkBoardPackedStrip_H
0002 #define CondFormatsRPCObjectsLinkBoardPackedStrip_H
0003 
0004 class LinkBoardPackedStrip {
0005 public:
0006   LinkBoardPackedStrip(int packedStripLB) : thePackedStrip(packedStripLB) {}
0007 
0008   LinkBoardPackedStrip(int febInLB, int stripPinInFeb) : thePackedStrip((febInLB - 1) * 16 + stripPinInFeb - 1) {}
0009 
0010   int febInLB() const { return thePackedStrip / 16 + 1; }
0011   int stripPinInFeb() const { return thePackedStrip % 16 + 1; }
0012   int packedStrip() const { return thePackedStrip; }
0013 
0014 private:
0015   int thePackedStrip;
0016 };
0017 #endif