Ignore:
Timestamp:
09/09/04 17:02:18 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfileio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MReadRflFile.cc

    r3568 r4898  
    300300    // open the file which is the first one in the chain
    301301    //
    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);
    307305
    308306    //
     
    311309    //fFileNames->Remove(file);
    312310
    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);
    316314    if (!*fIn)
    317315    {
    318         *fLog << err << "Cannot open file " << name << ": ";
     316        *fLog << err << "Cannot open file " << expname << ": ";
    319317        *fLog << strerror(errno) << endl;
    320318        return kFALSE;
     
    322320
    323321    *fLog << inf;
    324     fLog->Separator(name);
     322    fLog->Separator(fFileName);
    325323
    326324    fCurrentVersion = ReadVersion();
  • trunk/MagicSoft/Mars/mfileio/MReadRflFile.h

    r2296 r4898  
    2727    UInt_t fNumFile;
    2828    UInt_t fEntries; // TO BE IMPLEMENTED
     29    TString fFileName;
    2930
    3031    Float_t fCurrentVersion; //! Version of currently open rfl file
     
    5253    Bool_t Rewind() { fNumFile=0; return kTRUE; }
    5354    UInt_t GetEntries() { return fEntries; }
     55    TString GetFileName() const { return fFileName; }
    5456
    5557    Bool_t SearchFor(Int_t runno, Int_t eventno);
Note: See TracChangeset for help on using the changeset viewer.