Ignore:
Timestamp:
01/27/05 09:52:24 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5701 r6032  
    236236
    237237    pad->cd(2);
    238     if (gPad->FindObject(Form("Proj_%p", this)))
    239     {
    240         TH1 *h=fSum->Projection(Form("Proj_%p", this));
     238    if (gPad->FindObject(Form("%s;proj", fName.Data())))
     239    {
     240        TH1 *h=fSum->Projection(Form("%s;proj", fName.Data()));
    241241        if (h->GetMaximum()>0)
    242242            gPad->SetLogy();
     
    244244
    245245    pad->cd(5);
    246     if (gPad->FindObject(Form("ProfR_%p", this)))
    247         fSum->RadialProfile(Form("ProfR_%p", this));
     246    if (gPad->FindObject(Form("%s;rad", fName.Data())))
     247        fSum->RadialProfile(Form("%s;rad", fName.Data()));
    248248
    249249    pad->cd(6);
    250     if (gPad->FindObject(Form("ProfA_%p", this)))
    251         fSum->AzimuthProfile(Form("ProfA_%p", this));
     250    if (gPad->FindObject(Form("%s;az", fName.Data())))
     251        fSum->AzimuthProfile(Form("%s;az", fName.Data()));
    252252
    253253    pad->cd(4);
    254254    gPad->cd(1);
    255     MHCamera *cam = (MHCamera*)gPad->FindObject(Form("Err_%p", this));
     255    MHCamera *cam = (MHCamera*)gPad->FindObject(Form("%s;err", fName.Data()));
    256256    if (cam)
    257257        cam->SetCamContent(*fSum, 1);
     
    285285    gPad->SetBorderMode(0);
    286286    gPad->SetPad(0.66, 0.5, 0.99, 0.99);
    287     TH1 *h = fSum->Projection(Form("Proj_%p", this), 50);
     287    TH1 *h = fSum->Projection(Form("%s;proj", fName.Data()), 50);
    288288    h->SetTitle("Projection");
    289289    h->SetBit(kCanDelete);
     
    300300
    301301    MHCamera *cam = new MHCamera(*fSum->GetGeometry());
    302     cam->SetName(Form("Err_%p", this));
     302    cam->SetName(Form("%s;err", fName.Data()));
    303303    cam->SetTitle(fSum->TestBit(MHCamera::kVariance)?"Variance":"Root Mean Squared (rms)");
    304304    cam->SetYTitle(fSum->GetYaxis()->GetTitle());
     
    308308
    309309    pad->cd(5);
    310     h = (TH1*)fSum->RadialProfile(Form("ProfR_%p", this), 20);
     310    h = (TH1*)fSum->RadialProfile(Form("%s;rad", fName.Data()), 20);
    311311    h->SetTitle("Radial Profile");
    312312    h->SetBit(kCanDelete|TH1::kNoStats);
     
    314314
    315315    pad->cd(6);
    316     h = (TH1*)fSum->AzimuthProfile(Form("ProfA_%p", this), 30);
     316    h = (TH1*)fSum->AzimuthProfile(Form("%s;az", fName.Data()), 30);
    317317    h->SetTitle("Azimuth Profile");
    318318    h->SetBit(kCanDelete|TH1::kNoStats);
Note: See TracChangeset for help on using the changeset viewer.