Changeset 7438 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 12/01/05 16:43:46 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r6503 r7438 44 44 45 45 #include <errno.h> 46 #include <fstream>47 46 48 47 #include <TSystem.h> … … 51 50 #include "MLogManip.h" 52 51 52 #include "MZlib.h" 53 53 #include "MTime.h" 54 54 #include "MParList.h" … … 127 127 Byte_t MRawFileRead::IsFileValid(const char *name) 128 128 { 129 ifstreamfin(name);129 MZlib fin(name); 130 130 if (!fin) 131 131 return 0; … … 188 188 189 189 const char *expname = gSystem->ExpandPathName(name); 190 fIn = new ifstream(expname);190 fIn = new MZlib(expname); 191 191 192 192 const Bool_t noexist = !(*fIn); … … 194 194 { 195 195 *fLog << err << "Cannot open file " << expname << ": "; 196 *fLog << strerror(errno) << endl;196 *fLog << (errno==0?strerror(errno):"Insufficient memory for decompression") << endl; 197 197 } 198 198 else -
trunk/MagicSoft/Mars/mraw/MRawFileRead.h
r6500 r7438 7 7 8 8 class TList; 9 class MZlib; 9 10 class MTaskList; 10 11 … … 12 13 { 13 14 private: 14 TList 15 UInt_t 16 UInt_t 17 UInt_t 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 18 19 19 ifstream*fIn; //! input stream (file to read from)20 MZlib *fIn; //! input stream (file to read from) 20 21 21 MParList 22 MParList *fParList; //! tasklist to call ReInit from 22 23 23 UInt_t 24 UInt_t fInterleave; 24 25 25 26 Int_t OpenNextFile(Bool_t print=kTRUE);
Note:
See TracChangeset
for help on using the changeset viewer.