Ignore:
Timestamp:
11/22/03 21:14:14 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmain/MEventDisplay.cc

    r2550 r2557  
    446446    // Add Geometry tab
    447447    //
    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();
    462449
    463450    //
     
    485472//  Adds the geometry tab
    486473//
    487 void MEventDisplay::AddGeometryTab()
     474void MEventDisplay::AddGeometryTabs()
    488475{
    489476    MGeomCam *geom = (MGeomCam*)fEvtLoop->GetParList()->FindObject("MGeomCam");
     
    491478        return;
    492479
    493     TCanvas &c=AddTab("Geometry");
     480    TCanvas &c1=AddTab("Geometry");
    494481
    495482    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");
    499485    fList->Add(cam);
    500486
    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();
    503499}
    504500
Note: See TracChangeset for help on using the changeset viewer.