Changeset 14029 for trunk/Mars/mfileio


Ignore:
Timestamp:
06/01/12 18:25:47 (12 years ago)
Author:
tbretz
Message:
Fixed a problem with root 5.32 and no-tree tasks (like in WriteMC)
File:
1 edited

Legend:

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

    r12863 r14029  
    690690Bool_t MWriteRootFile::CheckAndWrite()
    691691{
     692    // This is the special case if we only copy a tre but do not
     693    // write containers to it
     694    const Int_t n = fTrees.GetEntriesFast();
     695    if (n==0)
     696        return kTRUE;
     697
    692698    TObject *obj;
    693699
     
    725731    // Loop over all tree entries
    726732    //
    727     const Int_t n = fTrees.GetEntriesFast();
    728 
    729733    for (int idx=0; idx<n; idx++)
    730734    {
Note: See TracChangeset for help on using the changeset viewer.