Changeset 4898
- Timestamp:
- 09/09/04 17:02:18 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4897 r4898 34 34 35 35 36 36 37 2004/09/09: Thomas Bretz 37 38 … … 52 53 * mjobs/Makefile: 53 54 - added path to mhvstime 55 56 * manalysis/MParameters.[h,cc]: 57 - added Print() functions 58 59 * mfileio/MReadReports.[h,cc], mfileio/MReadTree.[h,cc]: 60 - moved setting of StreamId from MReadReports To MReadTree 61 62 * mhbase/MH.cc: 63 - workaround all the this which are reset in TAxis::Set 64 65 * mfileio/MReadRflFile.[h,cc]: 66 - added missing abstract functions 54 67 55 68 -
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.