Ignore:
Timestamp:
12/01/05 16:43:46 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawFileRead.cc

    r6503 r7438  
    4444
    4545#include <errno.h>
    46 #include <fstream>
    4746
    4847#include <TSystem.h>
     
    5150#include "MLogManip.h"
    5251
     52#include "MZlib.h"
    5353#include "MTime.h"
    5454#include "MParList.h"
     
    127127Byte_t MRawFileRead::IsFileValid(const char *name)
    128128{
    129     ifstream fin(name);
     129    MZlib fin(name);
    130130    if (!fin)
    131131        return 0;
     
    188188
    189189    const char *expname = gSystem->ExpandPathName(name);
    190     fIn = new ifstream(expname);
     190    fIn = new MZlib(expname);
    191191
    192192    const Bool_t noexist = !(*fIn);
     
    194194    {
    195195        *fLog << err << "Cannot open file " << expname << ": ";
    196         *fLog << strerror(errno) << endl;
     196        *fLog << (errno==0?strerror(errno):"Insufficient memory for decompression") << endl;
    197197    }
    198198    else
  • trunk/MagicSoft/Mars/mraw/MRawFileRead.h

    r6500 r7438  
    77
    88class TList;
     9class MZlib;
    910class MTaskList;
    1011
     
    1213{
    1314private:
    14     TList     *fFileNames;      // list of file names
    15     UInt_t     fNumFile;        //! number of next file
    16     UInt_t     fNumEvents;      //! input stream (file to read from)
    17     UInt_t     fNumTotalEvents; //! total number of events in all files
     15    TList    *fFileNames;      // list of file names
     16    UInt_t    fNumFile;        //! number of next file
     17    UInt_t    fNumEvents;      //! input stream (file to read from)
     18    UInt_t    fNumTotalEvents; //! total number of events in all files
    1819
    19     ifstream  *fIn;             //! input stream (file to read from)
     20    MZlib    *fIn;             //! input stream (file to read from)
    2021
    21     MParList  *fParList;        //! tasklist to call ReInit from
     22    MParList *fParList;        //! tasklist to call ReInit from
    2223
    23     UInt_t     fInterleave;
     24    UInt_t    fInterleave;
    2425
    2526    Int_t  OpenNextFile(Bool_t print=kTRUE);
Note: See TracChangeset for help on using the changeset viewer.