Changeset 2678 for trunk/MagicSoft/Mars/merpp.cc
- Timestamp:
- 12/15/03 17:29:56 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/merpp.cc
r2632 r2678 68 68 gLog << " -cn: Compression level n=1..9 [default=2]" << endl; 69 69 gLog << " -vn: Verbosity level n [default=2]" << endl; 70 gLog << " --start=yyyy-mm-dd/hh:mm:ss.mmm: Start event time for merpping report files" << endl; 71 gLog << " --stop=yyyy-mm-dd/hh:mm:ss.mmm: Stop event time for merpping report files" << endl; 70 72 gLog << " -?/-h: This help" << endl << endl; 71 73 gLog << " REMARK: At the moment you can process a .raw _or_ a .rep file, only!" << endl << endl; 72 74 } 73 75 76 // FIXME: Move to MTime (maybe 'InterpreteCmdline' 77 MTime AnalyseTime(TString str) 78 { 79 Int_t y=0, ms=0, mon=0, d=0, h=0, m=0, s=0; 80 81 if (7!=sscanf(str.Data(), "%d-%d-%d/%d:%d:%d.%d", &y, &mon, &d, &h, &m, &s, &ms)) 82 return MTime(); 83 84 MTime t; 85 t.Set(y, mon, d, h, m, s, ms); 86 return t; 87 } 88 74 89 int main(const int argc, char **argv) 75 90 { … … 95 110 gLog.SetDebugLevel(arg.HasOption("-v") ? arg.GetIntAndRemove("-v") : 2); 96 111 112 MTime kTimeStart(AnalyseTime(arg.GetStringAndRemove("--start="))); 113 MTime kTimeStop(AnalyseTime(arg.GetStringAndRemove("--stop="))); 114 kTimeStart.SetName("MTimeStart"); 115 kTimeStop.SetName("MTimeStop"); 116 117 if (!kTimeStart) 118 cout << "No start time!" << endl; 119 if (!kTimeStop) 120 cout << "No stop time!" << endl; 121 97 122 // 98 123 // check for the right usage of the program … … 172 197 // 173 198 // ---- The following is only necessary to supress some output ---- 174 / /199 /* 175 200 MRawRunHeader runheader; 176 201 plist.AddToList(&runheader); … … 187 212 MTime evttime; 188 213 plist.AddToList(&evttime); 214 */ 189 215 190 216 // … … 200 226 { 201 227 MReportFileRead *r = new MReportFileRead(kNamein); 228 r->SetTimeStart(kTimeStart); 229 r->SetTimeStop(kTimeStop); 202 230 if (isdc) 203 231 { … … 215 243 216 244 MWriteRootFile *w = new MWriteRootFile(kNameout, option, "Magic root-file", kComprlvl); 217 /*218 w->AddContainer("MReportDAQ", "DAQ");219 w->AddContainer("MTimeDAQ", "DAQ");220 w->AddContainer("MReportDrive", "Drive");221 w->AddContainer("MTimeDrive", "Drive");222 */223 245 if (isdc) 224 246 { … … 241 263 w->AddContainer("MReportDrive", "Drive"); 242 264 w->AddContainer("MTimeDrive", "Drive"); 265 // w->AddContainer("MReportDAQ", "DAQ"); 266 // w->AddContainer("MTimeDAQ", "DAQ"); 243 267 } 244 268 write = w; … … 249 273 write = new MRawFileWrite(kNameout, option, "Magic root-file", kComprlvl); 250 274 } 275 251 276 tasks.AddToList(read); 252 277 tasks.AddToList(write);
Note:
See TracChangeset
for help on using the changeset viewer.