Changeset 7171 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 06/27/05 19:42:25 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r7169 r7171 59 59 #include "../mhflux/MHAlpha.h" 60 60 #include "../mhflux/MHCollectionArea.h" 61 //#include "../mhflux/MHThreshold.h" 61 62 #include "../mhflux/MHEnergyEst.h" 62 63 #include "../mhflux/MMcSpectrumWeight.h" … … 140 141 task->SetName(name); 141 142 143 if (dynamic_cast<MContinue*>(task)) 144 dynamic_cast<MContinue*>(task)->SetAllowEmpty(); 145 142 146 return kTRUE; 143 147 } … … 426 430 taskenv1.SetDefault(fEstimateEnergy ? fEstimateEnergy : &est); 427 431 432 // FIXME: Create HistE and HistEOff to be able to modify it from 433 // the resource file. 434 428 435 MFillH fill1(Form("HistEOff [%s]", cls.Data()), "", "FillHistEOff"); 429 436 MFillH fill2(Form("HistE [%s]", cls.Data()), "", "FillHistE"); … … 442 449 tlist.AddToList(&fill2); 443 450 444 MEvtLoop loop( fName);451 MEvtLoop loop("RefillExcess"); // ***** fName ***** 445 452 loop.SetParList(&plist); 446 453 loop.SetDisplay(fDisplay); … … 515 522 tlist1.AddToList(&fill0); 516 523 517 MEvtLoop loop1( fName);524 MEvtLoop loop1("IntermediateLoop"); // ***** fName ***** 518 525 loop1.SetParList(&plist); 519 526 loop1.SetLogStream(fLog); … … 623 630 f.SetParameter(1, 1.9e-6); 624 631 f.SetLineColor(kGreen); 625 spectrum.Fit(&f, "NIM", "", 100, 4000);632 spectrum.Fit(&f, "NIM", "", 100, 5000); 626 633 f.DrawCopy("same"); 627 634 … … 903 910 904 911 if (!fNoThetaWeights) 905 weight.Set ZdWeights(&temp1);912 weight.SetWeightsZd(&temp1); 906 913 907 914 TH1D excess; … … 979 986 MFillH fill3(&area, "", "FillCollectionArea"); 980 987 MFillH fill4(&hest, "", "FillEnergyEst"); 988 MFillH fill5("MHThreshold", "", "FillThreshold"); 981 989 fill3.SetWeight(); 982 990 fill4.SetWeight(); 991 fill5.SetWeight(); 992 fill3.SetNameTab("ColArea"); 993 fill4.SetNameTab("E-Est"); 994 fill5.SetNameTab("Threshold"); 983 995 984 996 MH3 hsize("MHillas.fSize"); … … 1034 1046 tlist2.AddToList(&fill3); 1035 1047 tlist2.AddToList(&fill4); 1048 tlist2.AddToList(&fill5); 1036 1049 tlist2.AddToList(&fill2a); 1037 1050 tlist2.AddToList(&fill3a); … … 1043 1056 //tlist2.AddToList(&fill9a); 1044 1057 1045 MEvtLoop loop2( fName);1058 MEvtLoop loop2("FillMonteCarlo"); // ***** fName ***** 1046 1059 loop2.SetParList(&plist); 1047 1060 loop2.SetDisplay(fDisplay); -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r7135 r7171 288 288 // ------------------ Setup write task ---------------- 289 289 290 // Effective on-time need its own not to be skipped by (eg) image cleaning 291 // Muons needs its own to have a unique SetReadyToSave 290 292 const TString rule(Form("%s{s/_Y_/_I_}", fPathOut.Data())); 291 293 MWriteRootFile write( 2, rule, fOverwrite?"RECREATE":"NEW"); 292 MWriteRootFile writem(2, rule, fOverwrite?"RECREATE":"NEW"); 294 MWriteRootFile writet(2, rule, fOverwrite?"RECREATE":"NEW"); // EffectiveOnTime 295 MWriteRootFile writem(2, rule, fOverwrite?"RECREATE":"NEW"); // Muons 296 293 297 // Data 294 298 write.AddContainer("MHillas", "Events"); … … 334 338 write.AddContainer("MTimeDrive", "Drive"); 335 339 // Effective On Time 336 write .AddContainer("MEffectiveOnTime", "EffectiveOnTime");337 write .AddContainer("MTimeEffectiveOnTime", "EffectiveOnTime");340 writet.AddContainer("MEffectiveOnTime", "EffectiveOnTime"); 341 writet.AddContainer("MTimeEffectiveOnTime", "EffectiveOnTime"); 338 342 } 339 343 … … 373 377 tlist2.AddToList(&fill8); 374 378 tlist2.AddToList(&fill9); 379 tlist2.AddToList(&writet); 375 380 } 376 381 //tlist2.AddToList(&fillb);
Note:
See TracChangeset
for help on using the changeset viewer.