57 int month=atoi(
theVersion.substr(3,2).c_str());
58 if (year < 2012 || (year==2012 && month<11)) diskOffset=3;
63 for (
unsigned int idcc=0; idcc<
theDccs.size(); idcc++) {
65 for (
int itb=lastTB; itb<lastTB+
theDccs[idcc].nTBs; itb++) {
67 for (
int ilink=lastLink; ilink<lastLink+
theTBs[itb].nLinks; ilink++) {
69 for (
int ilb=lastLB; ilb<lastLB+
theLinks[ilink].nLBs; ilb++) {
71 for (
int ifeb=lastFeb; ifeb<lastFeb+
theLBs[ilb].nFebs; ifeb++) {
72 int sector=(
theFebs[ifeb].theChamber)%100;
73 char subsector=((
theFebs[ifeb].theChamber)/100)%10-2;
74 char febZRadOrnt=((
theFebs[ifeb].theChamber)/1000)%5;
75 char febZOrnt=((
theFebs[ifeb].theChamber)/5000)%2;
76 char diskOrWheel=((
theFebs[ifeb].theChamber)/10000)%10-diskOffset;
77 char layer=((
theFebs[ifeb].theChamber)/100000)%10;
78 char barrelOrEndcap=(
theFebs[ifeb].theChamber)/1000000;
79 ChamberLocationSpec chamber={diskOrWheel,layer,sector,subsector,febZOrnt,febZRadOrnt,barrelOrEndcap};
80 char cmsEtaPartition=(
theFebs[ifeb].thePartition)/1000;
81 char positionInCmsEtaPartition=((
theFebs[ifeb].thePartition)%1000)/100;
82 char localEtaPartition=((
theFebs[ifeb].thePartition)%100)/10;
83 char positionInLocalEtaPartition=(
theFebs[ifeb].thePartition)%10;
84 FebLocationSpec afeb={cmsEtaPartition,positionInCmsEtaPartition,localEtaPartition,positionInLocalEtaPartition};
86 febConnector.addStrips(
theFebs[ifeb].theAlgo);
91 lastFeb+=
theLBs[ilb].nFebs;
97 lastLink+=
theTBs[itb].nLinks;
std::vector< tbItem > theTBs
std::vector< dccItem > theDccs
std::vector< febItem > theFebs
void add(const DccSpec &dcc)
attach FED to map
std::vector< linkItem > theLinks
std::vector< lbItem > theLBs