Ignore:
Timestamp:
10/07/06 14:57:12 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7989 r8011  
    3333    gLog << "                 Callisto - MARS V" << MARSVER            << endl;
    3434    gLog << "    MARS -- CALibrate LIght Signals and Time Offsets"     << endl;
    35     gLog << "      Compiled with ROOT v" << ROOTVER << " on <" << __DATE__ << ">" << endl;
     35    gLog << "      Compiled with ROOT v" << ROOT_RELEASE << " on <" << __DATE__ << ">" << endl;
    3636    gLog << "========================================================" << endl;
    3737    gLog << endl;
     
    142142int main(int argc, char **argv)
    143143{
     144    if (!MARS::CheckRootVer())
     145        return 0xff;
     146
    144147    //
    145148    // Evaluate arguments
     
    198201        kModeC = kTRUE;
    199202
     203    //
     204    // check for the right usage of the program
     205    //
     206    if (arg.GetNumArguments()!=1)
     207    {
     208        Usage();
     209        return 2;
     210    }
     211
     212    if (arg.GetNumOptions()>0)
     213    {
     214        gLog << warn << "WARNING - Unknown commandline options..." << endl;
     215        arg.Print("options");
     216        gLog << endl;
     217        return 2;
     218    }
     219
    200220    if (!kModeC && !kModeY /*&& !kUseTest*/)
    201221    {
    202         gLog << err << "Neither calibration (-c) nor signal extraction (-y) or test-mode (--use-test) specified!" << endl;
     222        gLog << err << "Neither calibration (-c), signal extraction (-y) or test-mode (--use-test)" << endl;
     223        gLog <<        "specified! You can also give the operation mode by the options defining the" << endl;
     224        gLog <<        "output path --outc, --outy or --out." << endl;
    203225        Usage();
    204226        return 2;
     
    228250    if (kModeC && kModeY)
    229251        kInpathY = kOutpathC;
    230 
    231     if (arg.GetNumOptions()>0)
    232     {
    233         gLog << warn << "WARNING - Unknown commandline options..." << endl;
    234         arg.Print("options");
    235         gLog << endl;
    236         return 2;
    237     }
    238 
    239     //
    240     // check for the right usage of the program
    241     //
    242     if (arg.GetNumArguments()!=1)
    243     {
    244         Usage();
    245         return 2;
    246     }
    247252
    248253    //
Note: See TracChangeset for help on using the changeset viewer.