Changeset 7888 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
08/19/06 20:26:37 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7887 r7888  
    3030   * mastro/MAstroCatalog.cc, mbase/MParContainer.cc,
    3131     mbase/MStatusDisplay.cc, mbase/MTask.cc, mpointing/MHSrcPosCam.cc
    32      mpointing/MPointingPos.cc:
     32     mpointing/MPointingPos.cc, mbase/MEvtLoop.cc:
    3333     - replaced MString::Form by new function name MString::Format
    3434
  • trunk/MagicSoft/Mars/NEWS

    r7887 r7888  
    1212     the distribution abs(y[i]-median) but at 68:32 division instead
    1313     of 50:50, which is somehow the mediani counterpart of the rms.
     14
     15   - general: MAstroCatalog allows now to read calatog files (as bsc5)
     16     even if they are compressed with gzip (recommended compression
     17     is with "-1")
    1418
    1519   - showplot:
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.cc

    r7804 r7888  
    8585#include "MLogManip.h"
    8686
     87#include "MString.h"
    8788#include "MParList.h"
    8889#include "MTaskList.h"
     
    272273UInt_t MEvtLoop::GetMemoryUsage()
    273274{
    274     const TString path = Form("/proc/%d/status", gSystem->GetPid());
     275    const TString path = MString::Format("/proc/%d/status", gSystem->GetPid());
    275276    if (gSystem->AccessPathName(path, kFileExists))
    276277        return 0;
     
    378379    // Set new progress bar position
    379380    //
    380     if (fProgress && fNumEvents>0)
    381         fProgress->SetPosition((Double_t)num/fNumEvents);
     381    if (fNumEvents>0 && fProgress)
     382    {
     383        const Double_t pos = (Double_t)num/fNumEvents;
     384        fProgress->SetPosition(pos);
     385//        if (gROOT->IsBatch())
     386//            *fLog << all << MString::Format("%.1f", pos) << "%..." << flush;
     387    }
    382388
    383389    // FIXME: This is a workaround, because TApplication::Run is not
     
    906912// If available print the contents of the parameter list.
    907913//
    908 void MEvtLoop::Print(Option_t *opt) const
     914void MEvtLoop::Print(Option_t *) const
    909915{
    910916    if (fParList)
Note: See TracChangeset for help on using the changeset viewer.