Changeset 18957 for trunk/Mars/mjobs
- Timestamp:
- 03/25/18 16:32:05 (7 years ago)
- Location:
- trunk/Mars/mjobs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mjobs/MJMerpp.cc
r11453 r18957 389 389 SetPathOut(name2); 390 390 391 const Int_t rc = Process();392 if (rc ==0)391 const Int_t rc2 = Process(); 392 if (rc2==0) 393 393 continue; 394 394 395 return rc ;395 return rc2; 396 396 } 397 397 return 0; -
trunk/Mars/mjobs/MJSimulation.cc
r18576 r18957 1108 1108 gPad->SetGridy(); 1109 1109 gROOT->SetSelectedPad(0); 1110 MHCamera * c= new MHCamera(static_cast<MGeomCam&>(*env1.GetCont()));1111 c->SetStats(kFALSE);1112 c->SetBit(MHCamera::kNoLegend);1113 c->SetBit(kCanDelete);1114 c->Draw();1110 MHCamera *hcam = new MHCamera(static_cast<MGeomCam&>(*env1.GetCont())); 1111 hcam->SetStats(kFALSE); 1112 hcam->SetBit(MHCamera::kNoLegend); 1113 hcam->SetBit(kCanDelete); 1114 hcam->Draw(); 1115 1115 } 1116 1116 … … 1123 1123 gPad->SetGridy(); 1124 1124 gROOT->SetSelectedPad(0); 1125 MHCamera * c= new MHCamera(*cam);1126 c->SetStats(kFALSE);1127 c->SetBit(MHCamera::kNoLegend);1128 c->SetBit(kCanDelete);1129 c->Draw();1125 MHCamera *hcam = new MHCamera(*cam); 1126 hcam->SetStats(kFALSE); 1127 hcam->SetBit(MHCamera::kNoLegend); 1128 hcam->SetBit(kCanDelete); 1129 hcam->Draw(); 1130 1130 } 1131 1131 } … … 1173 1173 gPad->SetGridy(); 1174 1174 gROOT->SetSelectedPad(0); 1175 MParSpline * all = (MParSpline*)splinepde.DrawClone();1175 MParSpline *sall = (MParSpline*)splinepde.DrawClone(); 1176 1176 //all->SetTitle("Combined acceptance"); 1177 all->SetBit(kCanDelete);1177 sall->SetBit(kCanDelete); 1178 1178 if (splinemirror.GetSpline()) 1179 all->Multiply(*splinemirror.GetSpline());1179 sall->Multiply(*splinemirror.GetSpline()); 1180 1180 if (splinecones2.GetSpline()) 1181 all->Multiply(*splinecones2.GetSpline());1181 sall->Multiply(*splinecones2.GetSpline()); 1182 1182 } 1183 1183 -
trunk/Mars/mjobs/MSequence.cc
r17834 r18957 321 321 while (!files.IsNull()) 322 322 { 323 const TString num = files(regexp);324 if ( num.IsNull())323 const TString fnum = files(regexp); 324 if (fnum.IsNull()) 325 325 { 326 326 *fLog << warn << "WARNING - File in run " << run << " is NaN (not a number): '" << files << "'" << endl; … … 328 328 } 329 329 330 const Ssiz_t p1 =num.First(':');331 if ( p1>=0)330 const Ssiz_t q1 = fnum.First(':'); 331 if (q1>=0) 332 332 { 333 const Int_t n1 = atoi(num.Data());334 const Int_t n2 = atoi(num.Data()+p1+1);335 336 if ( n2<n1)333 const Int_t m1 = atoi(fnum.Data()); 334 const Int_t m2 = atoi(fnum.Data()+q1+1); 335 336 if (m2<m1) 337 337 { 338 *fLog << warn << "WARNING - Invalid range in '" << num << "'... ignored." << endl;338 *fLog << warn << "WARNING - Invalid range in '" << fnum << "'... ignored." << endl; 339 339 return; 340 340 } 341 341 342 342 // FIXME: n2==0 || n2<n1 343 for (int i= n1; i<=n2; i++)343 for (int i=m1; i<=m2; i++) 344 344 AddEntry(run, i, data, sub); 345 345 } 346 346 else 347 347 { 348 const Int_t file = atoi( num.Data());348 const Int_t file = atoi(fnum.Data()); 349 349 AddEntry(run, file, data, sub); 350 350 } 351 351 352 files.Remove(0, files.First( num)+num.Length());352 files.Remove(0, files.First(fnum)+fnum.Length()); 353 353 } 354 354 }
Note:
See TracChangeset
for help on using the changeset viewer.