Changeset 2557 for trunk/MagicSoft/Mars/mmain
- Timestamp:
- 11/22/03 21:14:14 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MEventDisplay.cc
r2550 r2557 446 446 // Add Geometry tab 447 447 // 448 MGeomCam *geom = (MGeomCam*)plist->FindObject("MGeomCam"); 449 450 TCanvas &c=AddTab("Geometry"); 451 452 c.SetFillColor(16); 453 454 MHCamera *cam = new MHCamera(*geom); 455 cam->SetBit(TH1::kNoStats|MHCamera::kNoLegend); 456 cam->Draw(); 457 cam->DrawPixelIndices(); 458 fList->Add(cam); 459 460 c.Modified(); 461 c.Update(); 448 AddGeometryTabs(); 462 449 463 450 // … … 485 472 // Adds the geometry tab 486 473 // 487 void MEventDisplay::AddGeometryTab ()474 void MEventDisplay::AddGeometryTabs() 488 475 { 489 476 MGeomCam *geom = (MGeomCam*)fEvtLoop->GetParList()->FindObject("MGeomCam"); … … 491 478 return; 492 479 493 TCanvas &c =AddTab("Geometry");480 TCanvas &c1=AddTab("Geometry"); 494 481 495 482 MHCamera *cam = new MHCamera(*geom); 496 cam->SetBit(TH1::kNoStats); 497 cam->Draw(); 498 cam->DrawPixelIndices(); 483 cam->SetBit(TH1::kNoStats|MHCamera::kNoLegend|kCanDelete); 484 cam->Draw("pixelindex"); 499 485 fList->Add(cam); 500 486 501 c.Modified(); 502 c.Update(); 487 c1.Modified(); 488 c1.Update(); 489 490 TCanvas &c2=AddTab("Sectors"); 491 492 cam = new MHCamera(*geom); 493 cam->SetBit(TH1::kNoStats|MHCamera::kNoLegend|kCanDelete); 494 cam->Draw("sectorindex"); 495 fList->Add(cam); 496 497 c2.Modified(); 498 c2.Update(); 503 499 } 504 500
Note:
See TracChangeset
for help on using the changeset viewer.