Ignore:
Timestamp:
02/07/09 20:40:28 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhbase
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhbase/MFillH.cc

    r9153 r9302  
    9393#include "MLogManip.h"
    9494
     95#include "MString.h"
     96
    9597#include "MH.h"
    9698#include "MHArray.h"
     
    599601    if (fDisplay && fDisplay->HasCanvas(fCanvas))
    600602    {
    601         const TString opt(Form("nonew %s", fDrawOption.Data()));
     603        const TString opt(MString::Format("nonew %s", fDrawOption.Data()));
    602604        fCanvas->cd();
    603605        // Remove the old class to prevent clashes calling
  • trunk/MagicSoft/Mars/mhbase/MH.cc

    r9195 r9302  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MH.cc,v 1.42 2008-12-21 18:09:49 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MH.cc,v 1.43 2009-02-07 20:40:12 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    7474#include "MLogManip.h"
    7575
     76#include "MString.h"
     77
    7678#include "MParList.h"
    7779#include "MParContainer.h"
     
    156158
    157159    if (list->FindObject(name))
    158         name += Form(" <%d>", list->GetSize()+1);
     160        name += MString::Format(" <%d>", list->GetSize()+1);
    159161
    160162    if (!usescreenfactor)
     
    15071509{
    15081510    *fLog << " " << setw(7) << n << " (";
    1509     *fLog << Form("%5.1f", 100.*n/GetNumExecutions());
     1511    *fLog << MString::Format("%5.1f", 100.*n/GetNumExecutions());
    15101512    *fLog << "%) Evts skipped: " << str << endl;
    15111513}
  • trunk/MagicSoft/Mars/mhbase/MH3.cc

    r9195 r9302  
    166166#include "MLog.h"
    167167#include "MLogManip.h"
     168
     169#include "MString.h"
    168170
    169171#include "MParList.h"
     
    643645        if (gPad)
    644646        {
    645             const TString pfx(Form("%sProfX", fHist->GetName()));
    646             const TString pfy(Form("%sProfY", fHist->GetName()));
     647            const TString pfx(MString::Format("%sProfX", fHist->GetName()));
     648            const TString pfy(MString::Format("%sProfY", fHist->GetName()));
    647649
    648650            TProfile *p = 0;
    649651            if ((p=dynamic_cast<TProfile*>(gPad->FindObject(pfx))))
    650                 p->SetName(Form("%sProfX", name));
     652                p->SetName(MString::Format("%sProfX", name));
    651653            if ((p=dynamic_cast<TProfile*>(gPad->FindObject(pfy))))
    652                 p->SetName(Form("%sProfY", name));
     654                p->SetName(MString::Format("%sProfY", name));
    653655        }
    654656
     
    851853        MH::SetPalette("pretty");
    852854
    853     const TString pfx(Form("%sProfX", fHist->GetName()));
     855    const TString pfx(MString::Format("%sProfX", fHist->GetName()));
    854856    if ((p=dynamic_cast<TProfile*>(gPad->FindObject(pfx))))
    855857    {
     
    859861    }
    860862
    861     const TString pfy(Form("%sProfY", fHist->GetName()));
     863    const TString pfy(MString::Format("%sProfY", fHist->GetName()));
    862864    if ((p=dynamic_cast<TProfile*>(gPad->FindObject(pfy))))
    863865    {
     
    969971    if (profx)
    970972    {
    971         const TString pfx(Form("%sProfX", fHist->GetName()));
     973        const TString pfx(MString::Format("%sProfX", fHist->GetName()));
    972974
    973975        if (same && (p=dynamic_cast<TProfile*>(gPad->FindObject(pfx))))
     
    985987    if (profy)
    986988    {
    987         const TString pfy(Form("%sProfY", fHist->GetName()));
     989        const TString pfy(MString::Format("%sProfY", fHist->GetName()));
    988990
    989991        if (same && (p=dynamic_cast<TProfile*>(gPad->FindObject(pfy))))
     
    12981300    delete arr;
    12991301}
     1302
     1303void MH3::RecursiveRemove(TObject *obj)
     1304{
     1305    if (obj==fHist)
     1306        fHist = 0;
     1307}
  • trunk/MagicSoft/Mars/mhbase/MH3.h

    r9153 r9302  
    158158    void Paint(Option_t *opt="");
    159159
     160    void RecursiveRemove(TObject *obj);
     161
    160162    ClassDef(MH3, 4) // Generalized 1/2/3D-histogram for Mars variables
    161163};
  • trunk/MagicSoft/Mars/mhbase/MHn.cc

    r9153 r9302  
    136136
    137137#include "MH3.h"
     138#include "MString.h"
    138139
    139140ClassImp(MHn);
     
    170171        if (name==fHist[i]->GetName())
    171172        {
    172             name += Form("_%d", fNum);
     173            name += MString::Format("_%d", fNum);
    173174            break;
    174175        }
Note: See TracChangeset for help on using the changeset viewer.