- Timestamp:
- 04/20/05 15:20:03 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6964 r6965 37 37 - use the sequence number'd directories in case of calibrated data 38 38 and image files instead of the date. 39 40 * mhflux/MAlphaFitter.cc: 41 - copy also results in Copy() 42 43 * mjobs/MJOptimize.cc: 44 - print result of optimization in case MAlphaFitter is used 45 - store results back in initial MAlphaFitter 39 46 40 47 -
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc
r6958 r6965 306 306 MAlphaFitter &f = static_cast<MAlphaFitter&>(o); 307 307 308 // Setup 308 309 f.fSigInt = fSigInt; 309 310 f.fSigMax = fSigMax; … … 319 320 f.fCoefficients.Reset(); 320 321 322 // Result 323 f.fSignificance = fSignificance; 324 f.fEventsExcess = fEventsExcess; 325 f.fEventsSignal = fEventsSignal; 326 f.fEventsBackground = fEventsBackground; 327 f.fChiSqSignal = fChiSqSignal; 328 f.fChiSqBg = fChiSqBg; 329 f.fIntegralMax = fIntegralMax; 330 f.fScaleFactor = fScaleFactor; 331 332 // Function 321 333 TF1 *fcn = f.fFunc; 322 334 f.fFunc = new TF1(*fFunc); -
trunk/MagicSoft/Mars/mjobs/MJOptimize.cc
r6949 r6965 866 866 tasklist.AddToList(&fill); 867 867 868 // Optimize with the tasklist in this parameterlist 868 869 if (!Optimize(parlist)) 869 870 return kFALSE; 870 871 872 // Copy the result back to be accessible by the user 873 if (fit) 874 hist.GetAlphaFitter().Copy(*fit); 875 // Print the result 876 hist.GetAlphaFitter().Print("result"); 877 878 // Store result if requested 871 879 TObjArray cont; 872 880 cont.Add(&contin); … … 956 964 parlist.AddToList(&list); 957 965 966 MFillH fillof(&histof, "", "FillHistOff"); 958 967 MFillH fillon(&histon, "", "FillHistOn"); 959 MFillH fillof(&histof, "", "FillHistOff");960 968 961 969 MF f0(Form("M[%d]<0.5", idxdatatype), "FilterOffData"); … … 975 983 tasklist.AddToList(&fillon); 976 984 985 // Optimize with the tasklist in this parameterlist 977 986 if (!Optimize(parlist)) 978 987 return kFALSE; 979 988 989 // Copy the result back to be accessible by the user 990 if (fit) 991 histon.GetAlphaFitter().Copy(*fit); 992 // Print the result 993 histon.GetAlphaFitter().Print("result"); 994 995 // Store result if requested 980 996 TObjArray cont; 981 997 cont.Add(&contin); … … 1044 1060 tasklist.AddToList(&fill); 1045 1061 1062 // Optimize with the tasklist in this parameterlist 1046 1063 if (!Optimize(parlist)) 1047 1064 return kFALSE; 1048 1065 1066 // Print the result 1049 1067 hist.Print(); 1050 1068 1069 // Store result if requested 1051 1070 TObjArray cont; 1052 1071 cont.Add(&est);
Note:
See TracChangeset
for help on using the changeset viewer.