Changeset 8244 for trunk/MagicSoft/Mars/mjobs/MJCut.cc
- Timestamp:
- 01/11/07 14:56:24 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r8222 r8244 62 62 #include "MWriteRootFile.h" 63 63 64 // Filter 65 //#include "MFDataMember.h" 66 64 67 // Fit signal environment 65 68 #include "../mhflux/MAlphaFitter.h" … … 270 273 // analysis number num, see GetOutputFile() 271 274 // 272 Bool_t MJCut::WriteResult(const MParList &plist, UInt_t num) const275 Bool_t MJCut::WriteResult(const MParList &plist, const MDataSet &set) const 273 276 { 274 277 TObjArray arr; … … 286 289 arr.Add((TObject*)(&halpha->GetAlphaFitter())); 287 290 291 // Save also the dataset 292 arr.Add(const_cast<MDataSet*>(&set)); 293 294 const Int_t num = set.GetNumAnalysis(); 288 295 const TString fname(fNameOutput.IsNull() ? Form("ganymed%08d.root", num) : fNameOutput.Data()); 289 296 … … 577 584 578 585 // Initialize default binnings 579 MBinning bins1(18, 0, 90, "BinningAlpha", "lin"); 580 MBinning bins2(15, 10, 1e6 , "BinningSize", "log"); 581 MBinning bins3(67, -0.005, 0.665, "BinningTheta", "asin"); 586 MBinning bins1( 18, 0, 90, "BinningAlpha", "lin"); 587 MBinning bins2( 15, 10, 1e6 , "BinningSize", "log"); 588 MBinning bins3( 67, -0.005, 0.665, "BinningTheta", "asin"); 589 //MBinning binsT(150, 0, 150, "BinningDeltaT", "lin"); 582 590 MBinning bins4("BinningFalseSource"); 583 591 MBinning bins5("BinningWidth"); … … 597 605 plist.AddToList(&bins9); 598 606 plist.AddToList(&bins0); 599 //plist.AddToList(&bins a);607 //plist.AddToList(&binsT); 600 608 601 609 // -------------------------------------------------------------------------------- … … 662 670 MFillH fill6a("MHImgParOffPost [MHImagePar]", "MImagePar", "FillImgParPost"); 663 671 MFillH fill7a("MHNewParOffPost [MHNewImagePar]", "MNewImagePar", "FillNewParPost"); 672 //MFillH fill9a("MHEffOffTime [MHEffectiveOnTime]", "MTime", "FillEffOnTime"); 664 673 fill1a.SetNameTab("PreCut"); 665 674 fill2a.SetNameTab("PostCut"); … … 669 678 fill6a.SetNameTab("ImgPar"); 670 679 fill7a.SetNameTab("NewPar"); 680 //fill9a.SetNameTab("EffOffT"); 681 682 //MFDataMember fbin("Bin.fVal", '>', 0); 683 //fill9a.SetFilter(&fbin); 671 684 672 685 MPrint print2("MEffectiveOnTime"); … … 722 735 } 723 736 if (!fWriteOnly) 737 { 724 738 tlist2.AddToList(&falpha); 739 /* if (!fIsMonteCarlo) 740 { 741 tlist2.AddToList(&fbin); 742 tlist2.AddToList(&fill9a); 743 } */ 744 } 725 745 tlist2.AddToList(&cont3); 726 746 if (write1) … … 810 830 MFillH fill6b("MHImgParOnPost [MHImagePar]", "MImagePar", "FillImgParPost"); 811 831 MFillH fill7b("MHNewParOnPost [MHNewImagePar]", "MNewImagePar", "FillNewParPost"); 832 //MFillH fill9b("MHEffOnTime [MHEffectiveOnTime]", "MTime", "FillEffOnTime"); 812 833 fill1b.SetNameTab("PreCut"); 813 834 fill2b.SetNameTab("PostCut"); … … 817 838 fill6b.SetNameTab("ImgPar"); 818 839 fill7b.SetNameTab("NewPar"); 840 //fill9b.SetNameTab("EffOnT"); 819 841 fill1b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":""); 820 842 fill2b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":""); … … 824 846 fill6b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":""); 825 847 fill7b.SetDrawOption(set.HasOffSequences()||fIsWobble?"same":""); 848 849 //fill9b.SetFilter(&fbin); 826 850 827 851 /* … … 891 915 } 892 916 tlist2.Replace(&falpha2); 917 //if (!fIsMonteCarlo) 918 // tlist2.Replace(&fill9b); 893 919 if (!fIsWobble || !fNameHist.IsNull()) 894 920 tlist2.Replace(&ffs2); … … 925 951 // FIXME: Perform fit and plot energy dependant alpha plots 926 952 // and fit result to new tabs! 927 if (!WriteResult(plist, set .GetNumAnalysis()))953 if (!WriteResult(plist, set)) 928 954 return kFALSE; 929 955
Note:
See TracChangeset
for help on using the changeset viewer.