Ignore:
Timestamp:
11/03/03 17:06:29 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r2299 r2456  
    3636//////////////////////////////////////////////////////////////////////////////
    3737
    38 void Usage()
     38static void StartUpMessage()
    3939{
     40    gLog << all << endl;
     41
     42    //                1         2         3         4         5
     43    //       12345678901234567890123456789012345678901234567890
     44    gLog << "==================================================" << endl;
     45    gLog << "                MERPP - MARS V" << MARSVER          << endl;
     46    gLog << "     MARS - Merging and Preprocessing Program"      << endl;
     47    gLog << "            Compiled on <" << __DATE__ << ">"       << endl;
     48    gLog << "               Using ROOT v" << ROOTVER             << endl;
     49    gLog << "==================================================" << endl;
     50    gLog << endl;
     51}
     52
     53static void Usage()
     54{
     55    gLog << all << endl;
    4056    gLog << "Sorry the usage is:" << endl;
    4157    gLog << "   merpp [-a0] [-vn] [-cn] inputfile[.raw] [outputfile[.root]]" << endl << endl;
     
    4359    gLog << "     ouput file:   Merpped root file." << endl;
    4460    gLog << "     -a0: Do not use Ansii codes." << endl;
    45     gLog << "     -cn: Compression level n=1..9 [default=1]" << endl;
     61    gLog << "     -cn: Compression level n=1..9 [default=2]" << endl;
    4662    gLog << "     -vn: Verbosity level n [default=2]" << endl << endl;
    4763}
     
    4965int main(const int argc, const char **argv)
    5066{
     67    StartUpMessage();
     68
     69    //
     70    // Evaluate arguments
     71    //
    5172    MArgs arg(argc, argv);
    52 
    53     gLog << "==================================================" << endl ;
    54     gLog << "                   MERPP v0.1" << endl;
    55     gLog << "      MARS Merging and Preprocessing Program" << endl ;
    56     gLog << "            Compiled on <" << __DATE__ << ">" << endl ;
    57     gLog << "               Using ROOT v" << ROOTVER << endl ;
    58     gLog << "==================================================" << endl ;
    59     gLog << endl;
    6073
    6174    //
     
    8497    TString kNameout = arg.GetArgumentStr(1);
    8598
    86     //
    87     //     initialize ROOT  (this is obligatory here)
    88     //
    89     TROOT merpp("merpp", "Mars - Merging and Preprocessing Program");
    90     merpp.SetBatch();
    91 
    9299    if (!kNamein.EndsWith(".raw"))
    93100        kNamein += ".raw";
     
    98105    if (!kNameout.EndsWith(".root"))
    99106        kNameout += ".root";
     107
     108    //
     109    // Initialize Non-GUI (batch) mode
     110    //
     111    gROOT->SetBatch();
    100112
    101113    //
Note: See TracChangeset for help on using the changeset viewer.