CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CondFormats/RPCObjects/interface/LinkBoardPackedStrip.h

Go to the documentation of this file.
00001 #ifndef CondFormatsRPCObjectsLinkBoardPackedStrip_H
00002 #define CondFormatsRPCObjectsLinkBoardPackedStrip_H
00003 
00004 class LinkBoardPackedStrip {
00005 public:
00006 
00007   LinkBoardPackedStrip(int packedStripLB) 
00008     : thePackedStrip(packedStripLB) { }
00009 
00010   LinkBoardPackedStrip(int febInLB, int stripPinInFeb) 
00011     : thePackedStrip( (febInLB-1)*16+stripPinInFeb-1) { } 
00012 
00013   int febInLB() const { return thePackedStrip/16+1; } 
00014   int stripPinInFeb() const { return thePackedStrip%16+1; }
00015   int packedStrip() const { return thePackedStrip; }
00016 
00017 private:
00018   int thePackedStrip; 
00019 };
00020 #endif