Changeset 11454


Ignore:
Timestamp:
07/18/11 17:48:09 (13 years ago)
Author:
tbretz
Message:
Fixed raplacing of extension and added fits as a valid extension.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/merpp.cc

    r9388 r11454  
    4747    gLog << all << endl;
    4848    gLog << "Sorry the usage is:" << endl;
    49     gLog << " merpp [options] [tel:]seqnumber [outpath [inpath]]" << endl;
    50     gLog << " merpp [options] [tel:]seqnumber outpath sumfile.txt" << endl;
    51     gLog << " merpp [options] seqfile.txt     [outpath [inpath]]" << endl;
    52     gLog << " merpp [options] seqfile.txt     outpath sumfile.txt" << endl;
     49    gLog << " merpp [options] [tel:]seqnumber  [outpath [inpath]]" << endl;
     50    gLog << " merpp [options] [tel:]seqnumber  outpath sumfile.txt" << endl;
     51    gLog << " merpp [options] seqfile.txt      [outpath [inpath]]" << endl;
     52    gLog << " merpp [options] seqfile.txt      outpath sumfile.txt" << endl;
    5353//    gLog << " merpp [options] mysql           [outpath [inpath]]" << endl;
    5454//    gLog << " merpp [options] mysql           outpath sumfile.txt" << endl;
    55     gLog << " merpp [options] infile.raw.[gz] [outfile.root]" << endl;
    56     gLog << " merpp [options] infile.rep      [outfile.root]" << endl;
    57     gLog << " merpp [options] infile.txt      outfile.root" << endl;
     55    gLog << " merpp [options] infile.raw[.gz]  [outfile.root]" << endl;
     56    gLog << " merpp [options] infile.fits[.gz] [outfile.root]" << endl;
     57    gLog << " merpp [options] infile.rep       [outfile.root]" << endl;
     58    gLog << " merpp [options] infile.txt       outfile.root" << endl;
    5859    gLog << endl;
    5960    gLog << " Arguments:" << endl;
     
    125126{
    126127    return
    127         name.EndsWith(".rep") || name.EndsWith(".txt")    ||
    128         name.EndsWith(".raw") || name.EndsWith(".raw.gz") ||
    129         name.EndsWith(".root");
     128        name.EndsWith(".rep")  || name.EndsWith(".txt")    ||
     129        name.EndsWith(".raw")  || name.EndsWith(".raw.gz") ||
     130        name.EndsWith(".root") ||
     131        name.EndsWith(".fits") || name.EndsWith(".fits.gz");
    130132}
    131133
     
    232234    else
    233235    {
    234         kNamein = arg0;
    235         kNameout = arg1(0, kNamein.Last('.'));
     236        kNamein  = arg0;
     237        kNameout = arg1.IsNull() ? arg0(0, arg0.Last('.')) : arg1(0, arg1.Last('.'));
     238
    236239        if (!kNameout.EndsWith(".root"))
    237240            kNameout += ".root";
Note: See TracChangeset for help on using the changeset viewer.