Changeset 8669 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 08/15/07 18:06:11 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r8662 r8669 760 760 MSrcPosRndm srcrndm; 761 761 762 MH3 hvs("MPointingPos.fZd"); 763 hvs.SetName("ThetaOff;Theta"); 764 hvs.SetTitle("Effective On-Time vs. Zenith Angle;\\Theta [\\circ];T_{on} [s]"); 765 766 MFillH fillvs(&hvs, "", "FillOnTime"); 767 if (!set.IsMonteCarlo()) 768 fillvs.SetWeight("MEffectiveOnTime"); 769 fillvs.SetNameTab("OnTime"); 770 771 // It is not really necessary to re-calculate the image parameters 772 // for the the on-source for MCs, but it is done for symmetry reasons 773 if (set.IsMonteCarlo()) 774 tlist2.AddToList(&fillvs); 775 762 776 tlist2.AddToList(&scalc); 763 777 tlist2.AddToList(&scor); … … 808 822 809 823 tlist.AddToList(&readoff); 824 if (!set.IsMonteCarlo()) 825 tlist.AddToList(&fillvs, "EffectiveOnTime"); 810 826 if (gLog.GetDebugLevel()>4) 811 827 tlist.AddToList(&print2, "EffectiveOnTime"); … … 917 933 fillvs.SetNameTab("OnTime"); 918 934 */ 919 MH3 hvs("MPointingPos.fZd");920 hvs.SetName("Theta");921 hvs.SetTitle("Effective On-Time vs. Zenith Angle;\\Theta [\\circ];T_{on} [s]");922 MFillH fillvs(&hvs, "", "FillOnTime");923 if (!set.IsMonteCarlo())924 fillvs.SetWeight("MEffectiveOnTime");925 fillvs.SetNameTab("OnTime");926 935 927 936 /* … … 962 971 if (set.IsWobbleMode() && !set.IsMonteCarlo()) 963 972 tlist2.AddToListBefore(&fillsrc, &hcalc); 973 974 MH3 hvs2("MPointingPos.fZd"); 975 hvs2.SetName("Theta"); 976 hvs2.SetTitle("Effective On-Time vs. Zenith Angle;\\Theta [\\circ];T_{on} [s]"); 977 978 MFillH fillvs2(&hvs2, "", "FillOnTime"); 979 if (!set.IsMonteCarlo()) 980 fillvs2.SetWeight("MEffectiveOnTime"); 981 fillvs2.SetNameTab("OnTime"); 982 fillvs2.SetDrawOption(set.HasOffSequences()||set.IsWobbleMode()?"same":""); 964 983 965 984 if (!fWriteOnly) … … 995 1014 996 1015 if (!set.IsMonteCarlo()) 997 tlist. AddToList(&fillvs, "EffectiveOnTime");1016 tlist.Replace(&fillvs2); 998 1017 else 999 // It is not really necessary to re-calculate the image parameters 1000 // for the the on-source for MCs, but it is done for symmetry reasons 1001 tlist2.AddToListBefore(&fillvs, &scalc); 1018 tlist2.Replace(&fillvs2); 1002 1019 } 1003 1020
Note:
See TracChangeset
for help on using the changeset viewer.