Ignore:
Timestamp:
03/23/09 13:14:46 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r9343 r9410  
    458458// completely from one file to another one you can use this
    459459//
    460 void MWriteRootFile::AddCopySource(const char *tname, const char *bname)
    461 {
    462     fCopies.Add(new TNamed(tname, bname?bname:"*"));
     460void MWriteRootFile::AddCopySource(const char *tname, const char *bname, Bool_t force)
     461{
     462    TObject *obj = new TNamed(tname, bname?bname:"*");
     463    if (force)
     464        obj->SetBit(kForced);
     465
     466    fCopies.Add(obj);
    463467    fCopies.Sort();
    464468}
     
    980984        if (!gettree)
    981985        {
    982             *fLog << err << "ERROR - MakeCopies: Tree " << o->GetName() << " not found in file " << fname << "... abort." << endl;
    983             return kFALSE;
     986            const Bool_t force = o->TestBit(kForced);
     987            if (force)
     988                *fLog << err << "ERROR - ";
     989            else
     990                *fLog << inf3;
     991
     992            *fLog << "MakeCopies: Tree " << o->GetName() << " not found in file " << fname << ".";
     993            if (force)
     994                *fLog << ".. abort.";
     995            *fLog << endl;
     996
     997            if (force)
     998                return kFALSE;
     999
     1000            continue;
    9841001        }
    9851002
Note: See TracChangeset for help on using the changeset viewer.