Ignore:
Timestamp:
08/16/02 11:47:30 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHHillasExt.cc

    r1502 r1504  
    8080    fHM3Trans.SetDirectory(NULL);
    8181
     82    fHConc.SetName("Conc2");
     83    fHConc1.SetName("Conc1");
     84    fHAsym.SetName("Asymmetry");
     85    fHM3Long.SetName("3rd Mom Long");
     86    fHM3Trans.SetName("3rd Mom Trans");
     87
    8288    fHConc.SetTitle("Ratio: Conc");
    8389    fHConc1.SetTitle("Ratio: Conc1");
     
    261267
    262268    c.cd(1);
    263     TObject *obj;
    264     TLegend *l = new TLegend(0.75, 0.8, 0.9, 0.9);
    265     obj = ((TH1F)fHConc1).DrawCopy();
    266     ((TH1*)obj)->SetTitle(" Concentrations ");
    267     l->AddEntry(obj, "Conc1");
    268     obj = ((TH1F)fHConc).DrawCopy("same");
    269     l->AddEntry(obj,  "Conc2");
    270     l->SetBit(kCanDelete);
    271     l->Draw();
     269    DrawCopy(fHConc1, fHConc, "Concentrations");
    272270
    273271    c.cd(2);
    274     ((TH1F)fHAsym).DrawCopy();
     272    ((TH1&)fHAsym).DrawCopy();
    275273
    276274    c.cd(3);
    277     ((TH1F)fHM3Long).DrawCopy();
     275    ((TH1&)fHM3Long).DrawCopy();
    278276
    279277    c.cd(4);
    280     ((TH1F)fHM3Trans).DrawCopy();
     278    ((TH1&)fHM3Trans).DrawCopy();
    281279
    282280    c.Modified();
     
    300298
    301299    gPad->cd(1);
    302     fHConc1.Draw();
    303     fHConc.Draw("same");
    304 
    305     TLegend *l = new TLegend(0.75, 0.8, 0.9, 0.9);
    306     l->AddEntry((TH1*)&fHConc1, "Conc 1");
    307     l->AddEntry((TH1*)&fHConc,  "Conc");
    308     l->SetBit(kCanDelete);
    309     l->Draw();
     300    MH::Draw(fHConc1, fHConc, "Concentrations");
    310301
    311302    gPad->cd(2);
Note: See TracChangeset for help on using the changeset viewer.