8 : theLinkBoardInputNum(num),
18 int firstChamberStrip=(
theAlgo-10000*nStrips)/100;
19 int pinAlgo=
theAlgo-10000*nStrips-100*firstChamberStrip;
26 if (pinNumber < pinAlgo) valid=
false;
27 if (!pinAlgo && (pinNumber < 2)) valid=
false;
28 if (pinAlgo && (pinNumber > pinAlgo+nStrips-1)) valid=
false;
29 if (!pinAlgo && (pinNumber > nStrips+2 || pinNumber == 9)) valid=
false;
30 int chamberStripNumber=-1;
32 if (pinAlgo !=0) chamberStripNumber=firstChamberStrip+slope*(pinNumber-pinAlgo);
33 else if (pinNumber < 9) chamberStripNumber=firstChamberStrip+slope*(pinNumber-2);
34 else chamberStripNumber=firstChamberStrip+slope*(pinNumber-3);
42 if (istrip<0 || istrip>nStrips-1)
return 0;
43 int firstChamberStrip=(
theAlgo-10000*nStrips)/100;
44 int pinAlgo=
theAlgo-10000*nStrips-100*firstChamberStrip;
45 int theStrip=firstChamberStrip+istrip;
46 if (pinAlgo>3) theStrip=firstChamberStrip-istrip;
52 if (istrip<0 || istrip>nStrips-1)
return 0;
54 if (pinAlgo>3) pinAlgo=pinAlgo-4;
55 bool holeatpin9=(pinAlgo==0 && istrip>6);
56 int thePin = istrip+pinAlgo+holeatpin9+2*(pinAlgo==0);
70 std::ostringstream str;
72 <<
" rawId: " <<
rawId() <<std::endl;
79 for (
int istrip=0; istrip<nStrips; istrip++) {
81 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]
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