- Timestamp:
- 10/16/01 16:00:18 (23 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mars.cc
r714 r966 18 18 // initialise ROOT 19 19 // 20 TROOT simple(" Mars", "MARS - MAGIC analysis and reconstruction software");20 TROOT simple("mars", "MARS - Magic Analysis and Reconstruction Software"); 21 21 22 22 TApplication app("MarsApp", &argc, argv); -
trunk/MagicSoft/Mars/merpp.cc
r716 r966 48 48 gLog << "Sorry the usage is:" << endl; 49 49 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; 50 53 return -1; 51 54 } … … 61 64 // initialize ROOT (this is obligatory here) 62 65 // 63 TROOT simple(" Merpp","Mars - Merging and Preprocessing Program");66 TROOT simple("merpp", "Mars - Merging and Preprocessing Program"); 64 67 65 68 // … … 68 71 if (gSystem->AccessPathName(kNamein, kFileExists)) 69 72 { 70 gLog << "Sorry, the file '" << kNamein << "' doesn't exist." << endl;73 gLog << "Sorry, the input file '" << kNamein << "' doesn't exist." << endl; 71 74 return -1; 72 75 } 73 76 74 77 if (!gSystem->AccessPathName(kNameout, kFileExists)) 75 gLog << "Warning: Thefile '" << kNameout << "' exists." << endl;78 gLog << "Warning: A file '" << kNameout << "' exists." << endl; 76 79 else 77 80 if (!gSystem->AccessPathName(kNameout, kWritePermission)) … … 89 92 MTaskList tasks; 90 93 plist.AddToList(&tasks); 91 94 /* 92 95 MRawRunHeader runheader; 93 96 plist.AddToList(&runheader); … … 104 107 MTime evttime("MRawEvtTime"); 105 108 plist.AddToList(&evttime); 106 109 */ 107 110 // 108 111 // create the tasks which should be executed and add them to the list … … 111 114 // 112 115 MRawFileRead reader(kNamein); 113 MRawFileWrite writer(kNameout, "RECREATE", " Title", kComprlvl);116 MRawFileWrite writer(kNameout, "RECREATE", "Magic root-file", kComprlvl); 114 117 tasks.AddToList(&reader); 115 118 tasks.AddToList(&writer); … … 119 122 // and the tasks to execute 120 123 // 121 122 124 MEvtLoop magic; 123 124 125 magic.SetParList(&plist); 125 126 … … 131 132 // (I'm think of a task like MRawDataCheck) 132 133 // 133 magic.Eventloop(); 134 if (!magic.Eventloop()) 135 { 136 gLog << "ERROR: Merging and preprocessing failed!" << endl; 137 return -1; 138 } 134 139 140 gLog << "Merpp finished successfull!" << endl; 135 141 return 0; 136 142 }
Note:
See TracChangeset
for help on using the changeset viewer.