Ignore:
Timestamp:
09/17/02 11:06:33 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfileio
Files:
2 edited

Legend:

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

    r1483 r1527  
    203203// --------------------------------------------------------------------------
    204204//
     205// Adds all files from another MReadTree to this instance
     206//
     207// Returns the number of file which were added
     208//
     209Int_t MReadTree::AddFiles(const MReadTree &read)
     210{
     211    Int_t rc = 0;
     212
     213    TIter Next(read.fChain->GetListOfFiles());
     214    TObject *obj = NULL;
     215    while ((obj=Next()))
     216        rc += AddFile(obj->GetTitle());
     217
     218    return rc;
     219}
     220
     221// --------------------------------------------------------------------------
     222//
    205223//  This function is called if Branch choosing method should get enabled.
    206224//  Branch choosing means, that only the enabled branches are read into
  • trunk/MagicSoft/Mars/mfileio/MReadTree.h

    r1477 r1527  
    6060    UInt_t GetEntries() const  { return fNumEntries; }
    6161
    62     TString GetFileName() const;
    63     Int_t   GetFileIndex() const;
     62    TString    GetFileName() const;
     63    Int_t      GetFileIndex() const;
    6464
    6565    virtual void   AddNotify(TObject *obj);
     
    6868
    6969    virtual Int_t  AddFile(const char *fname);
     70    virtual Int_t  AddFiles(const MReadTree &read);
    7071
    7172    virtual Bool_t PreProcess(MParList *pList);
Note: See TracChangeset for help on using the changeset viewer.