Ignore:
Timestamp:
04/08/04 19:52:13 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfileio
Files:
5 edited

Legend:

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

    r2984 r3682  
    116116// --------------------------------------------------------------------------
    117117//
     118//  Sort the files by their file-names
     119//
     120void MReadMarsFile::SortFiles()
     121{
     122    fRun->SortFiles();
     123    MReadTree::SortFiles();
     124}
     125
     126// --------------------------------------------------------------------------
     127//
    118128//  This overload MReadTree::Notify. Before the MReadTree Notify
    119129//  TObjects are called the RunHeaders of the next files are read.
  • trunk/MagicSoft/Mars/mfileio/MReadMarsFile.h

    r2206 r3682  
    2424    ~MReadMarsFile();
    2525
     26    void SortFiles();
     27
    2628    Int_t AddFile(const char *fname, Int_t entries=-1);
    2729
  • trunk/MagicSoft/Mars/mfileio/MReadTree.cc

    r3585 r3682  
    358358// --------------------------------------------------------------------------
    359359//
     360//  Sort the files by their file-names
     361//
     362void MReadTree::SortFiles()
     363{
     364    fChain->GetListOfFiles()->Sort();
     365}
     366
     367// --------------------------------------------------------------------------
     368//
    360369//  This function is called if Branch choosing method should get enabled.
    361370//  Branch choosing means, that only the enabled branches are read into
  • trunk/MagicSoft/Mars/mfileio/MReadTree.h

    r2556 r3682  
    4848    ~MReadTree();
    4949
     50    virtual void SortFiles();
     51
    5052    void   DisableAutoScheme() { fAutoEnable = kFALSE; }
    5153    void   EnableBranch(const char *name);
  • trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc

    r3336 r3682  
    198198    // add the entry to the list.
    199199    //
    200     MRootFileBranch *entry = new MRootFileBranch(cname, tname, must);
     200    MRootFileBranch *entry = new MRootFileBranch(AddSerialNumber(cname), tname, must);
    201201    fBranches.AddLast(entry);
    202202
    203203    if (tname && tname[0])
    204         AddToBranchList(Form("%s.%s", cname, tname));
     204        AddToBranchList(Form("%s.%s", AddSerialNumber(cname), tname));
    205205}
    206206
Note: See TracChangeset for help on using the changeset viewer.