Changeset 1400
- Timestamp:
- 07/12/02 10:13:34 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mgui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
r1390 r1400 317 317 318 318 fDrawingPad->SetBorderMode(0); 319 fDrawingPad->SetFillColor(22); 319 320 320 321 // … … 341 342 342 343 // 343 // Setup the correct environment344 //345 gPad->SetFillColor(22);346 347 //348 344 // Draw all pixels of the camera 349 345 // (means apend all pixelobjects to the current pad) … … 351 347 for (UInt_t i=0; i<fNumPixels; i++) 352 348 { 349 #if ROOT_VERSION_CODE > ROOT_VERSION(3,01,06) 350 (*this)[i].SetBit(kNoContextMenu|kCannotPick); 351 #endif 353 352 (*this)[i].SetFillColor(22); 354 353 (*this)[i].Draw(); … … 371 370 box->SetY2(H*((i+1)*h - 1.)); 372 371 box->SetFillColor(22); 372 #if ROOT_VERSION_CODE > ROOT_VERSION(3,01,06) 373 box->SetBit(kNoContextMenu|kCannotPick); 374 #endif 373 375 box->Draw(); 374 376 … … 376 378 txt->SetX(fRange+1.5*w); 377 379 txt->SetY(H*((i+0.5)*h - 1.)); 380 #if ROOT_VERSION_CODE > ROOT_VERSION(3,01,06) 381 txt->SetBit(kNoContextMenu|kCannotPick); 382 #endif 378 383 txt->Draw(); 379 384 } … … 400 405 const MHexagon &h = (MHexagon&)*(*fPixels)[i]; 401 406 TText *nt = txt.DrawText(h.GetX(), h.GetY(), num); 402 nt->SetTextSize(0. 0005*h.GetD());407 nt->SetTextSize(0.3*h.GetD()/fGeomCam->GetMaxRadius()); 403 408 } 404 409 } … … 460 465 // Update display physically 461 466 // 462 gPad->Modified();463 gPad->Update();467 fDrawingPad->Modified(); 468 fDrawingPad->Update(); 464 469 } 465 470 -
trunk/MagicSoft/Mars/mgui/MGeomCamCT1.cc
r1330 r1400 77 77 { 1, 8, 18, 19, 20, 36}, 78 78 { 1, 2, 7, 9, 20, 21}, 79 { 2, 8, 10, 21, 22, 23}, // 1080 { 2, 3, 9, 11, 23, 24}, 79 { 2, 8, 10, 21, 22, 23}, 80 { 2, 3, 9, 11, 23, 24}, // 10 81 81 { 3, 10, 12, 24, 25, 26}, 82 82 { 3, 4, 11, 13, 26, 27}, … … 87 87 { 6, 16, 18, 33, 34, 35}, 88 88 { 1, 6, 7, 17, 35, 36}, 89 { 7, 20, 36, 37, 38, 60}, // 2090 { 7, 8, 19, 21, 38, 39}, 89 { 7, 20, 36, 37, 38, 60}, 90 { 7, 8, 19, 21, 38, 39}, // 20 91 91 { 8, 9, 20, 22, 39, 40}, 92 92 { 9, 21, 23, 40, 41, 42}, … … 97 97 { 12, 13, 26, 28, 47, 48}, 98 98 { 13, 27, 29, 48, 49, 50}, 99 { 13, 14, 28, 30, 50, 51}, // 30100 { 14, 15, 29, 31, 51, 52}, 99 { 13, 14, 28, 30, 50, 51}, 100 { 14, 15, 29, 31, 51, 52}, // 30 101 101 { 15, 30, 32, 52, 53, 54}, 102 102 { 15, 16, 31, 33, 54, 55}, … … 107 107 { 19, 38, 60, 61, 62, 90}, 108 108 { 19, 20, 37, 39, 62, 63}, 109 { 20, 21, 38, 40, 63, 64}, // 40110 { 21, 22, 39, 41, 64, 65}, 109 { 20, 21, 38, 40, 63, 64}, 110 { 21, 22, 39, 41, 64, 65}, // 40 111 111 { 22, 40, 42, 65, 66, 67}, 112 112 { 22, 23, 41, 43, 67, 68}, … … 117 117 { 26, 27, 46, 48, 73, 74}, 118 118 { 27, 28, 47, 49, 74, 75}, 119 { 28, 48, 50, 75, 76, 77}, // 50120 { 28, 29, 49, 51, 77, 78}, 119 { 28, 48, 50, 75, 76, 77}, 120 { 28, 29, 49, 51, 77, 78}, // 50 121 121 { 29, 30, 50, 52, 78, 79}, 122 122 { 30, 31, 51, 53, 79, 80}, … … 127 127 { 34, 56, 58, 85, 86, 87}, 128 128 { 34, 35, 57, 59, 87, 88}, 129 { 35, 36, 58, 60, 88, 89}, // 60130 { 19, 36, 37, 59, 89, 90}, 129 { 35, 36, 58, 60, 88, 89}, 130 { 19, 36, 37, 59, 89, 90}, // 60 131 131 { 37, 62, 90, 91, 92, 126}, 132 132 { 37, 38, 61, 63, 92, 93}, … … 137 137 { 41, 42, 66, 68, 98, 99}, 138 138 { 42, 43, 67, 69, 99, 100}, 139 { 43, 44, 68, 70, 100, 101}, // 70140 { 44, 45, 69, 71, 101, 102}, 139 { 43, 44, 68, 70, 100, 101}, 140 { 44, 45, 69, 71, 101, 102}, // 70 141 141 { 45, 70, 72, 102, 103, 104}, 142 142 { 45, 46, 71, 73, 104, 105}, … … 147 147 { 49, 50, 76, 78, 110, 111}, 148 148 { 50, 51, 77, 79, 111, 112}, 149 { 51, 52, 78, 80, 112, 113}, // 80150 { 52, 53, 79, 81, 113, 114}, 149 { 51, 52, 78, 80, 112, 113}, 150 { 52, 53, 79, 81, 113, 114}, // 80 151 151 { 53, 80, 82, 114, 115, 116}, 152 152 { 53, 54, 81, 83, 116, 117}, … … 157 157 { 57, 58, 86, 88, 122, 123}, 158 158 { 58, 59, 87, 89, 123, 124}, 159 { 59, 60, 88, 90, 124, 125}, // 90160 { 37, 60, 61, 89, 125, 126}, 161 { 61, 92, 126, 127, -1, -1},159 { 59, 60, 88, 90, 124, 125}, 160 { 37, 60, 61, 89, 125, 126}, // 90 161 { 61, 92, 126, -1, -1, -1}, 162 162 { 61, 62, 91, 93, -1, -1}, 163 163 { 62, 63, 92, 94, -1, -1}, … … 167 167 { 66, 96, 98, -1, -1, -1}, 168 168 { 66, 67, 97, 99, -1, -1}, 169 { 67, 68, 98, 100, -1, -1}, // 100170 { 68, 69, 99, 101, -1, -1}, 169 { 67, 68, 98, 100, -1, -1}, 170 { 68, 69, 99, 101, -1, -1}, // 100 171 171 { 69, 70, 100, 102, -1, -1}, 172 172 { 70, 71, 101, 103, -1, -1}, … … 177 177 { 74, 75, 106, 108, -1, -1}, 178 178 { 75, 76, 107, 109, -1, -1}, 179 { 76, 108, 110, -1, -1, -1}, // 110180 { 76, 77, 109, 111, -1, -1}, 179 { 76, 108, 110, -1, -1, -1}, 180 { 76, 77, 109, 111, -1, -1}, // 110 181 181 { 77, 78, 110, 112, -1, -1}, 182 182 { 78, 79, 111, 113, -1, -1}, … … 187 187 { 82, 83, 116, 118, -1, -1}, 188 188 { 83, 84, 117, 119, -1, -1}, 189 { 84, 85, 118, 120, -1, -1}, // 120190 { 85, 86, 119, 121, -1, -1}, 189 { 84, 85, 118, 120, -1, -1}, 190 { 85, 86, 119, 121, -1, -1}, // 120 191 191 { 86, 120, 122, -1, -1, -1}, 192 192 { 86, 87, 121, 123, -1, -1}, 193 193 { 87, 88, 122, 124, -1, -1}, 194 194 { 88, 89, 123, 125, -1, -1}, 195 { 89, 90, 124, 126, -1, -1} // 126 195 { 89, 90, 124, 126, -1, -1}, 196 { 61, 90, 91, 125, -1, -1} // 126 196 197 }; 197 198
Note:
See TracChangeset
for help on using the changeset viewer.