Changeset 1080 for trunk/MagicSoft/Mars/mbase/MTaskList.cc
- Timestamp:
- 11/15/01 11:07:21 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r1076 r1080 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2001 … … 43 43 // from the list. // 44 44 // // 45 // Warning: // 46 // Be carefull if you are writing your tasklist // 47 // (eg. MWriteRootFile("file.root", "MTaskList")) to a file. You may // 48 // not be able to initialize a new working tasklist from a file if // 49 // a) Two Paramerer containers with the same names are existing in the // 50 // MParList. // 51 // b) You used a container somewhere which is not part of MParList. // 52 // (eg. You specified a pointer to a MH container in MFillH which is // 53 // not added to the parameter list. // 54 // // 45 55 ///////////////////////////////////////////////////////////////////////////// 46 56 … … 68 78 fTitle = title ? title : "A list for tasks to be executed"; 69 79 70 fTasks = new T OrdCollection;80 fTasks = new TList; //OrdCollection; 71 81 } 72 82 … … 151 161 if (objt || objn==task) 152 162 { 153 *fLog << dbginf << "Warning: Task '" << task->GetName() << ", 0x" << (void*)task;163 *fLog << warn << dbginf << "Warning: Task '" << task->GetName() << ", 0x" << (void*)task; 154 164 *fLog << "' already existing in '" << GetName() << "'... ignoring." << endl; 155 165 return kTRUE; … … 159 169 // Otherwise add it to the list, but print a warning message 160 170 // 161 *fLog << dbginf << "Warning: Task '" << task->GetName();171 *fLog << warn << dbginf << "Warning: Task '" << task->GetName(); 162 172 *fLog << "' already existing in '" << GetName() << "'." << endl; 163 173 *fLog << "You may not be able to get a pointer to this task by name." << endl; … … 168 178 if (!fTasks->FindObject(where)) 169 179 { 170 *fLog << dbginf << "Error: Cannot find task after which the new task should be scheduled!" << endl;180 *fLog << err << dbginf << "Error: Cannot find task after which the new task should be scheduled!" << endl; 171 181 return kFALSE; 172 182 } 173 183 } 174 184 175 *fLog << "Adding " << name << " to " << GetName() << " for " << type << "... " << flush;185 *fLog << inf << "Adding " << name << " to " << GetName() << " for " << type << "... " << flush; 176 186 177 187 task->SetStreamId(type); … … 208 218 Bool_t MTaskList::PreProcess(MParList *pList) 209 219 { 210 *fLog << "Preprocessing... " << flush;220 *fLog << all << "Preprocessing... " << flush; 211 221 212 222 fParList = pList; … … 224 234 while ((task=(MTask*)Next())) 225 235 { 226 *fLog << task->GetName() << "... " << flush;236 *fLog << all << task->GetName() << "... " << flush; 227 237 228 238 if (!task->CallPreProcess(fParList)) … … 297 307 298 308 default: 299 *fLog << "MTaskList::Process: Unknown return value from MTask::Process()... ignored." << endl;309 *fLog << warn << "MTaskList::Process: Unknown return value from MTask::Process()... ignored." << endl; 300 310 } 301 311 } … … 310 320 Bool_t MTaskList::PostProcess() 311 321 { 312 *fLog << "Postprocessing... " << flush;322 *fLog << all << "Postprocessing... " << flush; 313 323 314 324 // … … 338 348 return kFALSE; 339 349 340 *fLog << task->GetName() << "... " << flush;341 } 342 343 *fLog << endl;350 *fLog << all << task->GetName() << "... " << flush; 351 } 352 353 *fLog << all << endl; 344 354 345 355 return kTRUE; … … 357 367 if (lvl==0) 358 368 { 359 *fLog << endl;369 *fLog << all << endl; 360 370 *fLog << "Execution Statistics: " << endl; 361 371 *fLog << "---------------------" << endl; … … 379 389 void MTaskList::Print(Option_t *t) const 380 390 { 381 *fLog << GetDescriptor() << " <" << GetTitle() << ">" << endl; 391 *fLog << all << endl; 392 *fLog << GetDescriptor() << endl; 393 *fLog << setfill('-') << setw(strlen(GetDescriptor())) << "" << endl; 382 394 383 395 fTasks->Print();
Note:
See TracChangeset
for help on using the changeset viewer.