478 LOG(info) <<
" Map CERN 20 gap at GBTX - uCh = " << uCh;
480 const Int_t StrMap[32] = {0, 1, 2, 3, 4, 31, 5, 6, 7, 30, 8,
481 9, 10, 29, 11, 12, 13, 14, 28, 15, 16, 17,
482 18, 27, 26, 25, 24, 23, 22, 21, 20, 19};
485 Int_t iModuleType = 7;
487 for (Int_t iFeet = 0; iFeet < 2; iFeet++) {
488 for (Int_t iStr = 0; iStr < 32; iStr++) {
489 Int_t iStrMap = 31 - 12 - StrMap[iStr];
490 Int_t iSideMap = iFeet;
498 LOG(info) <<
" Map end CERN 20 gap at GBTX - uCh = " << uCh;
571 LOG(info) <<
" Map Star2A box " <<
fiModuleId[uGbtx] <<
" at GBTX " << uGbtx <<
" - uCh = " << uCh <<
" for type "
577 for (; iFeet < NrFeet; iFeet++) {
578 for (Int_t iStr = 0; iStr < 32; iStr++) {
579 Int_t iStrMap = iStr;
590 if (iSideMap == 0) iStrMap = 31 - iStr;
602 for (Int_t iStr = 0; iStr < 32; iStr++) {
614 for (Int_t iFeet = 0; iFeet < 5; iFeet++) {
615 for (Int_t iStr = 0; iStr < 32; iStr++) {
617 case 0: iSideMap = -1;
break;
652 const int ConOff[8] = {0, 2, 4, 6, 7, 1, 3, 5};
653 for (Int_t iFeet = 0; iFeet < 5; iFeet++) {
654 for (Int_t iStr = 0; iStr < 32; iStr++) {
656 case 0: iSideMap = -1;
break;
659 iStrMap = 3 - iStr % 4 + 4 * ConOff[iStr / 4];
664 iStrMap = 3 - iStr % 4 + 4 * ConOff[iStr / 4];
669 iStrMap = 3 - iStr % 4 + 4 * ConOff[iStr / 4];
674 iStrMap = 3 - iStr % 4 + 4 * ConOff[iStr / 4];
693 LOG(info) <<
" Map Buc box " <<
fiModuleId[uGbtx] <<
" at GBTX " << uGbtx <<
" - uCh = " << uCh;
696 const Int_t iRpc[5] = {0, -1, 0, 1, 1};
697 const Int_t iSide[5] = {1, -1, 0, 1, 0};
698 for (Int_t iFeet = 0; iFeet < 5; iFeet++) {
699 for (Int_t iStr = 0; iStr < 32; iStr++) {
700 Int_t iStrMap = iStr;
701 Int_t iRpcMap = iRpc[iFeet];
702 Int_t iSideMap = iSide[iFeet];
707 iRpcMap = 1 - iRpcMap;
711 iSideMap = 1 - iSideMap;
720 const int ConOff[8] = {0, 2, 4, 6, 7, 1, 3, 5};
722 case 0: iSideMap = -1;
break;
725 iStrMap = 3 - iStr % 4 + 4 * ConOff[iStr / 4];
730 iStrMap = 3 - iStr % 4 + 4 * ConOff[iStr / 4];
735 iStrMap = 3 - iStr % 4 + 4 * ConOff[iStr / 4];
740 iStrMap = 3 - iStr % 4 + 4 * ConOff[iStr / 4];
746 iRpcMap = 1 - iRpcMap;
754 case 0: iRpcMap = 0;
break;
755 case 1: iRpcMap = 1;
break;
764 case 3: iSideMap = 0;
break;
766 case 2: iSideMap = 1;
break;
780 else if (23 == iStr) {
800 const Int_t iChMap[160]={
801 124, 125, 126, 127, 12, 13, 14, 15, 4, 5, 6, 7, 28, 29, 30, 31, 120, 121, 122, 123, 8, 9, 10, 11, 104, 105, 106, 107, 108, 109, 110, 111,
802 36, 37, 38, 39, 52, 53, 54, 55, 60, 61, 62, 63, 128, 129, 130, 131, 40, 41, 42, 43, 148, 149, 150, 151, 56, 57, 58, 59, 132, 133, 134, 135,
803 136, 137, 138, 139, 140, 141, 142, 143, 96, 97, 98, 99, 64, 65, 66, 67, 100, 101, 102, 103, 84, 85, 86, 87, 152, 153, 154, 155, 68, 69, 70, 71,
804 156, 157, 158, 159, 144, 145, 146, 147, 44, 45, 46, 47, 76, 77, 78, 79, 48, 49, 50, 51, 20, 21, 22, 23, 32, 33, 34, 35, 116, 117, 118, 119,
805 75, 74, 73, 72, 92, 93, 94, 95, 16, 17, 18, 19, 80, 81, 82, 83, 115, 114, 113, 112, 24, 25, 26, 27, 88, 89, 90, 91, 0, 1, 2, 3
808 Int_t iInd = iFeet * 32 + iStr;
810 for (; i < 160; i++) {
811 if (iInd == iChMap[i])
break;
814 Int_t iFeetInd = (i - iStrMap) / 32;
842 LOG(debug) <<
"Buc of GBTX " << uGbtx <<
" Ch " << uCh
843 << Form(
", Feet %1d, Str %2d, Ind %3d, i %3d, FeetInd %1d, Rpc %1d, Side %1d, Str %2d ", iFeet,
844 iStr, iInd, i, iFeetInd, iRpcMap, iSideMap, iStrMap);