180 LOG(info) <<
"InitParameters from " <<
fUnpackPar;
210 LOG(info) <<
"GDPB Id of TOF " << i <<
" : " << std::hex <<
fUnpackPar->
GetGdpbId(i) << std::dec;
220 for (UInt_t uGbtx = 0; uGbtx <
fuNrOfGbtx; ++uGbtx) {
228 LOG(info) <<
"Nr. of possible Tof channels: " << uNrOfChannels;
233 for (UInt_t iGbtx = 0; iGbtx <
fuNrOfGbtx; ++iGbtx) {
239 LOG(info) <<
" Map mTof box " <<
fviModuleId[iGbtx] <<
" at GBTX - iCh = " << iCh;
240 const Int_t RpcMap[5] = {4, 2, 0, 3, 1};
241 for (Int_t iRpc = 0; iRpc <
fviNrOfRpc[iGbtx]; iRpc++) {
245 for (Int_t iStr = 0; iStr < iStrMax; iStr++) {
246 Int_t iStrMap = iStr;
247 Int_t iRpcMap = RpcMap[iRpc];
249 if (
fviRpcSide[iGbtx] == 0) iStrMap = 31 - iStr;
264 LOG(info) <<
"Start eTOF module side " <<
fviRpcSide[iGbtx] <<
" at " << iCh;
265 const Int_t RpcMap[3] = {0, 1, 2};
266 for (Int_t iRpc = 0; iRpc <
fviNrOfRpc[iGbtx]; iRpc++) {
270 for (Int_t iStr = 0; iStr < iStrMax; iStr++) {
271 Int_t iStrMap = iStr;
272 Int_t iRpcMap = RpcMap[iRpc];
274 if (
fviRpcSide[iGbtx] == 0) iStrMap = 31 - iStr;
290 LOG(info) <<
" Map diamond at GBTX - iCh = " << iCh;
314 UInt_t uChannelBmon = uCh / 8 + 4 *
fviRpcSide[iGbtx];
317 LOG(info) << Form(
"Bmon channel: %u from GBTx %2u Fee %2u "
318 "Channel %2u, indx %d address %08x",
319 uChannelBmon, iGbtx, uFee, uCh, iCh,
fviRpcChUId[iCh]);
336 LOG(info) <<
" Map CERN 20 gap at GBTX - iCh = " << iCh;
338 const Int_t StrMap[32] = {0, 1, 2, 3, 4, 31, 5, 6, 7, 30, 8,
339 9, 10, 29, 11, 12, 13, 14, 28, 15, 16, 17,
340 18, 27, 26, 25, 24, 23, 22, 21, 20, 19};
343 Int_t iModuleType = 7;
345 for (Int_t iFeet = 0; iFeet < 2; iFeet++) {
346 for (Int_t iStr = 0; iStr < 32; iStr++) {
347 Int_t iStrMap = 31 - 12 - StrMap[iStr];
348 Int_t iSideMap = iFeet;
357 LOG(info) <<
" Map end CERN 20 gap at GBTX - iCh = " << iCh;
363 Int_t iModuleType = 8;
364 for (Int_t iRpc = 0; iRpc < 8; iRpc++) {
368 iCh += (24 + 2 * 32);
371 LOG(info) <<
" Map end ceramics box at GBTX - iCh = " << iCh;
378 LOG(info) <<
" Map Star2 box " <<
fviModuleId[iGbtx] <<
" at GBTX - iCh = " << iCh;
379 const Int_t iRpc[5] = {1, -1, 1, 0, 0};
380 const Int_t iSide[5] = {1, -1, 0, 1, 0};
381 for (Int_t iFeet = 0; iFeet < 5; iFeet++) {
382 for (Int_t iStr = 0; iStr < 32; iStr++) {
383 Int_t iStrMap = iStr;
384 Int_t iRpcMap = iRpc[iFeet];
385 Int_t iSideMap = iSide[iFeet];
386 if (iSideMap == 0) iStrMap = 31 - iStr;
390 iRpcMap = 1 - iRpcMap;
397 iStrMap = 31 - iStrMap;
419 LOG(info) <<
" Map Buc box at GBTX - iCh = " << iCh;
420 const Int_t iRpc[5] = {0, -1, 0, 1, 1};
421 const Int_t iSide[5] = {1, -1, 0, 1, 0};
422 for (Int_t iFeet = 0; iFeet < 5; iFeet++) {
423 for (Int_t iStr = 0; iStr < 32; iStr++) {
424 Int_t iStrMap = iStr;
425 Int_t iRpcMap = iRpc[iFeet];
426 Int_t iSideMap = iSide[iFeet];
431 iRpcMap = 1 - iRpcMap;
435 iSideMap = 1 - iSideMap;
439 iRpcMap = 1 - iRpcMap;
440 iSideMap = 1 - iSideMap;
443 iRpcMap = 1 - iRpcMap;
451 case 0: iRpcMap = 0;
break;
452 case 1: iRpcMap = 1;
break;
454 if (iFeet % 2 == 1) iModuleIdMap = 1;
460 case 3: iSideMap = 0;
break;
462 case 2: iSideMap = 1;
break;
468 const Int_t iChMap[160]={
469 127, 126, 125, 124, 12, 13, 14, 15, 7, 6, 5, 4, 28, 29, 30, 31, 123, 122, 121, 120, 8, 9, 10, 11, 107, 106, 105, 104, 108, 109, 110, 111,
470 39, 38, 37, 36, 52, 53, 54, 55, 63, 62, 61, 60, 128, 129, 130, 131, 43, 42, 41, 40, 148, 149, 150, 151, 59, 58, 57, 56, 132, 133, 134, 135,
471 139, 138, 137, 136, 140, 141, 142, 143, 99, 98, 97, 96, 64, 65, 66, 67, 103, 102, 101, 100, 84, 85, 86, 87, 155, 154, 153, 152, 68, 69, 70, 71,
472 159, 158, 157, 156, 144, 145, 146, 147, 47, 46, 45, 44, 76, 77, 78, 79, 51, 50, 49, 48, 20, 21, 22, 23, 35, 34, 33, 32, 116, 117, 118, 119,
473 75, 74, 73, 72, 92, 93, 94, 95, 19, 18, 17, 16, 80, 81, 82, 83, 115, 114, 113, 112, 24, 25, 26, 27, 91, 90, 89, 88, 0, 1, 2, 3
476 Int_t iInd = iFeet * 32 + iStr;
479 if (iInd == iChMap[i])
break;
481 Int_t iFeetInd = (i - iStrMap) / 32;
499 case 4: iSideMap = -1;
break;
502 LOG(info) <<
"Buc of GBTX " << iGbtx <<
" Ch " << iCh
503 << Form(
", Feet %1d, Str %2d, Ind %3d, i %3d, FeetInd %1d, Rpc %1d, Side %1d, Str %2d ",
504 iFeet, iStr, iInd, i, iFeetInd, iRpcMap, iSideMap, iStrMap);
520 LOG(info) <<
" Found unused GBTX link at iCh = " << iCh;
524 default: LOG(error) <<
"Invalid Tof Type specifier ";
527 TString sPrintout =
"";
528 for (UInt_t uCh = 0; uCh < uNrOfChannels; ++uCh) {
529 if (0 == uCh % 8) sPrintout +=
"\n";
533 LOG(info) << sPrintout;
575 for (UInt_t uGdpb = 0; uGdpb <
fuNrOfGdpbs; ++uGdpb) {