Changeset 6955 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
04/19/05 09:43:01 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6954 r6955  
    2121
    2222                                                 -*-*- END OF LINE -*-*-
     23
     24 2005/04/19 Thomas Bretz
     25
     26   * mjobs/MJCut.cc:
     27     - fixed a problem when not enabling "--res"
     28
     29
    2330
    2431 2005/04/18 Thomas Bretz
  • trunk/MagicSoft/Mars/mjobs/MJCut.cc

    r6954 r6955  
    231231    const Bool_t rc = WriteContainer(cont);
    232232
    233     if (!fNameResult.IsNull())
     233    if (!(fNameResult.IsNull() && fStoreResult))
    234234        delete file;
    235235
     
    252252            arr.Add(o);
    253253
    254     return WriteContainer(arr, GetOutputFile(num), "UPDATE");
     254    const TString fname(GetOutputFile(num));
     255
     256    if (fNameResult.IsNull() && fStoreResult)
     257    {
     258        TFile *file = (TFile*)gROOT->GetListOfFiles()->FindObject(fname);
     259        if (file)
     260        {
     261            file->cd();
     262            return WriteContainer(arr);
     263        }
     264    }
     265
     266    return WriteContainer(arr, fname, "UPDATE");
    255267}
    256268
Note: See TracChangeset for help on using the changeset viewer.