Changeset 19706 for trunk/Mars/mjobs


Ignore:
Timestamp:
10/01/19 15:28:17 (5 years ago)
Author:
tbretz
Message:
Improved naming convention.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mjobs/MJSimulation.cc

    r19694 r19706  
    817817            fFileOut = fFileOut.Remove(dot);
    818818    }
     819
     820    const char *regex = fRunNumber<0 ?
     821        "s/[cC][eE][rR]([0-9]+)(-[tT][eE][lL]([0-9]+))?/%s\\/00$1.%03d%%s_MonteCarlo$3.root/" :
     822        "s/[cC][eE][rR][0-9]+([0-9][0-9][0-9])(-[tT][eE][lL]([0-9]+))?/%s\\/%08d.$1%%s_MonteCarlo$3.root/";
     823
    819824    const char *fmt = fFileOut.IsNull() ?
    820         Form("s/[cC][eE][rR]([0-9]+)([0-9][0-9][0-9])(-[tT][eE][lL][0-9]+)?/%s\\/%08d.$2%%s_MonteCarlo$1.root/", Esc(fPathOut).Data(), header.GetRunNumber()) :
     825        Form(regex, Esc(fPathOut).Data(), header.GetRunNumber()) :
    821826        Form("%s/%s%%s.root", Esc(fPathOut).Data(), Esc(fFileOut).Data());
    822827
Note: See TracChangeset for help on using the changeset viewer.