Changeset 609 for trunk/MagicSoft/Mars/merpp.cc
- Timestamp:
- 02/22/01 14:30:10 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/merpp.cc
r458 r609 1 #include <iostream.h>2 3 1 #include <TSystem.h> 4 2 … … 10 8 #include "MRawFileWrite.h" 11 9 10 #include "MLog.h" 11 #include "MTime.h" 12 #include "MRawEvtData.h" 12 13 #include "MRawRunHeader.h" 13 14 #include "MRawEvtHeader.h" 14 #include "MRawEvtData.h"15 15 #include "MRawCrateArray.h" 16 #include "MTime.h"17 16 #include "MInputStreamID.h" 18 17 … … 34 33 int main(const int argc, const char **argv) 35 34 { 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; 42 41 43 42 // … … 46 45 if (argc!=3) 47 46 { 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; 50 49 return -1; 51 50 } … … 61 60 if (gSystem->AccessPathName(argv[1], kFileExists)) 62 61 { 63 cout<< "Sorry, the file '" << argv[1] << "' doesn't exist." << endl;62 gLog << "Sorry, the file '" << argv[1] << "' doesn't exist." << endl; 64 63 return -1; 65 64 } 66 65 67 66 if (!gSystem->AccessPathName(argv[2], kFileExists)) 68 cout<< "Warning: The file '" << argv[2] << "' exists." << endl;67 gLog << "Warning: The file '" << argv[2] << "' exists." << endl; 69 68 else 70 69 if (!gSystem->AccessPathName(argv[2], kWritePermission)) 71 70 { 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; 73 72 return -1; 74 73 }
Note:
See TracChangeset
for help on using the changeset viewer.