Changeset 4898 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 09/09/04 17:02:18 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MReadRflFile.cc
r3568 r4898 300 300 // open the file which is the first one in the chain 301 301 // 302 const TString name = file->GetName(); 303 304 const char *expname = gSystem->ExpandPathName(name); 305 const TString fname(expname); 306 delete [] expname; 302 fFileName = file->GetName(); 303 const TString expname = fFileName; 304 gSystem->ExpandPathName(expname); 307 305 308 306 // … … 311 309 //fFileNames->Remove(file); 312 310 313 *fLog << inf << "Open file: '" << name << "'" << endl;314 315 fIn = new ifstream( name);311 *fLog << inf << "Open file: '" << fFileName << "'" << endl; 312 313 fIn = new ifstream(expname); 316 314 if (!*fIn) 317 315 { 318 *fLog << err << "Cannot open file " << name << ": ";316 *fLog << err << "Cannot open file " << expname << ": "; 319 317 *fLog << strerror(errno) << endl; 320 318 return kFALSE; … … 322 320 323 321 *fLog << inf; 324 fLog->Separator( name);322 fLog->Separator(fFileName); 325 323 326 324 fCurrentVersion = ReadVersion(); -
trunk/MagicSoft/Mars/mfileio/MReadRflFile.h
r2296 r4898 27 27 UInt_t fNumFile; 28 28 UInt_t fEntries; // TO BE IMPLEMENTED 29 TString fFileName; 29 30 30 31 Float_t fCurrentVersion; //! Version of currently open rfl file … … 52 53 Bool_t Rewind() { fNumFile=0; return kTRUE; } 53 54 UInt_t GetEntries() { return fEntries; } 55 TString GetFileName() const { return fFileName; } 54 56 55 57 Bool_t SearchFor(Int_t runno, Int_t eventno);
Note:
See TracChangeset
for help on using the changeset viewer.