Changeset 2456 for trunk/MagicSoft/Mars/merpp.cc
- Timestamp:
- 11/03/03 17:06:29 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/merpp.cc
r2299 r2456 36 36 ////////////////////////////////////////////////////////////////////////////// 37 37 38 void Usage()38 static void StartUpMessage() 39 39 { 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 53 static void Usage() 54 { 55 gLog << all << endl; 40 56 gLog << "Sorry the usage is:" << endl; 41 57 gLog << " merpp [-a0] [-vn] [-cn] inputfile[.raw] [outputfile[.root]]" << endl << endl; … … 43 59 gLog << " ouput file: Merpped root file." << endl; 44 60 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; 46 62 gLog << " -vn: Verbosity level n [default=2]" << endl << endl; 47 63 } … … 49 65 int main(const int argc, const char **argv) 50 66 { 67 StartUpMessage(); 68 69 // 70 // Evaluate arguments 71 // 51 72 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;60 73 61 74 // … … 84 97 TString kNameout = arg.GetArgumentStr(1); 85 98 86 //87 // initialize ROOT (this is obligatory here)88 //89 TROOT merpp("merpp", "Mars - Merging and Preprocessing Program");90 merpp.SetBatch();91 92 99 if (!kNamein.EndsWith(".raw")) 93 100 kNamein += ".raw"; … … 98 105 if (!kNameout.EndsWith(".root")) 99 106 kNameout += ".root"; 107 108 // 109 // Initialize Non-GUI (batch) mode 110 // 111 gROOT->SetBatch(); 100 112 101 113 //
Note:
See TracChangeset
for help on using the changeset viewer.