Changeset 11454
- Timestamp:
- 07/18/11 17:48:09 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/merpp.cc
r9388 r11454 47 47 gLog << all << endl; 48 48 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; 53 53 // gLog << " merpp [options] mysql [outpath [inpath]]" << endl; 54 54 // 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; 58 59 gLog << endl; 59 60 gLog << " Arguments:" << endl; … … 125 126 { 126 127 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"); 130 132 } 131 133 … … 232 234 else 233 235 { 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 236 239 if (!kNameout.EndsWith(".root")) 237 240 kNameout += ".root";
Note:
See TracChangeset
for help on using the changeset viewer.