Changeset 8719 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 08/28/07 13:03:04 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r8709 r8719 550 550 return kFALSE; 551 551 } 552 553 if (!HasWritePermission(GetOutputFile(set.GetNumAnalysis()))) 554 return kFALSE; 552 555 553 556 CheckEnv(); -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r8709 r8719 1009 1009 spectrum.SetMarkerStyle(kFullDotMedium); 1010 1010 spectrum.SetTitle("Differential flux times E^{2}"); 1011 spectrum.SetYTitle("E^{2} #cdot dN/dE [N#cdotTeV/sm^{2}]");1011 spectrum.SetYTitle("E^{2}·dN/dE [N·TeV/sm^{2}]"); 1012 1012 spectrum.SetDirectory(0); 1013 1013 spectrum.DrawCopy(); … … 1316 1316 } 1317 1317 1318 if (!HasWritePermission(GetPathOut())) 1319 return kFALSE; 1320 1318 1321 CheckEnv(); 1319 1322 … … 1324 1327 *fLog << "Compile Monte Carlo Sample (data set " << set.GetName() << ")" << endl; 1325 1328 *fLog << endl; 1329 1330 if (fDisplay) 1331 fDisplay->SetWindowName(fName); 1326 1332 1327 1333 // Setup everything which is read from the ganymed file … … 1616 1622 tlist2.SetAccelerator(MTask::kAccDontReset|MTask::kAccDontTime); 1617 1623 1618 MEvtLoop loop2( "FillMonteCarlo"); // ***** fName *****1624 MEvtLoop loop2(fName); // ***** fName ***** 1619 1625 loop2.SetParList(&plist); 1620 1626 loop2.SetDisplay(fDisplay); … … 1685 1691 cont.Add(fDisplay); 1686 1692 1687 return WriteContainer(cont, "", "RECREATE"); 1688 } 1693 if (!WriteContainer(cont, "", "RECREATE")) 1694 { 1695 *fLog << err << GetDescriptor() << ": Writing result failed." << endl; 1696 return kFALSE; 1697 } 1698 1699 *fLog << all << GetDescriptor() << ": Done." << endl; 1700 *fLog << endl << endl; 1701 1702 return kTRUE; 1703 } -
trunk/MagicSoft/Mars/mjobs/MJob.cc
r8644 r8719 329 329 // 330 330 // Checks whether write permissions to fname exists including 331 // the fOverwrite data amember.331 // the fOverwrite data member. Empty file names return kTRUE 332 332 // 333 333 Bool_t MJob::HasWritePermission(TString fname) const … … 346 346 } 347 347 348 if ( !fOverwrite)348 if (fOverwrite) 349 349 return kTRUE; 350 350
Note:
See TracChangeset
for help on using the changeset viewer.