Changeset 6955 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 04/19/05 09:43:01 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r6954 r6955 231 231 const Bool_t rc = WriteContainer(cont); 232 232 233 if (! fNameResult.IsNull())233 if (!(fNameResult.IsNull() && fStoreResult)) 234 234 delete file; 235 235 … … 252 252 arr.Add(o); 253 253 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"); 255 267 } 256 268
Note:
See TracChangeset
for help on using the changeset viewer.