7 : theLinkBoardInputNum(num), theChamber(chamber), theFeb(feb), theAlgo(0), theRawId(0) {}
12 int pinAlgo =
theAlgo - 10000 * nStrips - 100 * firstChamberStrip;
15 pinAlgo = pinAlgo - 4;
19 if (pinNumber < pinAlgo)
21 if (!pinAlgo && (pinNumber < 2))
23 if (pinAlgo && (pinNumber > pinAlgo + nStrips - 1))
25 if (!pinAlgo && (pinNumber > nStrips + 2 || pinNumber == 9))
27 int chamberStripNumber = -1;
30 chamberStripNumber = firstChamberStrip + slope * (pinNumber - pinAlgo);
31 else if (pinNumber < 9)
32 chamberStripNumber = firstChamberStrip + slope * (pinNumber - 2);
34 chamberStripNumber = firstChamberStrip + slope * (pinNumber - 3);
42 if (istrip < 0 || istrip > nStrips - 1)
45 int pinAlgo =
theAlgo - 10000 * nStrips - 100 * firstChamberStrip;
46 int theStrip = firstChamberStrip + istrip;
48 theStrip = firstChamberStrip - istrip;
54 if (istrip < 0 || istrip > nStrips - 1)
58 pinAlgo = pinAlgo - 4;
59 bool holeatpin9 = (pinAlgo == 0 && istrip > 6);
60 int thePin = istrip + pinAlgo + holeatpin9 + 2 * (pinAlgo == 0);
72 std::ostringstream
str;
75 str << aDet << std::endl;
80 for (
int istrip = 0; istrip <
nStrips; istrip++) {
82 str << aStrip.
print(depth);
const int cablePinNum(int istrip) const
const uint32_t & rawId() const
DetUnit to which data belongs.
std::string print(int depth=0) const
debug printout
const int cmsStripNum(int istrip) const
static const double slope[3]
nStrips
1.2 is to make the matching window safely the two nearest strips 0.35 is the size of an ME0 chamber i...
const int chamberStripNum(int istrip) const
const ChamberStripSpec strip(int pinNumber) const
strip info for input pin
std::string print(int depth=0) const
debug
std::string print(int depth=0) const
int linkBoardInputNum() const
this FEB channel in LinkBoard
std::string print(int depth=0) const
debug printout
FebConnectorSpec(int num=-1)
ChamberLocationSpec theChamber