Ignore:
Timestamp:
09/09/04 15:43:47 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfileio
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MReadReports.cc

    r4766 r4895  
    226226Int_t MReadReports::PreProcess(MParList *plist)
    227227{
    228     fList = (MTask*)plist->FindObject("MTaskList");
    229 
    230228    fChains->Delete();
    231229
     
    385383            const Int_t rc = task->CallProcess();
    386384            if (rc)
    387             {
    388                 fList->SetStreamId(task->GetName());
    389385                return rc;
    390             }
    391386        }
    392387
  • trunk/MagicSoft/Mars/mfileio/MReadReports.h

    r4766 r4895  
    2222    TArrayL    fPosEntry; // Store the position in each tree/chain
    2323    TArrayL    fPosTree;  // Number of Tree in file.
    24 
    25     MTask     *fList;     // pointer to the task list to set the stream id
    2624
    2725    Bool_t     fEnableAutoScheme;
  • trunk/MagicSoft/Mars/mfileio/MReadTree.cc

    r4766 r4895  
    601601Int_t MReadTree::PreProcess(MParList *pList)
    602602{
     603    fTaskList = (MTaskList*)pList->FindObject("MTaskList");
     604    if (!fTaskList)
     605        *fLog << warn << "WARNING - Standard tasklist MTaskList not found... ignoring Stream-ID." << endl;
     606
    603607    //
    604608    // Make sure, that all the following calls doesn't result in
     
    854858    const Bool_t rc = fChain->GetEntry(fNumEntry++) != 0;
    855859
     860    if (fTaskList)
     861        fTaskList->SetStreamId(fChain->GetName());
     862
    856863    if (rc)
    857864        SetReadyToSave();
  • trunk/MagicSoft/Mars/mfileio/MReadTree.h

    r4698 r4895  
    88class MChain;
    99class TBranch;
     10class MTaskList;
    1011
    1112class MReadTree : public MRead
     
    2425    TList  *fVetoList;         // List of Branches which are not allowed to get enabled
    2526    TList  *fNotify;           // List of TObjects to notify when switching files
     27
     28    MTaskList *fTaskList;      // Tasklist to set StreamId
    2629
    2730    enum { kChainWasChanged = BIT(14) };
Note: See TracChangeset for help on using the changeset viewer.