Changeset 2194


Ignore:
Timestamp:
06/18/03 12:02:47 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2190 r2194  
    1111     - changed histogram name
    1212     - added axis titles
     13
     14   * mbase/MLog.cc:
     15     - include iomanip onstead of MLogManip
     16
     17   * mbase/MLogManip.h:
     18     - replaced preprocessor defintions for all, warn, inf, err and dbg
     19       by const variable declarations
     20     - fixed dynamic_casts
     21
     22   * macros/merpp.C:
     23     - made capable of more than one directory
     24     
     25   * mmain/MStatusDisplay.cc:
     26     - removed an unsused variable
    1327
    1428
  • trunk/MagicSoft/Mars/macros/merpp.C

    r948 r2194  
    3838/////////////////////////////////////////////////////////////////////////////
    3939
    40 void merpp()
     40void ProcessFile(TString fname)
    4141{
    4242    //
     
    5959    //         (Using root 2.25/03, with Cint 5.14.50 on OSF1)
    6060    //
    61 
    62     MRawFileRead  reader("/home/tbretz/data/20010219-00020-d-octobertest-e");
    63     MRawFileWrite writer("otest.root", "RECREATE");
     61    MRawFileRead  reader(fname);
     62    MRawFileWrite writer(fname(0, fname.Last('.')+1) + "root");
    6463    tasks.AddToList(&reader);
    6564    tasks.AddToList(&writer);
     
    8382}
    8483
     84void merpp(const char *dirname="/home/MAGIC/online_data/rawdata/")
     85{
     86    MDirIter Next;
     87    Next.AddDirectory(dirname, "*.raw", -1);
    8588
     89    TString fname;
     90    while (1)
     91    {
     92        fname = Next();
     93        if (fname.IsNull())
     94            break;
     95
     96        ProcessFile(fname);
     97    }
     98}
     99
  • trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc

    r2182 r2194  
    14521452    while (1)
    14531453    {
    1454         streampos p1 = f.tellg();
    14551454        f.read(c[(i+1)%2], l);
    14561455        f.seekp(-l, ios::cur);
Note: See TracChangeset for help on using the changeset viewer.