513 const int ip_r7[6][2] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
530 cout <<
"-E- CbmBmnStsDigitize::ApplyAlignment: Cannot find top GEM node" << endl;
539 cout <<
"STATIONS : " << nStat0 << endl;
541 Double_t xAlign[26] = {3.33029, -2.67835, 2.82585, -3.14615,
543 8.91918, 2.92088, -3.09752, -9.09492, 8.91198, 2.94528, -2.98182, -8.98402,
544 -40.718, 40.916, 41.087, -40.6, 42.28, -39.431, -38.452, 43.252,
545 44.078, -37.598, -36.8112, 44.8227};
547 Double_t yAlign[26] = {4.46297, 5.07597, -1.48803, -0.910531,
549 7.84856, 7.80306, 7.92256, 7.85506, -4.57154, -4.61864, -4.43934, -4.51954,
550 22.5211, 22.2759, 22.574, 22.6124, 22.8827, 22.516, 22.5385, 22.9377,
551 22.5828, 22.3481, 22.7875, 23.007};
553 Double_t zAlign3[9] = {14.352475, 17.68975, 26.2729875,
554 42.19995, 67.76995, 115.569, 137.8325, 163.54, 186.103};
557 -0.406375, 0.430925, 0.274025, -0.298575,
559 0.540813, -1.06009, 0.653113, -0.915988, -0.719887, 0.761012, -0.386287, 1.12281,
560 0.08685, -0.08685, -0.07145, 0.07145, -0.128, 0.128, 0.0115, -0.0115,
561 -0.004, 0.004, 0, 0};
564 Int_t stn = 0, SensCh = 0;
566 for (
Int_t iNode = 0; iNode < nStat0; iNode++) {
571 if (!statName.
Contains(
"station")) {
581 cout <<
"statNr : " << statNr <<
", " << statTrans[2] <<
" zal: " << zAlign3[statNr - 1] << endl;
582 statTrans[2] = zAlign3[statNr - 1];
602 Int_t moduleNr = 0, copy_no = 0;
605 for (
Int_t iStatD = 0; iStatD < nModules; iStatD++) {
613 cout << iStatD <<
" " << module->
GetName() <<
" stn: " << statNr << endl;
618 Int_t nOfModSi = SensCh;
619 cout <<
"modSI: " << nOfModSi <<
" " << zAlign23[nOfModSi] << endl;
624 modTrans[0] = xAlign[nOfModSi];
625 modTrans[1] = yAlign[nOfModSi];
626 modTrans[2] = zAlign23[nOfModSi];
654 cout <<
" aaaa ^^^^^^^^^^^^^^^^^^^ : " << statNr - 1;
655 cout <<
"\n" << moduleNr;
656 cout <<
"\n" << ip_r7[(statNr - 1) - 3][moduleNr] << endl;
658 modTrans[0] = xAlign[ip_r7[(statNr - 1) - 3][moduleNr] + 14];
659 modTrans[1] = yAlign[ip_r7[(statNr - 1) - 3][moduleNr]
661 modTrans[2] = zAlign23[ip_r7[(statNr - 1) - 3][moduleNr] + 14];
683 vector<TGeoNode*> removNodes;
685 for (
Int_t iNode = 0; iNode < nStat0; iNode++) {
690 cout <<
" st name del: " << stationNode->
GetName() <<
" iNode: " << iNode << endl;
691 removNodes.push_back(stationNode);
695 for (
size_t o = 0; o < removNodes.size(); o++)
699 for (
Int_t iNode = 0; iNode < nStat0; iNode++) {
706 if (!statName.
Contains(
"station")) {
712 for (
Int_t iStatD = 0; iStatD < nMod; iStatD++) {
724 for (
Int_t iStatD = 0; iStatD < currNodes; iStatD++) {
749 cout <<
" Check-in STATION: " << stationNode->
GetName()
750 <<
" zpos : " <<
gGeoManager->GetCurrentMatrix()->GetTranslation()[2] << endl;
756 if (gName.Contains(
"frame")) {
763 cout <<
" Check-in st name : " << stationNode->
GetName() <<
" mod name : " << moduleNode->
GetName() << endl;
765 cout <<
"trans mod: " << sensTrans[0] <<
" " << sensTrans[1] <<
" " << sensTrans[2] << endl;
778 cout <<
" Check-in st name : " << stationNode->
GetName() <<
" hot name : " << moduleNode2->
GetName()
780 sensTrans =
gGeoManager->GetCurrentMatrix()->GetTranslation();
781 cout <<
"trans hot: " << sensTrans[0] <<
" " << sensTrans[1] <<
" " << sensTrans[2] << endl;