Changeset 1487 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 08/07/02 14:32:26 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r1483 r1487 92 92 //! Also we can derive MEvtLoop from MTaskList to have a static tasklist, too 93 93 //! 94 95 TList *gListOfPrimitives; // forard declaration in MParContainer.h 94 96 95 97 // -------------------------------------------------------------------------- … … 346 348 347 349 fout << "}" << endl; 350 351 *fLog << inf << "Macro '" << name << "' written." << endl; 348 352 } 349 353 … … 365 369 out << endl; 366 370 } 371 372 gListOfPrimitives = new TList; 367 373 368 374 if (fParList) … … 376 382 out << " if (!evtloop.Eventloop())" << endl; 377 383 out << " return;" << endl; 384 385 gListOfPrimitives->ForEach(TObject, ResetBit)(BIT(15)); 386 delete gListOfPrimitives; 387 gListOfPrimitives = 0; 388 389 // remove all objects with BIT(15) set from gObjectTable 378 390 } 379 391 … … 477 489 HasDuplicateNames(list, "MEvtLoop::Read"); 478 490 491 *fLog << inf << "Eventloop '" << name << "' read from file." << endl; 492 479 493 return n; 494 } 495 496 // -------------------------------------------------------------------------- 497 // 498 // If available print the contents of the parameter list. 499 // 500 void MEvtLoop::Print(Option_t *opt="") const 501 { 502 if (fParList) 503 fParList->Print(); 504 else 505 *fLog << all << "MEvtloop: No Parameter List available." << endl; 480 506 } 481 507 … … 530 556 HasDuplicateNames(list, "MEvtLoop::Write"); 531 557 558 *fLog << inf << "Eventloop written to file as " << name << "." << endl; 559 532 560 return n; 533 561 } -
trunk/MagicSoft/Mars/mbase/MEvtLoop.h
r1481 r1487 53 53 void SavePrimitive(ofstream &out, Option_t *o=""); 54 54 55 Int_t Read(const char *name); 56 Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0); 55 Int_t Read(const char *name="Evtloop"); 56 Int_t Write(const char *name="Evtloop", Int_t option=0, Int_t bufsize=0); 57 58 void Print(Option_t *opt="") const; 57 59 58 60 ClassDef(MEvtLoop, 1) // Class to execute the tasks in a tasklist 59 61 }; 60 62 63 R__EXTERN TList *gListOfPrimitives; // instantiation in MEvtLoop 64 61 65 #endif -
trunk/MagicSoft/Mars/mbase/MParContainer.cc
r1483 r1487 51 51 #include "MLogManip.h" 52 52 53 #include "MEvtLoop.h" // gListOfPrimitives 54 53 55 ClassImp(MParContainer); 54 56 … … 383 385 return; 384 386 385 SetUniqueID(uid++/*gRandom->Uniform(kMaxInt)*/); 387 SetUniqueID(uid++); 388 SetBit(kIsSavedAsPrimitive); 389 390 if (gListOfPrimitives && !gListOfPrimitives->FindObject(this)) 391 gListOfPrimitives->Add(this); 392 386 393 StreamPrimitive(out); 387 SetBit(kIsSavedAsPrimitive);388 394 } 389 395 -
trunk/MagicSoft/Mars/mbase/MParList.cc
r1483 r1487 672 672 { 673 673 out << " MParList " << GetUniqueName(); 674 if (fName!=gsDefName )674 if (fName!=gsDefName || fTitle!=gsDefTitle) 675 675 { 676 676 out << "(\"" << fName << "\""; -
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r1483 r1487 525 525 { 526 526 out << " MTaskList " << GetUniqueName(); 527 if (fName!=gsDefName )527 if (fName!=gsDefName || fTitle!=gsDefTitle) 528 528 { 529 529 out << "(\"" << fName << "\"";
Note:
See TracChangeset
for help on using the changeset viewer.