Ignore:
Timestamp:
08/07/02 14:32:26 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.cc

    r1483 r1487  
    9292//! Also we can derive MEvtLoop from MTaskList to have a static tasklist, too
    9393//!
     94
     95TList *gListOfPrimitives; // forard declaration in MParContainer.h
    9496
    9597// --------------------------------------------------------------------------
     
    346348
    347349    fout << "}" << endl;
     350
     351    *fLog << inf << "Macro '" << name << "' written." << endl;
    348352}
    349353
     
    365369        out << endl;
    366370    }
     371
     372    gListOfPrimitives = new TList;
    367373
    368374    if (fParList)
     
    376382    out << "   if (!evtloop.Eventloop())" << endl;
    377383    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
    378390}
    379391
     
    477489    HasDuplicateNames(list, "MEvtLoop::Read");
    478490
     491    *fLog << inf << "Eventloop '" << name << "' read from file." << endl;
     492
    479493    return n;
     494}
     495
     496// --------------------------------------------------------------------------
     497//
     498// If available print the contents of the parameter list.
     499//
     500void MEvtLoop::Print(Option_t *opt="") const
     501{
     502    if (fParList)
     503        fParList->Print();
     504    else
     505        *fLog << all << "MEvtloop: No Parameter List available." << endl;
    480506}
    481507
     
    530556    HasDuplicateNames(list, "MEvtLoop::Write");
    531557
     558    *fLog << inf << "Eventloop written to file as " << name << "." << endl;
     559
    532560    return n;
    533561}
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.h

    r1481 r1487  
    5353    void SavePrimitive(ofstream &out, Option_t *o="");
    5454
    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;
    5759
    5860    ClassDef(MEvtLoop, 1) // Class to execute the tasks in a tasklist
    5961};
    6062
     63R__EXTERN TList *gListOfPrimitives; // instantiation in MEvtLoop
     64
    6165#endif
  • trunk/MagicSoft/Mars/mbase/MParContainer.cc

    r1483 r1487  
    5151#include "MLogManip.h"
    5252
     53#include "MEvtLoop.h"    // gListOfPrimitives
     54
    5355ClassImp(MParContainer);
    5456
     
    383385        return;
    384386
    385     SetUniqueID(uid++/*gRandom->Uniform(kMaxInt)*/);
     387    SetUniqueID(uid++);
     388    SetBit(kIsSavedAsPrimitive);
     389
     390    if (gListOfPrimitives && !gListOfPrimitives->FindObject(this))
     391        gListOfPrimitives->Add(this);
     392
    386393    StreamPrimitive(out);
    387     SetBit(kIsSavedAsPrimitive);
    388394}
    389395
  • trunk/MagicSoft/Mars/mbase/MParList.cc

    r1483 r1487  
    672672{
    673673    out << "   MParList " << GetUniqueName();
    674     if (fName!=gsDefName)
     674    if (fName!=gsDefName || fTitle!=gsDefTitle)
    675675    {
    676676        out << "(\"" << fName << "\"";
  • trunk/MagicSoft/Mars/mbase/MTaskList.cc

    r1483 r1487  
    525525{
    526526    out << "   MTaskList " << GetUniqueName();
    527     if (fName!=gsDefName)
     527    if (fName!=gsDefName || fTitle!=gsDefTitle)
    528528    {
    529529        out << "(\"" << fName << "\"";
Note: See TracChangeset for help on using the changeset viewer.