Ignore:
Timestamp:
08/24/04 18:15:29 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/merpp.cc

    r4578 r4723  
    5858static void Usage()
    5959{
     60    //                1         2         3         4         5         6         7         8
     61    //       12345678901234567890123456789012345678901234567890123456789012345678901234567890
    6062    gLog << all << endl;
    6163    gLog << "Sorry the usage is:" << endl;
    62     gLog << " merpp [-h] [-?] [-a] [-vn] [-cn] [-u, -f]" << endl;
    63     gLog << "       inputfile[.rep,[.raw],[.txt]] [outputfile[.root]]" << endl << endl;
     64    gLog << " merpp [options] inputfile[.rep,[.raw],[.txt]] [outputfile[.root]]" << endl << endl;
    6465    gLog << " Arguments:" << endl;
    65     gLog << "   inputfile.raw:  Magic DAQ binary file." << endl;
    66     gLog << "   inputfile.rep:  Magic Central Control report file." << endl;
    67     gLog << "   inputfile.txt:  Magic DC currents file." << endl;
    68     gLog << "   ouputfile.root: Merpped root file." << endl << endl;
     66    gLog << "   inputfile.raw             Magic DAQ binary file." << endl;
     67    gLog << "   inputfile.rep             Magic Central Control report file." << endl;
     68    gLog << "   inputfile.txt             Magic DC currents file." << endl;
     69    gLog << "   ouputfile.root            Merpped root file." << endl << endl;
    6970    gLog << " Options:" << endl;
    70     gLog << "   -c#                Compression level #=1..9 [default=2]" << endl;
    71     gLog << "   -v#                Verbosity level # [default=2]" << endl;
    72     gLog << "   -u, --update       Update file" << endl;
    73     gLog << "   -a, --no-colors    Do not use Ansii color codes" << endl;
    74     gLog << "   -f                 Force overwrite of an existing file" << endl;
    75     gLog << "   --debug[=n]        Enable root debugging (Default: gDebug=1)" << endl;
    76     gLog << "   -?, -h, --help     This help" << endl << endl;
     71    gLog.Usage();
     72    gLog << "   -?, -h, --help            This help" << endl << endl;
     73    gLog << " File Options:" << endl;
     74    gLog << "   -c#                       Compression level #=1..9 [default=2]" << endl;
     75    gLog << "   -f                        Force overwrite of an existing file" << endl << endl;
    7776    gLog << " Raw Data Options:" << endl;
    78     gLog << "   -ff                Force merpp to ignore broken events" << endl;
    79     gLog << "   --interleave=#     Process only each i-th event [default=1]" << endl << endl;
     77    gLog << "   -ff                       Force merpp to ignore broken events" << endl;
     78    gLog << "   --interleave=#            Process only each i-th event [default=1]" << endl << endl;
    8079//    gLog << "   --sql=mysql://user:password@url  Insert run into database" << endl << endl;
    8180    gLog << " Report File Options:" << endl;
    82     gLog << "   --start=date/time  Start event time" << endl;
    83     gLog << "   --stop=date/time   Stop  event time" << endl;
    84     gLog << "   --run=#            Only data corresponding to this run number" << endl;
    85     gLog << "                      (from RUN-REPORT)" << endl;
    86     gLog << "   --runfile=#        Allow only run-control files" << endl;
    87     gLog << "                      (from .rep header)" << endl;
    88     gLog << "   --sumfile          Check for an all night summary file" << endl;
    89     gLog << "                      (from .rep header)" << endl;
    90     gLog << "   --allfiles         Don't check file type <default>" << endl << endl;
     81    gLog << "   --start=date/time         Start event time" << endl;
     82    gLog << "   --stop=date/time          Stop  event time" << endl;
     83    gLog << "   --run=#                   Only data corresponding to this run number" << endl;
     84    gLog << "                             (from RUN-REPORT)" << endl;
     85    gLog << "   --runfile=#               Allow only run-control files" << endl;
     86    gLog << "                             (from .rep header)" << endl;
     87    gLog << "   --sumfile                 Check for an all night summary file" << endl;
     88    gLog << "                             (from .rep header)" << endl;
     89    gLog << "   --allfiles                Don't check file type <default>" << endl << endl;
    9190    gLog << " REMARK: - At the moment you can process a .raw _or_ a .rep file, only!" << endl;
    9291    gLog << "         - 'date/time' has the format 'yyyy-mm-dd/hh:mm:ss.mmm'" << endl << endl;
     
    128127    gLog.Setup(arg);
    129128
    130     const Int_t kComprlvl = arg.HasOption("-c") ? arg.GetIntAndRemove("-c") : 2;
    131     Bool_t kUpdate = arg.HasOnlyAndRemove("--update") || arg.HasOnlyAndRemove("-u");
    132     const Bool_t kInterleave = arg.HasOption("--interleave=") ? arg.GetIntAndRemove("--interleave=") : 1;
    133     const Bool_t kForce = arg.HasOnlyAndRemove("-f");
    134     const Bool_t kForceProc = arg.HasOnlyAndRemove("-ff");
     129    const Int_t  kComprlvl   = arg.GetIntAndRemove("-c", 2);
     130    const Bool_t kInterleave = arg.GetIntAndRemove("--interleave=", 1);
     131    const Bool_t kForce      = arg.HasOnlyAndRemove("-f");
     132    const Bool_t kForceProc  = arg.HasOnlyAndRemove("-ff");
     133    const Int_t  kRunNumber  = arg.GetIntAndRemove("--run=", -1);
     134          Int_t  kRunFile    = arg.GetIntAndRemove("--runfile=", -1);
     135          Bool_t kUpdate     = arg.HasOnlyAndRemove("--update") || arg.HasOnlyAndRemove("-u");
    135136
    136137    MTime kTimeStart;
     
    141142        kTimeStop = AnalyseTime(arg.GetStringAndRemove("--stop="));
    142143
    143     const Int_t   kRunNumber   = arg.HasOption("--run=") ? arg.GetIntAndRemove("--run=") : -1;
    144144//    const TString kSqlDataBase(arg.GetStringAndRemove("--sql="));
    145145
    146     Int_t kRunFile = arg.HasOption("--runfile=") ? arg.GetIntAndRemove("--runfile=") : -1;
    147146    if (arg.HasOnlyAndRemove("--sumfile"))
    148147        kRunFile = 0;
Note: See TracChangeset for help on using the changeset viewer.