LinkBoardPackedStrip

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef CondFormatsRPCObjectsLinkBoardPackedStrip_H
#define CondFormatsRPCObjectsLinkBoardPackedStrip_H

class LinkBoardPackedStrip {
public:
  LinkBoardPackedStrip(int packedStripLB) : thePackedStrip(packedStripLB) {}

  LinkBoardPackedStrip(int febInLB, int stripPinInFeb) : thePackedStrip((febInLB - 1) * 16 + stripPinInFeb - 1) {}

  int febInLB() const { return thePackedStrip / 16 + 1; }
  int stripPinInFeb() const { return thePackedStrip % 16 + 1; }
  int packedStrip() const { return thePackedStrip; }

private:
  int thePackedStrip;
};
#endif