Ignore:
Timestamp:
02/15/05 18:44:43 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfileio
Files:
2 edited

Legend:

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

    r6499 r6500  
    116116    {
    117117        file = new TFile(name, option, title, comp);
     118        if (!file->IsOpen())
     119        {
     120            delete file;
     121            return NULL;
     122        }
     123
    118124        file->SetOption(option); // IMPORTANT!
    119125        ResetBit(kIsNotOwner);
     
    873879// TTree::CloneTree()
    874880//
    875 void MWriteRootFile::CopyTree(TTree &t)
     881void MWriteRootFile::CopyTree(TTree &t) const
    876882{
    877883    *fLog << "Copy of tree " << t.GetName() << " in progress..." << flush;
  • trunk/MagicSoft/Mars/mfileio/MWriteRootFile.h

    r6499 r6500  
    9696    Bool_t  ChangeFile(const char *fname);
    9797    TFile  *OpenFile(const char *name, Option_t *option, const char *title, Int_t comp);
    98     void    CopyTree(TTree &t);
     98    void    CopyTree(TTree &t) const;
    9999    Bool_t  MakeCopies(const char *oldname) const;
    100100
Note: See TracChangeset for help on using the changeset viewer.