Changeset 9609 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 07/05/10 17:33:46 (14 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJSimulation.cc
r9597 r9609 149 149 */ 150 150 151 Bool_t MJSimulation::WriteResult(const MParList &plist, const MSequence &seq )151 Bool_t MJSimulation::WriteResult(const MParList &plist, const MSequence &seq, Int_t num) 152 152 { 153 153 if (fPathOut.IsNull()) … … 184 184 } 185 185 186 const TString name = seq.IsValid() ? Form("ceres%08d.root", seq.GetSequence()) : "ceres.root";186 const TString name = Form("ceres%08d.root", num); 187 187 return WriteContainer(cont, name, "RECREATE"); 188 188 } … … 315 315 case kModeData: 316 316 header.SetRunType(MRawRunHeader::kRTMonteCarlo|MRawRunHeader::kRTData); 317 317 header.SetRunInfo(0, fRunNumber<0 ? 3 : fRunNumber); 318 318 break; 319 319 … … 931 931 //------------------------------------------- 932 932 933 if (!WriteResult(plist, seq ))933 if (!WriteResult(plist, seq, header.GetRunNumber())) 934 934 return kFALSE; 935 935 -
trunk/MagicSoft/Mars/mjobs/MJSimulation.h
r9597 r9609 26 26 Int_t fRunNumber; // 8 digits run number to be used for the file names 27 27 28 Bool_t WriteResult(const MParList &plist, const MSequence &seq );28 Bool_t WriteResult(const MParList &plist, const MSequence &seq, Int_t run); 29 29 Bool_t CheckEnvLocal(); 30 30
Note:
See TracChangeset
for help on using the changeset viewer.