Ignore:
Timestamp:
02/22/01 14:30:10 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r458 r609  
    1 #include <iostream.h>
    2 
    31#include <TSystem.h>
    42
     
    108#include "MRawFileWrite.h"
    119
     10#include "MLog.h"
     11#include "MTime.h"
     12#include "MRawEvtData.h"
    1213#include "MRawRunHeader.h"
    1314#include "MRawEvtHeader.h"
    14 #include "MRawEvtData.h"
    1515#include "MRawCrateArray.h"
    16 #include "MTime.h"
    1716#include "MInputStreamID.h"
    1817
     
    3433int main(const int argc, const char **argv)
    3534{
    36     cout << "==================================================" << endl ;
    37     cout << "                   MERPP v0.1" << endl;
    38     cout << "      MARS Merging and Preprocessing Program" << endl ;
    39     cout << "            Compiled on <" << __DATE__ << ">" << endl ;
    40     cout << "==================================================" << endl ;
    41     cout << endl;
     35    gLog << "==================================================" << endl ;
     36    gLog << "                   MERPP v0.1" << endl;
     37    gLog << "      MARS Merging and Preprocessing Program" << endl ;
     38    gLog << "            Compiled on <" << __DATE__ << ">" << endl ;
     39    gLog << "==================================================" << endl ;
     40    gLog << endl;
    4241
    4342    //
     
    4645    if (argc!=3)
    4746    {
    48         cout << "Sorry the usage is:" << endl;
    49         cout << "   merpp inputfile outputfile" << endl << endl;
     47        gLog << "Sorry the usage is:" << endl;
     48        gLog << "   merpp inputfile outputfile" << endl << endl;
    5049        return -1;
    5150    }
     
    6160    if (gSystem->AccessPathName(argv[1], kFileExists))
    6261    {
    63         cout << "Sorry, the file '" << argv[1] << "' doesn't exist." << endl;
     62        gLog << "Sorry, the file '" << argv[1] << "' doesn't exist." << endl;
    6463        return -1;
    6564    }
    6665
    6766    if (!gSystem->AccessPathName(argv[2], kFileExists))
    68         cout << "Warning: The file '" << argv[2] << "' exists." << endl;
     67        gLog << "Warning: The file '" << argv[2] << "' exists." << endl;
    6968    else
    7069        if (!gSystem->AccessPathName(argv[2], kWritePermission))
    7170        {
    72             cout << "Sorry, you don't have write permission for '" << argv[2] << "'." << endl;
     71            gLog << "Sorry, you don't have write permission for '" << argv[2] << "'." << endl;
    7372            return -1;
    7473        }
Note: See TracChangeset for help on using the changeset viewer.