Ignore:
Timestamp:
08/15/07 18:06:11 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCut.cc

    r8662 r8669  
    760760    MSrcPosRndm srcrndm;
    761761
     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
    762776    tlist2.AddToList(&scalc);
    763777    tlist2.AddToList(&scor);
     
    808822
    809823    tlist.AddToList(&readoff);
     824    if (!set.IsMonteCarlo())
     825        tlist.AddToList(&fillvs, "EffectiveOnTime");
    810826    if (gLog.GetDebugLevel()>4)
    811827        tlist.AddToList(&print2, "EffectiveOnTime");
     
    917933     fillvs.SetNameTab("OnTime");
    918934     */
    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");
    926935
    927936    /*
     
    962971    if (set.IsWobbleMode() && !set.IsMonteCarlo())
    963972        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":"");
    964983
    965984    if (!fWriteOnly)
     
    9951014
    9961015        if (!set.IsMonteCarlo())
    997             tlist.AddToList(&fillvs, "EffectiveOnTime");
     1016            tlist.Replace(&fillvs2);
    9981017        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);
    10021019    }
    10031020
Note: See TracChangeset for help on using the changeset viewer.