Changeset 19434 for trunk/Mars/mfileio


Ignore:
Timestamp:
02/05/19 15:58:35 (6 years ago)
Author:
tbretz
Message:
Use the filename directly if only a filename is given (warning: if multiple files are read, this might fail)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mfileio/MWriteFitsFile.cc

    r19288 r19434  
    12211221   fClHelper.clear();
    12221222
     1223   const Bool_t hasrule = fRule.BeginsWith("s/") && fRule.EndsWith("/");
     1224
    12231225   // get new filename
    12241226   const TString readFileName = read->GetFullFileName();
    1225    const TString newname = MWriteRootFile::SubstituteName(fRule, readFileName);
     1227   const TString newname = hasrule ? MWriteRootFile::SubstituteName(fRule, readFileName) : fRule;
    12261228
    12271229   // create new files
Note: See TracChangeset for help on using the changeset viewer.