Changeset 966


Ignore:
Timestamp:
10/16/01 16:00:18 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

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

    r714 r966  
    1818    // initialise ROOT
    1919    //
    20     TROOT simple("Mars", "MARS - MAGIC analysis and reconstruction software");
     20    TROOT simple("mars", "MARS - Magic Analysis and Reconstruction Software");
    2121
    2222    TApplication app("MarsApp", &argc, argv);
  • trunk/MagicSoft/Mars/merpp.cc

    r716 r966  
    4848        gLog << "Sorry the usage is:" << endl;
    4949        gLog << "   merpp inputfile outputfile [compression level]" << endl << endl;
     50        gLog << "     input file:   Magic DAQ binary file." << endl;
     51        gLog << "     ouput file:   Merpped root file." << endl;
     52        gLog << "     compr. level: 1..9 [9]" << endl << ednl;
    5053        return -1;
    5154    }
     
    6164    //     initialize ROOT  (this is obligatory here)
    6265    //
    63     TROOT simple("Merpp","Mars - Merging and Preprocessing Program");
     66    TROOT simple("merpp", "Mars - Merging and Preprocessing Program");
    6467
    6568    //
     
    6871    if (gSystem->AccessPathName(kNamein, kFileExists))
    6972    {
    70         gLog << "Sorry, the file '" << kNamein << "' doesn't exist." << endl;
     73        gLog << "Sorry, the input file '" << kNamein << "' doesn't exist." << endl;
    7174        return -1;
    7275    }
    7376
    7477    if (!gSystem->AccessPathName(kNameout, kFileExists))
    75         gLog << "Warning: The file '" << kNameout << "' exists." << endl;
     78        gLog << "Warning: A file '" << kNameout << "' exists." << endl;
    7679    else
    7780        if (!gSystem->AccessPathName(kNameout, kWritePermission))
     
    8992    MTaskList tasks;
    9093    plist.AddToList(&tasks);
    91 
     94/*
    9295    MRawRunHeader runheader;
    9396    plist.AddToList(&runheader);
     
    104107    MTime evttime("MRawEvtTime");
    105108    plist.AddToList(&evttime);
    106 
     109*/
    107110    //
    108111    // create the tasks which should be executed and add them to the list
     
    111114    //
    112115    MRawFileRead  reader(kNamein);
    113     MRawFileWrite writer(kNameout, "RECREATE", "Title", kComprlvl);
     116    MRawFileWrite writer(kNameout, "RECREATE", "Magic root-file", kComprlvl);
    114117    tasks.AddToList(&reader);
    115118    tasks.AddToList(&writer);
     
    119122    // and the tasks to execute
    120123    //
    121 
    122124    MEvtLoop magic;
    123 
    124125    magic.SetParList(&plist);
    125126
     
    131132    // (I'm think of a task like MRawDataCheck)
    132133    //
    133     magic.Eventloop();
     134    if (!magic.Eventloop())
     135    {
     136        gLog << "ERROR: Merging and preprocessing failed!" << endl;
     137        return -1;
     138    }
    134139
     140    gLog << "Merpp finished successfull!" << endl;
    135141    return 0;
    136142}
Note: See TracChangeset for help on using the changeset viewer.