Ejemplo n.º 1
0
def main():

    print("Creating plot directories.")
    os.system("mkdir -p plots/twoBin")
    os.system("mkdir -p plots/atlas_counting")

    draw_muTmuW_frame(muTMuWOverviewNegScenarios,
                      "plots/twoBin/overviewNegScenarios_muTmuW.eps")
    draw_muTmuW_frame(profiledContour,
                      "plots/twoBin/oneAlpha_catUniversal_muTmuW.eps",
                      opts={"type": "oneAlpha_catUniversal"})
    draw_muTmuW_frame(
        profiledContour,
        "plots/twoBin/oneAlpha_catUniversal_muTmuW_template0.eps",
        opts={
            "type": "oneAlpha_catUniversal",
            "template0": True
        })
    draw_muTmuW_frame(profiledContour,
                      "plots/twoBin/oneAlpha_catNonUniversal_muTmuW.eps",
                      opts={"type": "oneAlpha_catNonUniversal"})
    draw_muTmuW_frame(
        profiledContour,
        "plots/twoBin/oneAlpha_catNonUniversal_muTmuW_template0.eps",
        opts={
            "type": "oneAlpha_catNonUniversal",
            "template0": True
        })
    draw_muTmuW_frame(profiledContour,
                      "plots/twoBin/twoAlpha_catUniversal_muTmuW.eps",
                      opts={"type": "twoAlpha_catUniversal"})
    draw_muTmuW_frame(
        profiledContour,
        "plots/twoBin/twoAlpha_catUniversal_muTmuW_template0.eps",
        opts={
            "type": "twoAlpha_catUniversal",
            "template0": True
        })
    draw_muTmuW_frame(profiledContour,
                      "plots/twoBin/twoAlpha_catNonUniversal_muTmuW.eps",
                      opts={"type": "twoAlpha_catNonUniversal"})
    draw_muTmuW_frame(
        profiledContour,
        "plots/twoBin/twoAlpha_catNonUniversal_muTmuW_template0.eps",
        opts={
            "type": "twoAlpha_catNonUniversal",
            "template0": True
        })

    draw_muTmuW_frame(
        profiledContour,
        "plots/twoBin/twoAlpha_catNonUniversal_muTmuW_template10_etasgeneric_learning.eps",
        opts={
            "type": "twoAlpha_catNonUniversal",
            'template10_etasgeneric10_learning': True
        })
    draw_muTmuW_frame(
        profiledContour,
        "plots/twoBin/twoAlpha_catNonUniversal_muTmuW_template14_etasgeneric_learning.eps",
        opts={
            "type": "twoAlpha_catNonUniversal",
            'template14_etasgeneric14_learning': True
        })
    draw_muTmuW_frame(
        profiledContour,
        "plots/twoBin/twoAlpha_catNonUniversal_muTmuW_template20_etasgeneric_learning.eps",
        opts={
            "type": "twoAlpha_catNonUniversal",
            'template20_etasgeneric20_learning': True
        })
    draw_muTmuW_frame(
        profiledContour,
        "plots/twoBin/twoAlpha_catNonUniversal_muTmuW_template24_etasgeneric_learning.eps",
        opts={
            "type": "twoAlpha_catNonUniversal",
            'template24_etasgeneric24_learning': True
        })

    draw_muTmuW_frame(
        profiledContour,
        "plots/twoBin/twoAlpha_catNonUniversal_interpCode0_muTmuW_template10_etasgeneric_learning.eps",
        opts={
            "type": "twoAlpha_catNonUniversal_interpCode0",
            'template10_etasgeneric10_learning': True
        })
    draw_muTmuW_frame(
        profiledContour,
        "plots/twoBin/twoAlpha_catNonUniversal_interpCode0_muTmuW_template14_etasgeneric_learning.eps",
        opts={
            "type": "twoAlpha_catNonUniversal_interpCode0",
            'template14_etasgeneric14_learning': True
        })
    draw_muTmuW_frame(
        profiledContour,
        "plots/twoBin/twoAlpha_catNonUniversal_interpCode0_muTmuW_template20_etasgeneric_learning.eps",
        opts={
            "type": "twoAlpha_catNonUniversal_interpCode0",
            'template20_etasgeneric20_learning': True
        })
    draw_muTmuW_frame(
        profiledContour,
        "plots/twoBin/twoAlpha_catNonUniversal_interpCode0_muTmuW_template24_etasgeneric_learning.eps",
        opts={
            "type": "twoAlpha_catNonUniversal_interpCode0",
            'template24_etasgeneric24_learning': True
        })

    draw_muTmuW_frame(muTMuWOverview, "plots/twoBin/overview_muTmuW.eps")
    draw_muTmuW_frame(muTMuWInterpCodes, "plots/twoBin/interpcodes_muTmuW.eps")

    scenarios = [
        'scenarioA',
        'scenarioA2',
        'scenarioB',
        'scenarioC',
        'scenarioC2',
        'scenarioD',
    ]
    for s in scenarios:
        draw_muTmuW_frame(profiledContour,
                          "plots/twoBin/" + s +
                          "_muTmuW_template4_etasfisherInfo.eps",
                          opts={"type": s})
        draw_muTmuW_frame(profiledContour,
                          "plots/twoBin/" + s +
                          "_muTmuW_template0_etasfisherInfo.eps",
                          opts={
                              "type": s,
                              "template0": True
                          })
        draw_muTmuW_frame(profiledContour,
                          "plots/twoBin/" + s +
                          "_muTmuW_templateM1_etasfisherInfo.eps",
                          opts={
                              "type": s,
                              "templateM1": True
                          })
        draw_muTmuW_frame(profiledContour,
                          "plots/twoBin/" + s +
                          "_muTmuW_template14_etasgeneric_M4.eps",
                          opts={
                              "type": s,
                              "template14_etasgeneric_M4": True
                          })
        draw_muTmuW_frame(profiledContour,
                          "plots/twoBin/" + s +
                          "_muTmuW_template14_etasgeneric_M5.eps",
                          opts={
                              "type": s,
                              "template14_etasgeneric_M5": True
                          })
        draw_muTmuW_frame(profiledContour,
                          "plots/twoBin/" + s +
                          "_muTmuW_template14_etasgeneric_fisherInfo.eps",
                          opts={
                              "type": s,
                              "template14_etasgeneric_fisherInfo": True
                          })

        # draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template10_etasgeneric10_learning.eps", opts={"type":s,"template10_etasgeneric10_learning":True} )
        # draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template14_etasgeneric14_learning.eps", opts={"type":s,"template14_etasgeneric14_learning":True} )
        # draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template20_etasgeneric20_learning.eps", opts={"type":s,"template20_etasgeneric20_learning":True} )
        # draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template24_etasgeneric24_learning.eps", opts={"type":s,"template24_etasgeneric24_learning":True} )

        draw_muTmuW_frame(profiledContour,
                          "plots/twoBin/" + s +
                          "_muTmuW_template10_etasgeneric10_learningFull.eps",
                          opts={
                              "type": s,
                              "template10_etasgeneric10_learningFull": True
                          })
        draw_muTmuW_frame(profiledContour,
                          "plots/twoBin/" + s +
                          "_muTmuW_template14_etasgeneric14_learningFull.eps",
                          opts={
                              "type": s,
                              "template14_etasgeneric14_learningFull": True
                          })
        draw_muTmuW_frame(profiledContour,
                          "plots/twoBin/" + s +
                          "_muTmuW_template20_etasgeneric20_learningFull.eps",
                          opts={
                              "type": s,
                              "template20_etasgeneric20_learningFull": True
                          })
        draw_muTmuW_frame(profiledContour,
                          "plots/twoBin/" + s +
                          "_muTmuW_template24_etasgeneric24_learningFull.eps",
                          opts={
                              "type": s,
                              "template24_etasgeneric24_learningFull": True
                          })

    for s in scenarios:
        for i in ['_interpCode0']:
            draw_muTmuW_frame(
                profiledContour,
                "plots/twoBin/" + s + i +
                "_muTmuW_template20_etasgeneric20_learning_box1.0.eps",
                opts={
                    "type": s + i,
                    "template20_etasgeneric20_learning_box1.0": True
                })
            draw_muTmuW_frame(
                profiledContour,
                "plots/twoBin/" + s + i +
                "_muTmuW_template20_etasgeneric20_learningFull_box1.0.eps",
                opts={
                    "type": s + i,
                    "template20_etasgeneric20_learningFull_box1.0": True
                })

            opts = {"type": s + i}
            if "scenarioC" in s: opts['byHand'] = True

            draw_muTmuW_frame(profiledContourOverlay,
                              "plots/twoBin/" + s + i + "_muTmuW_overlay.eps",
                              opts=opts,
                              r=[0.5, 0.3, 1.8, 2.2])
            optsFull = dict([(k, v) for k, v in opts.iteritems()])
            optsFull['learningFull'] = True
            draw_muTmuW_frame(profiledContourOverlay,
                              "plots/twoBin/" + s + i +
                              "_muTmuW_overlay_learningFull.eps",
                              opts=optsFull,
                              r=[0.5, 0.3, 1.8, 2.2])

            opts['box'] = True
            draw_muTmuW_frame(profiledContourOverlay,
                              "plots/twoBin/" + s + i +
                              "_muTmuW_overlay_box.eps",
                              opts=opts,
                              r=[0.5, 0.3, 1.8, 2.2])
            optsFull = dict([(k, v) for k, v in opts.iteritems()])
            optsFull['learningFull'] = True
            draw_muTmuW_frame(profiledContourOverlay,
                              "plots/twoBin/" + s + i +
                              "_muTmuW_overlay_box_learningFull.eps",
                              opts=optsFull,
                              r=[0.5, 0.3, 1.8, 2.2])

    fileList = "`\ls plots/twoBin/*.eps plots/atlas_counting/*.eps`"
    # print( "Merging eps files" )
    # os.system( "gs -q -dNOPAUSE -dBATCH -sEPSCrop -sDEVICE=pdfwrite -sOutputFile=plots/plots.pdf "+fileList )
    print("Creating zip file")
    os.system("rm plots/plots.zip")
    os.system("zip -r plots/plots.zip " + fileList)
Ejemplo n.º 2
0
def main():

    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW.eps", r=[-0.1,-2.2,3.0,6.5] )
    draw_muTmuW_frame(countingMuTMuW,
                      "plots/atlas_counting/interpCode0_muTmuW.eps",
                      opts={'interpCode0': True},
                      r=[-0.1, -2.2, 3.0, 6.5])
    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template4_etasfisherInfo.eps",         opts={'model':"template4"},         r=[-0.1,-2.2,3.0,6.5] )
    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template0_etasfisherInfo.eps",         opts={'model':"template0"},         r=[-0.1,-2.2,3.0,6.5] )

    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template14_etasgeneric_M4.eps",        opts={'model':"template14_etasgeneric_M4"},        r=[-0.1,-2.2,3.0,6.5] )
    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template14_etasgeneric_M4_box1.0.eps", opts={'model':"template14_etasgeneric_M4_box1.0"}, r=[-0.1,-2.2,3.0,6.5] )
    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template14_etasgeneric_M5.eps",        opts={'model':"template14_etasgeneric_M5"},        r=[-0.1,-2.2,3.0,6.5] )
    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template14_etasgeneric_M5_box1.0.eps", opts={'model':"template14_etasgeneric_M5_box1.0"}, r=[-0.1,-2.2,3.0,6.5] )
    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template10_etasgeneric_M5.eps",        opts={'model':"template10_etasgeneric_M5"},        r=[-0.1,-2.2,3.0,6.5] )
    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template10_etasgeneric_M5_box1.0.eps", opts={'model':"template10_etasgeneric_M5_box1.0"}, r=[-0.1,-2.2,3.0,6.5] )

    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template10_etasgeneric10_learning.eps",        opts={'model':"template10_etasgeneric10_learning"},        r=[-0.1,-2.2,3.0,6.5] )
    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template10_etasgeneric10_learning_box1.0.eps", opts={'model':"template10_etasgeneric10_learning_box1.0"}, r=[-0.1,-2.2,3.0,6.5] )
    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template14_etasgeneric14_learning.eps",        opts={'model':"template14_etasgeneric14_learning"},        r=[-0.1,-2.2,3.0,6.5] )
    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template14_etasgeneric14_learning_box1.0.eps", opts={'model':"template14_etasgeneric14_learning_box1.0"}, r=[-0.1,-2.2,3.0,6.5] )
    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template20_etasgeneric20_learning.eps",        opts={'model':"template20_etasgeneric20_learning"},        r=[-0.1,-2.2,3.0,6.5] )
    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template20_etasgeneric20_learning_box1.0.eps", opts={'model':"template20_etasgeneric20_learning_box1.0"}, r=[-0.1,-2.2,3.0,6.5] )
    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template24_etasgeneric24_learning.eps",        opts={'model':"template24_etasgeneric24_learning"},        r=[-0.1,-2.2,3.0,6.5] )
    # draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template24_etasgeneric24_learning_box1.0.eps", opts={'model':"template24_etasgeneric24_learning_box1.0"}, r=[-0.1,-2.2,3.0,6.5] )

    # draw_muTmuW_frame( countingMuTMuWShifted, "plots/atlas_counting/muTmuW_shifted.eps", opts={'model':"template0_fixed_setParameteralpha_QCDscale_Higgs_ggH"}, r=[-0.1,-2.2,3.0,6.5] )
    # draw_muTmuW_frame( countingMuTMuWShifted, "plots/atlas_counting/muTmuW_shifted_etaArrows.eps", opts={'etaArrows':True, 'model':"template0_fixed_setParameteralpha_QCDscale_Higgs_ggH"}, r=[-0.1,-2.2,3.0,6.5] )
    draw_muTmuW_frame(
        countingMuTMuWShifted,
        "plots/atlas_counting/interpCode0_muTmuW_shifted.eps",
        opts={
            'interpCode0': True,
            'model': "template0_fixed_setParameteralpha_QCDscale_Higgs_ggH"
        },
        r=[-0.1, -2.2, 3.0, 6.5])
    draw_muTmuW_frame(
        countingMuTMuWShifted,
        "plots/atlas_counting/interpCode0_muTmuW_shifted_etaArrows.eps",
        opts={
            'etaArrows': True,
            'interpCode0': True,
            'model': "template0_fixed_setParameteralpha_QCDscale_Higgs_ggH"
        },
        r=[-0.1, -2.2, 3.0, 6.5])

    # draw_muTmuW_frame( countingMuTMuWArrowsAtMuHat, "plots/atlas_counting/muTmuW_etaArrows.eps",             opts={},                   r=[0.1,0.5,2.1,2.5] )
    draw_muTmuW_frame(countingMuTMuWArrowsAtMuHat,
                      "plots/atlas_counting/interpCode0_muTmuW_etaArrows.eps",
                      opts={'interpCode0': True},
                      r=[0.1, 0.5, 2.1, 2.5])

    draw_muTmuW_frame(
        countingMuTMuW,
        "plots/atlas_counting/interpCode0_muTmuW_template0_etasfisherInfo.eps",
        opts={
            'interpCode0': True,
            'model': "template0"
        },
        r=[-0.1, -2.2, 3.0, 6.5])
    draw_muTmuW_frame(
        countingMuTMuW,
        "plots/atlas_counting/interpCode0_muTmuW_template10_etasgeneric_M5.eps",
        opts={
            'interpCode0': True,
            'model': "template10_etasgeneric_M5"
        },
        r=[-0.1, -2.2, 3.0, 6.5])
    draw_muTmuW_frame(
        countingMuTMuW,
        "plots/atlas_counting/interpCode0_muTmuW_template10_etasgeneric_M5_box1.0.eps",
        opts={
            'interpCode0': True,
            'model': "template10_etasgeneric_M5_box1.0"
        },
        r=[-0.1, -2.2, 3.0, 6.5])
    draw_muTmuW_frame(
        countingMuTMuW,
        "plots/atlas_counting/interpCode0_muTmuW_template10_etasgeneric_M5_wideGauss1.3.eps",
        opts={
            'interpCode0': True,
            'model': "template10_etasgeneric_M5_wideGauss1.3"
        },
        r=[-0.1, -2.2, 3.0, 6.5])
    draw_muTmuW_frame(
        countingMuTMuW,
        "plots/atlas_counting/interpCode0_muTmuW_template10_etasgeneric10_learning.eps",
        opts={
            'interpCode0': True,
            'model': "template10_etasgeneric10_learning"
        },
        r=[-0.1, -2.2, 3.0, 6.5])
    draw_muTmuW_frame(
        countingMuTMuW,
        "plots/atlas_counting/interpCode0_muTmuW_template10_etasgeneric10_learning_box1.0.eps",
        opts={
            'interpCode0': True,
            'model': "template10_etasgeneric10_learning_box1.0"
        },
        r=[-0.1, -2.2, 3.0, 6.5])
    draw_muTmuW_frame(
        countingMuTMuW,
        "plots/atlas_counting/interpCode0_muTmuW_template20_etasgeneric20_learning.eps",
        opts={
            'interpCode0': True,
            'model': "template20_etasgeneric20_learning"
        },
        r=[-0.1, -2.2, 3.0, 6.5])
    draw_muTmuW_frame(
        countingMuTMuW,
        "plots/atlas_counting/interpCode0_muTmuW_template20_etasgeneric20_learning_box1.0.eps",
        opts={
            'interpCode0': True,
            'model': "template20_etasgeneric20_learning_box1.0"
        },
        r=[-0.1, -2.2, 3.0, 6.5])
    draw_muTmuW_frame(
        countingMuTMuW,
        "plots/atlas_counting/interpCode0_muTmuW_template10_etasgeneric10_learningFull.eps",
        opts={
            'interpCode0': True,
            'model': "template10_etasgeneric10_learningFull"
        },
        r=[-0.1, -2.2, 3.0, 6.5])
    draw_muTmuW_frame(
        countingMuTMuW,
        "plots/atlas_counting/interpCode0_muTmuW_template10_etasgeneric10_learningFull_box1.0.eps",
        opts={
            'interpCode0': True,
            'model': "template10_etasgeneric10_learningFull_box1.0"
        },
        r=[-0.1, -2.2, 3.0, 6.5])
    draw_muTmuW_frame(
        countingMuTMuW,
        "plots/atlas_counting/interpCode0_muTmuW_template10_etasgeneric10_learningFull_wideGauss1.3.eps",
        opts={
            'interpCode0': True,
            'model': "template10_etasgeneric10_learningFull_wideGauss1.3"
        },
        r=[-0.1, -2.2, 3.0, 6.5])
    draw_muTmuW_frame(
        countingMuTMuW,
        "plots/atlas_counting/interpCode0_muTmuW_template20_etasgeneric20_learningFull.eps",
        opts={
            'interpCode0': True,
            'model': "template20_etasgeneric20_learningFull"
        },
        r=[-0.1, -2.2, 3.0, 6.5])
    draw_muTmuW_frame(
        countingMuTMuW,
        "plots/atlas_counting/interpCode0_muTmuW_template20_etasgeneric20_learningFull_box1.0.eps",
        opts={
            'interpCode0': True,
            'model': "template20_etasgeneric20_learningFull_box1.0"
        },
        r=[-0.1, -2.2, 3.0, 6.5])
    draw_muTmuW_frame(
        countingMuTMuW,
        "plots/atlas_counting/interpCode0_muTmuW_template20_etasgeneric20_learningFull_wideGauss1.3.eps",
        opts={
            'interpCode0': True,
            'model': "template20_etasgeneric20_learningFull_wideGauss1.3"
        },
        r=[-0.1, -2.2, 3.0, 6.5])

    # draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/kVkF_combined.eps",                                                            r=[0.65,-1.7,1.5,2.0] )
    # draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/kVkF_combined_template14_etasgeneric_M4.eps",        opts={'model':'template14_etasgeneric_M4'},         r=[0.65,-1.7,1.5,2.0] )
    # draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/kVkF_combined_template14_etasgeneric_M4_box1.0.eps", opts={'model':'template14_etasgeneric_M4_box1.0'},  r=[0.65,-1.7,1.5,2.0] )
    # draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/kVkF_combined_template14_etasgeneric_M5.eps",        opts={'model':'template14_etasgeneric_M5'},         r=[0.65,-1.7,1.5,2.0] )
    # draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/kVkF_combined_template14_etasgeneric_M5_box1.0.eps", opts={'model':'template14_etasgeneric_M5_box1.0'},  r=[0.65,-1.7,1.5,2.0] )
    # draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/kVkF_combined_template10_etasgeneric_M5.eps",        opts={'model':'template10_etasgeneric_M5'},         r=[0.65,-1.7,1.5,2.0] )
    # draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/kVkF_combined_template10_etasgeneric_M5_box1.0.eps", opts={'model':'template10_etasgeneric_M5_box1.0'},  r=[0.65,-1.7,1.5,2.0] )
    draw_kVkF_frame(
        counting_kVkF,
        "plots/atlas_counting/kVkF_combined_template20_etasgeneric20_learning.eps",
        opts={'model': 'template20_etasgeneric20_learning'},
        r=[0.65, -1.7, 1.5, 2.0])
    draw_kVkF_frame(
        counting_kVkF,
        "plots/atlas_counting/kVkF_combined_template20_etasgeneric20_learning_box1.0.eps",
        opts={'model': 'template20_etasgeneric20_learning_box1.0'},
        r=[0.65, -1.7, 1.5, 2.0])
    draw_kVkF_frame(
        counting_kVkF,
        "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric10_learning.eps",
        opts={
            'interpCode0': True,
            'model': 'template10_etasgeneric10_learning'
        },
        r=[0.65, -1.7, 1.5, 2.0])
    draw_kVkF_frame(
        counting_kVkF,
        "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric10_learning_box1.0.eps",
        opts={
            'interpCode0': True,
            'model': 'template10_etasgeneric10_learning_box1.0'
        },
        r=[0.65, -1.7, 1.5, 2.0])
    draw_kVkF_frame(
        counting_kVkF,
        "plots/atlas_counting/interpCode0_kVkF_combined_template20_etasgeneric20_learning.eps",
        opts={
            'interpCode0': True,
            'model': 'template20_etasgeneric20_learning'
        },
        r=[0.65, -1.7, 1.5, 2.0])
    draw_kVkF_frame(
        counting_kVkF,
        "plots/atlas_counting/interpCode0_kVkF_combined_template20_etasgeneric20_learning_box1.0.eps",
        opts={
            'interpCode0': True,
            'model': 'template20_etasgeneric20_learning_box1.0'
        },
        r=[0.65, -1.7, 1.5, 2.0])
    draw_kVkF_frame(
        counting_kVkF,
        "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric10_learningFull.eps",
        opts={
            'interpCode0': True,
            'model': 'template10_etasgeneric10_learningFull'
        },
        r=[0.65, -1.7, 1.5, 2.0])
    draw_kVkF_frame(
        counting_kVkF,
        "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric10_learningFull_box1.0.eps",
        opts={
            'interpCode0': True,
            'model': 'template10_etasgeneric10_learningFull_box1.0'
        },
        r=[0.65, -1.7, 1.5, 2.0])
    draw_kVkF_frame(
        counting_kVkF,
        "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric10_learningFull_wideGauss1.3.eps",
        opts={
            'interpCode0': True,
            'model': 'template10_etasgeneric10_learningFull_wideGauss1.3'
        },
        r=[0.65, -1.7, 1.5, 2.0])
    draw_kVkF_frame(
        counting_kVkF,
        "plots/atlas_counting/interpCode0_kVkF_combined_template20_etasgeneric20_learningFull.eps",
        opts={
            'interpCode0': True,
            'model': 'template20_etasgeneric20_learningFull'
        },
        r=[0.65, -1.7, 1.5, 2.0])
    draw_kVkF_frame(
        counting_kVkF,
        "plots/atlas_counting/interpCode0_kVkF_combined_template20_etasgeneric20_learningFull_box1.0.eps",
        opts={
            'interpCode0': True,
            'model': 'template20_etasgeneric20_learningFull_box1.0'
        },
        r=[0.65, -1.7, 1.5, 2.0])
    draw_kVkF_frame(
        counting_kVkF,
        "plots/atlas_counting/interpCode0_kVkF_combined_template20_etasgeneric20_learningFull_wideGauss1.3.eps",
        opts={
            'interpCode0': True,
            'model': 'template20_etasgeneric20_learningFull_wideGauss1.3'
        },
        r=[0.65, -1.7, 1.5, 2.0])
    draw_kVkF_frame(
        counting_kVkF,
        "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric_M5.eps",
        opts={
            'interpCode0': True,
            'model': 'template10_etasgeneric_M5'
        },
        r=[0.65, -1.7, 1.5, 2.0])
    draw_kVkF_frame(
        counting_kVkF,
        "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric_M5_box1.0.eps",
        opts={
            'interpCode0': True,
            'model': 'template10_etasgeneric_M5_box1.0'
        },
        r=[0.65, -1.7, 1.5, 2.0])
    draw_kVkF_frame(
        counting_kVkF,
        "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric_M5_wideGauss1.3.eps",
        opts={
            'interpCode0': True,
            'model': 'template10_etasgeneric_M5_wideGauss1.3'
        },
        r=[0.65, -1.7, 1.5, 2.0])
    # draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/interpCode0_kVkF_combined_naive.eps",        opts={'interpCode0':True,'model':'template20_etasNone'},         r=[0.65,-1.7,1.5,2.0] )
    draw_kVkF_frame(
        counting_kVkF_overlay,
        "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric10_learningFull_overlay.eps",
        opts={
            'interpCode0':
            True,
            'skipNaive':
            True,
            'model': [
                'template10_etasgeneric10_learningFull',
                'template10_etasgeneric10_learningFull_wideGauss1.3'
            ]
        },
        r=[0.65, -1.7, 1.5, 2.0])

    # draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/kGlukGamma_combined.eps",                                                            r=[0.8,0.6,1.9,1.6] )
    # draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/kGlukGamma_combined_template14_etasgeneric_M4.eps",        opts={'model':'template14_etasgeneric_M4'},         r=[0.8,0.6,1.9,1.6] )
    # draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/kGlukGamma_combined_template14_etasgeneric_M4_box1.0.eps", opts={'model':'template14_etasgeneric_M4_box1.0'},  r=[0.8,0.6,1.9,1.6] )
    # draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/kGlukGamma_combined_template14_etasgeneric_M5.eps",        opts={'model':'template14_etasgeneric_M5'},         r=[0.8,0.6,1.9,1.6] )
    # draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/kGlukGamma_combined_template14_etasgeneric_M5_box1.0.eps", opts={'model':'template14_etasgeneric_M5_box1.0'},  r=[0.8,0.6,1.9,1.6] )
    # draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/kGlukGamma_combined_template10_etasgeneric_M5.eps",        opts={'model':'template10_etasgeneric_M5'},         r=[0.8,0.6,1.9,1.6] )
    # draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/kGlukGamma_combined_template10_etasgeneric_M5_box1.0.eps", opts={'model':'template10_etasgeneric_M5_box1.0'},  r=[0.8,0.6,1.9,1.6] )
    draw_kGlukGamma_frame(
        counting_kGlukGamma,
        "plots/atlas_counting/kGlukGamma_combined_template20_etasgeneric20_learning.eps",
        opts={'model': 'template20_etasgeneric20_learning'},
        r=[0.8, 0.6, 1.9, 1.6])
    draw_kGlukGamma_frame(
        counting_kGlukGamma,
        "plots/atlas_counting/kGlukGamma_combined_template20_etasgeneric20_learning_box1.0.eps",
        opts={'model': 'template20_etasgeneric20_learning_box1.0'},
        r=[0.8, 0.6, 1.9, 1.6])
    draw_kGlukGamma_frame(
        counting_kGlukGamma,
        "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric10_learning.eps",
        opts={
            'interpCode0': True,
            'model': 'template10_etasgeneric10_learning'
        },
        r=[0.8, 0.6, 1.9, 1.6])
    draw_kGlukGamma_frame(
        counting_kGlukGamma,
        "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric10_learning_box1.0.eps",
        opts={
            'interpCode0': True,
            'model': 'template10_etasgeneric10_learning_box1.0'
        },
        r=[0.8, 0.6, 1.9, 1.6])
    draw_kGlukGamma_frame(
        counting_kGlukGamma,
        "plots/atlas_counting/interpCode0_kGlukGamma_combined_template20_etasgeneric20_learning.eps",
        opts={
            'interpCode0': True,
            'model': 'template20_etasgeneric20_learning'
        },
        r=[0.8, 0.6, 1.9, 1.6])
    draw_kGlukGamma_frame(
        counting_kGlukGamma,
        "plots/atlas_counting/interpCode0_kGlukGamma_combined_template20_etasgeneric20_learning_box1.0.eps",
        opts={
            'interpCode0': True,
            'model': 'template20_etasgeneric20_learning_box1.0'
        },
        r=[0.8, 0.6, 1.9, 1.6])
    draw_kGlukGamma_frame(
        counting_kGlukGamma,
        "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric10_learningFull.eps",
        opts={
            'interpCode0': True,
            'model': 'template10_etasgeneric10_learningFull'
        },
        r=[0.8, 0.6, 1.9, 1.6])
    draw_kGlukGamma_frame(
        counting_kGlukGamma,
        "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric10_learningFull_box1.0.eps",
        opts={
            'interpCode0': True,
            'model': 'template10_etasgeneric10_learningFull_box1.0'
        },
        r=[0.8, 0.6, 1.9, 1.6])
    draw_kGlukGamma_frame(
        counting_kGlukGamma,
        "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric10_learningFull_wideGauss1.3.eps",
        opts={
            'interpCode0': True,
            'model': 'template10_etasgeneric10_learningFull_wideGauss1.3'
        },
        r=[0.8, 0.6, 1.9, 1.6])
    draw_kGlukGamma_frame(
        counting_kGlukGamma,
        "plots/atlas_counting/interpCode0_kGlukGamma_combined_template20_etasgeneric20_learningFull.eps",
        opts={
            'interpCode0': True,
            'model': 'template20_etasgeneric20_learningFull'
        },
        r=[0.8, 0.6, 1.9, 1.6])
    draw_kGlukGamma_frame(
        counting_kGlukGamma,
        "plots/atlas_counting/interpCode0_kGlukGamma_combined_template20_etasgeneric20_learningFull_box1.0.eps",
        opts={
            'interpCode0': True,
            'model': 'template20_etasgeneric20_learningFull_box1.0'
        },
        r=[0.8, 0.6, 1.9, 1.6])
    draw_kGlukGamma_frame(
        counting_kGlukGamma,
        "plots/atlas_counting/interpCode0_kGlukGamma_combined_template20_etasgeneric20_learningFull_wideGauss1.3.eps",
        opts={
            'interpCode0': True,
            'model': 'template20_etasgeneric20_learningFull_wideGauss1.3'
        },
        r=[0.8, 0.6, 1.9, 1.6])
    draw_kGlukGamma_frame(
        counting_kGlukGamma,
        "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric_M5.eps",
        opts={
            'interpCode0': True,
            'model': 'template10_etasgeneric_M5'
        },
        r=[0.8, 0.6, 1.9, 1.6])
    draw_kGlukGamma_frame(
        counting_kGlukGamma,
        "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric_M5_box1.0.eps",
        opts={
            'interpCode0': True,
            'model': 'template10_etasgeneric_M5_box1.0'
        },
        r=[0.8, 0.6, 1.9, 1.6])
    draw_kGlukGamma_frame(
        counting_kGlukGamma,
        "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric_M5_wideGauss1.3.eps",
        opts={
            'interpCode0': True,
            'model': 'template10_etasgeneric_M5_wideGauss1.3'
        },
        r=[0.8, 0.6, 1.9, 1.6])
    # draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/interpCode0_kGlukGamma_combined_naive.eps", opts={'interpCode0':True,'model':'template20_etasNone'},  r=[0.8,0.6,1.9,1.6] )
    draw_kGlukGamma_frame(
        counting_kGlukGamma_overlay,
        "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric10_learningFull_overlay.eps",
        opts={
            'interpCode0':
            True,
            'skipNaive':
            True,
            'model': [
                'template10_etasgeneric10_learningFull',
                'template10_etasgeneric10_learningFull_wideGauss1.3'
            ]
        },
        r=[0.8, 0.6, 1.9, 1.6])

    fileList = "`\ls plots/twoBin/*.eps plots/atlas_counting/*.eps`"
    # print( "Merging eps files" )
    # os.system( "gs -q -dNOPAUSE -dBATCH -sEPSCrop -sDEVICE=pdfwrite -sOutputFile=plots/plots.pdf "+fileList )
    print("Creating zip file")
    os.system("rm plots/plots.zip")
    os.system("zip -r plots/plots.zip " + fileList)
Ejemplo n.º 3
0
def main():

	print( "Creating plot directories." )
	os.system( "mkdir -p plots/twoBin" )
	os.system( "mkdir -p plots/atlas_counting" )

	draw_muTmuW_frame( muTMuWOverviewNegScenarios, "plots/twoBin/overviewNegScenarios_muTmuW.eps" )
	draw_muTmuW_frame( profiledContour, "plots/twoBin/oneAlpha_catUniversal_muTmuW.eps",                opts={"type":"oneAlpha_catUniversal"} )
	draw_muTmuW_frame( profiledContour, "plots/twoBin/oneAlpha_catUniversal_muTmuW_template0.eps",    opts={"type":"oneAlpha_catUniversal","template0":True} )
	draw_muTmuW_frame( profiledContour, "plots/twoBin/oneAlpha_catNonUniversal_muTmuW.eps",             opts={"type":"oneAlpha_catNonUniversal"} )
	draw_muTmuW_frame( profiledContour, "plots/twoBin/oneAlpha_catNonUniversal_muTmuW_template0.eps", opts={"type":"oneAlpha_catNonUniversal","template0":True} )
	draw_muTmuW_frame( profiledContour, "plots/twoBin/twoAlpha_catUniversal_muTmuW.eps",                opts={"type":"twoAlpha_catUniversal"} )
	draw_muTmuW_frame( profiledContour, "plots/twoBin/twoAlpha_catUniversal_muTmuW_template0.eps",    opts={"type":"twoAlpha_catUniversal","template0":True} )
	draw_muTmuW_frame( profiledContour, "plots/twoBin/twoAlpha_catNonUniversal_muTmuW.eps",             opts={"type":"twoAlpha_catNonUniversal"} )
	draw_muTmuW_frame( profiledContour, "plots/twoBin/twoAlpha_catNonUniversal_muTmuW_template0.eps", opts={"type":"twoAlpha_catNonUniversal","template0":True} )

	draw_muTmuW_frame( profiledContour, "plots/twoBin/twoAlpha_catNonUniversal_muTmuW_template10_etasgeneric_learning.eps",             opts={"type":"twoAlpha_catNonUniversal",'template10_etasgeneric10_learning':True} )
	draw_muTmuW_frame( profiledContour, "plots/twoBin/twoAlpha_catNonUniversal_muTmuW_template14_etasgeneric_learning.eps",             opts={"type":"twoAlpha_catNonUniversal",'template14_etasgeneric14_learning':True} )
	draw_muTmuW_frame( profiledContour, "plots/twoBin/twoAlpha_catNonUniversal_muTmuW_template20_etasgeneric_learning.eps",             opts={"type":"twoAlpha_catNonUniversal",'template20_etasgeneric20_learning':True} )
	draw_muTmuW_frame( profiledContour, "plots/twoBin/twoAlpha_catNonUniversal_muTmuW_template24_etasgeneric_learning.eps",             opts={"type":"twoAlpha_catNonUniversal",'template24_etasgeneric24_learning':True} )

	draw_muTmuW_frame( profiledContour, "plots/twoBin/twoAlpha_catNonUniversal_interpCode0_muTmuW_template10_etasgeneric_learning.eps",             opts={"type":"twoAlpha_catNonUniversal_interpCode0",'template10_etasgeneric10_learning':True} )
	draw_muTmuW_frame( profiledContour, "plots/twoBin/twoAlpha_catNonUniversal_interpCode0_muTmuW_template14_etasgeneric_learning.eps",             opts={"type":"twoAlpha_catNonUniversal_interpCode0",'template14_etasgeneric14_learning':True} )
	draw_muTmuW_frame( profiledContour, "plots/twoBin/twoAlpha_catNonUniversal_interpCode0_muTmuW_template20_etasgeneric_learning.eps",             opts={"type":"twoAlpha_catNonUniversal_interpCode0",'template20_etasgeneric20_learning':True} )
	draw_muTmuW_frame( profiledContour, "plots/twoBin/twoAlpha_catNonUniversal_interpCode0_muTmuW_template24_etasgeneric_learning.eps",             opts={"type":"twoAlpha_catNonUniversal_interpCode0",'template24_etasgeneric24_learning':True} )

	draw_muTmuW_frame( muTMuWOverview, "plots/twoBin/overview_muTmuW.eps" )
	draw_muTmuW_frame( muTMuWInterpCodes, "plots/twoBin/interpcodes_muTmuW.eps" )

	scenarios = [
		'scenarioA',
		'scenarioA2',
		'scenarioB',
		'scenarioC',
		'scenarioC2',
		'scenarioD',
	]
	for s in scenarios:
		draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template4_etasfisherInfo.eps",  opts={"type":s} )
		draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template0_etasfisherInfo.eps",  opts={"type":s,"template0":True} )
		draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_templateM1_etasfisherInfo.eps", opts={"type":s,"templateM1":True} )
		draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template14_etasgeneric_M4.eps", opts={"type":s,"template14_etasgeneric_M4":True} )
		draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template14_etasgeneric_M5.eps", opts={"type":s,"template14_etasgeneric_M5":True} )
		draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template14_etasgeneric_fisherInfo.eps", opts={"type":s,"template14_etasgeneric_fisherInfo":True} )

		# draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template10_etasgeneric10_learning.eps", opts={"type":s,"template10_etasgeneric10_learning":True} )
		# draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template14_etasgeneric14_learning.eps", opts={"type":s,"template14_etasgeneric14_learning":True} )
		# draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template20_etasgeneric20_learning.eps", opts={"type":s,"template20_etasgeneric20_learning":True} )
		# draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template24_etasgeneric24_learning.eps", opts={"type":s,"template24_etasgeneric24_learning":True} )

		draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template10_etasgeneric10_learningFull.eps", opts={"type":s,"template10_etasgeneric10_learningFull":True} )
		draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template14_etasgeneric14_learningFull.eps", opts={"type":s,"template14_etasgeneric14_learningFull":True} )
		draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template20_etasgeneric20_learningFull.eps", opts={"type":s,"template20_etasgeneric20_learningFull":True} )
		draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+"_muTmuW_template24_etasgeneric24_learningFull.eps", opts={"type":s,"template24_etasgeneric24_learningFull":True} )

	for s in scenarios:
		for i in ['_interpCode0']:
			draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+i+"_muTmuW_template20_etasgeneric20_learning_box1.0.eps", opts={"type":s+i,"template20_etasgeneric20_learning_box1.0":True} )
			draw_muTmuW_frame( profiledContour, "plots/twoBin/"+s+i+"_muTmuW_template20_etasgeneric20_learningFull_box1.0.eps", opts={"type":s+i,"template20_etasgeneric20_learningFull_box1.0":True} )

			opts = {"type":s+i}
			if "scenarioC" in s: opts['byHand'] = True

			draw_muTmuW_frame( profiledContourOverlay, "plots/twoBin/"+s+i+"_muTmuW_overlay.eps", opts=opts,     r=[0.5,0.3,1.8,2.2] )
			optsFull = dict( [(k,v) for k,v in opts.iteritems()] )
			optsFull['learningFull'] = True
			draw_muTmuW_frame( profiledContourOverlay, "plots/twoBin/"+s+i+"_muTmuW_overlay_learningFull.eps", opts=optsFull,     r=[0.5,0.3,1.8,2.2] )

			opts['box'] = True
			draw_muTmuW_frame( profiledContourOverlay, "plots/twoBin/"+s+i+"_muTmuW_overlay_box.eps", opts=opts, r=[0.5,0.3,1.8,2.2] )
			optsFull = dict( [(k,v) for k,v in opts.iteritems()] )
			optsFull['learningFull'] = True
			draw_muTmuW_frame( profiledContourOverlay, "plots/twoBin/"+s+i+"_muTmuW_overlay_box_learningFull.eps", opts=optsFull, r=[0.5,0.3,1.8,2.2] )


	fileList = "`\ls plots/twoBin/*.eps plots/atlas_counting/*.eps`"
	# print( "Merging eps files" )
	# os.system( "gs -q -dNOPAUSE -dBATCH -sEPSCrop -sDEVICE=pdfwrite -sOutputFile=plots/plots.pdf "+fileList )
	print( "Creating zip file" )
	os.system( "rm plots/plots.zip" )
	os.system( "zip -r plots/plots.zip "+fileList )
Ejemplo n.º 4
0
def main():

	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW.eps", r=[-0.1,-2.2,3.0,6.5] )
	draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/interpCode0_muTmuW.eps", opts={'interpCode0':True}, r=[-0.1,-2.2,3.0,6.5] )
	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template4_etasfisherInfo.eps",         opts={'model':"template4"},         r=[-0.1,-2.2,3.0,6.5] )
	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template0_etasfisherInfo.eps",         opts={'model':"template0"},         r=[-0.1,-2.2,3.0,6.5] )

	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template14_etasgeneric_M4.eps",        opts={'model':"template14_etasgeneric_M4"},        r=[-0.1,-2.2,3.0,6.5] )
	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template14_etasgeneric_M4_box1.0.eps", opts={'model':"template14_etasgeneric_M4_box1.0"}, r=[-0.1,-2.2,3.0,6.5] )
	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template14_etasgeneric_M5.eps",        opts={'model':"template14_etasgeneric_M5"},        r=[-0.1,-2.2,3.0,6.5] )
	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template14_etasgeneric_M5_box1.0.eps", opts={'model':"template14_etasgeneric_M5_box1.0"}, r=[-0.1,-2.2,3.0,6.5] )
	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template10_etasgeneric_M5.eps",        opts={'model':"template10_etasgeneric_M5"},        r=[-0.1,-2.2,3.0,6.5] )
	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template10_etasgeneric_M5_box1.0.eps", opts={'model':"template10_etasgeneric_M5_box1.0"}, r=[-0.1,-2.2,3.0,6.5] )

	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template10_etasgeneric10_learning.eps",        opts={'model':"template10_etasgeneric10_learning"},        r=[-0.1,-2.2,3.0,6.5] )
	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template10_etasgeneric10_learning_box1.0.eps", opts={'model':"template10_etasgeneric10_learning_box1.0"}, r=[-0.1,-2.2,3.0,6.5] )
	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template14_etasgeneric14_learning.eps",        opts={'model':"template14_etasgeneric14_learning"},        r=[-0.1,-2.2,3.0,6.5] )
	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template14_etasgeneric14_learning_box1.0.eps", opts={'model':"template14_etasgeneric14_learning_box1.0"}, r=[-0.1,-2.2,3.0,6.5] )
	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template20_etasgeneric20_learning.eps",        opts={'model':"template20_etasgeneric20_learning"},        r=[-0.1,-2.2,3.0,6.5] )
	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template20_etasgeneric20_learning_box1.0.eps", opts={'model':"template20_etasgeneric20_learning_box1.0"}, r=[-0.1,-2.2,3.0,6.5] )
	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template24_etasgeneric24_learning.eps",        opts={'model':"template24_etasgeneric24_learning"},        r=[-0.1,-2.2,3.0,6.5] )
	# draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/muTmuW_template24_etasgeneric24_learning_box1.0.eps", opts={'model':"template24_etasgeneric24_learning_box1.0"}, r=[-0.1,-2.2,3.0,6.5] )

	# draw_muTmuW_frame( countingMuTMuWShifted, "plots/atlas_counting/muTmuW_shifted.eps", opts={'model':"template0_fixed_setParameteralpha_QCDscale_Higgs_ggH"}, r=[-0.1,-2.2,3.0,6.5] )
	# draw_muTmuW_frame( countingMuTMuWShifted, "plots/atlas_counting/muTmuW_shifted_etaArrows.eps", opts={'etaArrows':True, 'model':"template0_fixed_setParameteralpha_QCDscale_Higgs_ggH"}, r=[-0.1,-2.2,3.0,6.5] )
	draw_muTmuW_frame( countingMuTMuWShifted, "plots/atlas_counting/interpCode0_muTmuW_shifted.eps", opts={'interpCode0':True, 'model':"template0_fixed_setParameteralpha_QCDscale_Higgs_ggH"}, r=[-0.1,-2.2,3.0,6.5] )
	draw_muTmuW_frame( countingMuTMuWShifted, "plots/atlas_counting/interpCode0_muTmuW_shifted_etaArrows.eps", opts={'etaArrows':True, 'interpCode0':True, 'model':"template0_fixed_setParameteralpha_QCDscale_Higgs_ggH"}, r=[-0.1,-2.2,3.0,6.5] )

	# draw_muTmuW_frame( countingMuTMuWArrowsAtMuHat, "plots/atlas_counting/muTmuW_etaArrows.eps",             opts={},                   r=[0.1,0.5,2.1,2.5] )
	draw_muTmuW_frame( countingMuTMuWArrowsAtMuHat, "plots/atlas_counting/interpCode0_muTmuW_etaArrows.eps", opts={'interpCode0':True}, r=[0.1,0.5,2.1,2.5] )

	draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/interpCode0_muTmuW_template0_etasfisherInfo.eps",                 opts={'interpCode0':True,'model':"template0"},                                r=[-0.1,-2.2,3.0,6.5] )
	draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/interpCode0_muTmuW_template10_etasgeneric_M5.eps",                opts={'interpCode0':True,'model':"template10_etasgeneric_M5"},                r=[-0.1,-2.2,3.0,6.5] )
	draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/interpCode0_muTmuW_template10_etasgeneric_M5_box1.0.eps",                opts={'interpCode0':True,'model':"template10_etasgeneric_M5_box1.0"},                r=[-0.1,-2.2,3.0,6.5] )
	draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/interpCode0_muTmuW_template10_etasgeneric_M5_wideGauss1.3.eps",                opts={'interpCode0':True,'model':"template10_etasgeneric_M5_wideGauss1.3"},                r=[-0.1,-2.2,3.0,6.5] )
	draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/interpCode0_muTmuW_template10_etasgeneric10_learning.eps",        opts={'interpCode0':True,'model':"template10_etasgeneric10_learning"},                r=[-0.1,-2.2,3.0,6.5] )
	draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/interpCode0_muTmuW_template10_etasgeneric10_learning_box1.0.eps",        opts={'interpCode0':True,'model':"template10_etasgeneric10_learning_box1.0"},        r=[-0.1,-2.2,3.0,6.5] )
	draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/interpCode0_muTmuW_template20_etasgeneric20_learning.eps",        opts={'interpCode0':True,'model':"template20_etasgeneric20_learning"},        r=[-0.1,-2.2,3.0,6.5] )
	draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/interpCode0_muTmuW_template20_etasgeneric20_learning_box1.0.eps", opts={'interpCode0':True,'model':"template20_etasgeneric20_learning_box1.0"}, r=[-0.1,-2.2,3.0,6.5] )
	draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/interpCode0_muTmuW_template10_etasgeneric10_learningFull.eps",        opts={'interpCode0':True,'model':"template10_etasgeneric10_learningFull"},                r=[-0.1,-2.2,3.0,6.5] )
	draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/interpCode0_muTmuW_template10_etasgeneric10_learningFull_box1.0.eps",        opts={'interpCode0':True,'model':"template10_etasgeneric10_learningFull_box1.0"},        r=[-0.1,-2.2,3.0,6.5] )
	draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/interpCode0_muTmuW_template10_etasgeneric10_learningFull_wideGauss1.3.eps",        opts={'interpCode0':True,'model':"template10_etasgeneric10_learningFull_wideGauss1.3"},        r=[-0.1,-2.2,3.0,6.5] )
	draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/interpCode0_muTmuW_template20_etasgeneric20_learningFull.eps",        opts={'interpCode0':True,'model':"template20_etasgeneric20_learningFull"},        r=[-0.1,-2.2,3.0,6.5] )
	draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/interpCode0_muTmuW_template20_etasgeneric20_learningFull_box1.0.eps", opts={'interpCode0':True,'model':"template20_etasgeneric20_learningFull_box1.0"}, r=[-0.1,-2.2,3.0,6.5] )
	draw_muTmuW_frame( countingMuTMuW, "plots/atlas_counting/interpCode0_muTmuW_template20_etasgeneric20_learningFull_wideGauss1.3.eps", opts={'interpCode0':True,'model':"template20_etasgeneric20_learningFull_wideGauss1.3"}, r=[-0.1,-2.2,3.0,6.5] )


	# draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/kVkF_combined.eps",                                                            r=[0.65,-1.7,1.5,2.0] )
	# draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/kVkF_combined_template14_etasgeneric_M4.eps",        opts={'model':'template14_etasgeneric_M4'},         r=[0.65,-1.7,1.5,2.0] )
	# draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/kVkF_combined_template14_etasgeneric_M4_box1.0.eps", opts={'model':'template14_etasgeneric_M4_box1.0'},  r=[0.65,-1.7,1.5,2.0] )
	# draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/kVkF_combined_template14_etasgeneric_M5.eps",        opts={'model':'template14_etasgeneric_M5'},         r=[0.65,-1.7,1.5,2.0] )
	# draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/kVkF_combined_template14_etasgeneric_M5_box1.0.eps", opts={'model':'template14_etasgeneric_M5_box1.0'},  r=[0.65,-1.7,1.5,2.0] )
	# draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/kVkF_combined_template10_etasgeneric_M5.eps",        opts={'model':'template10_etasgeneric_M5'},         r=[0.65,-1.7,1.5,2.0] )
	# draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/kVkF_combined_template10_etasgeneric_M5_box1.0.eps", opts={'model':'template10_etasgeneric_M5_box1.0'},  r=[0.65,-1.7,1.5,2.0] )
	draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/kVkF_combined_template20_etasgeneric20_learning.eps",        opts={'model':'template20_etasgeneric20_learning'},         r=[0.65,-1.7,1.5,2.0] )
	draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/kVkF_combined_template20_etasgeneric20_learning_box1.0.eps", opts={'model':'template20_etasgeneric20_learning_box1.0'},  r=[0.65,-1.7,1.5,2.0] )
	draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric10_learning.eps",        opts={'interpCode0':True,'model':'template10_etasgeneric10_learning'},         r=[0.65,-1.7,1.5,2.0] )
	draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric10_learning_box1.0.eps", opts={'interpCode0':True,'model':'template10_etasgeneric10_learning_box1.0'},  r=[0.65,-1.7,1.5,2.0] )
	draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/interpCode0_kVkF_combined_template20_etasgeneric20_learning.eps",        opts={'interpCode0':True,'model':'template20_etasgeneric20_learning'},         r=[0.65,-1.7,1.5,2.0] )
	draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/interpCode0_kVkF_combined_template20_etasgeneric20_learning_box1.0.eps", opts={'interpCode0':True,'model':'template20_etasgeneric20_learning_box1.0'},  r=[0.65,-1.7,1.5,2.0] )
	draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric10_learningFull.eps",        opts={'interpCode0':True,'model':'template10_etasgeneric10_learningFull'},         r=[0.65,-1.7,1.5,2.0] )
	draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric10_learningFull_box1.0.eps", opts={'interpCode0':True,'model':'template10_etasgeneric10_learningFull_box1.0'},  r=[0.65,-1.7,1.5,2.0] )
	draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric10_learningFull_wideGauss1.3.eps", opts={'interpCode0':True,'model':'template10_etasgeneric10_learningFull_wideGauss1.3'},  r=[0.65,-1.7,1.5,2.0] )
	draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/interpCode0_kVkF_combined_template20_etasgeneric20_learningFull.eps",        opts={'interpCode0':True,'model':'template20_etasgeneric20_learningFull'},         r=[0.65,-1.7,1.5,2.0] )
	draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/interpCode0_kVkF_combined_template20_etasgeneric20_learningFull_box1.0.eps", opts={'interpCode0':True,'model':'template20_etasgeneric20_learningFull_box1.0'},  r=[0.65,-1.7,1.5,2.0] )
	draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/interpCode0_kVkF_combined_template20_etasgeneric20_learningFull_wideGauss1.3.eps", opts={'interpCode0':True,'model':'template20_etasgeneric20_learningFull_wideGauss1.3'},  r=[0.65,-1.7,1.5,2.0] )
	draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric_M5.eps",        opts={'interpCode0':True,'model':'template10_etasgeneric_M5'},         r=[0.65,-1.7,1.5,2.0] )
	draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric_M5_box1.0.eps", opts={'interpCode0':True,'model':'template10_etasgeneric_M5_box1.0'},  r=[0.65,-1.7,1.5,2.0] )
	draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric_M5_wideGauss1.3.eps", opts={'interpCode0':True,'model':'template10_etasgeneric_M5_wideGauss1.3'},  r=[0.65,-1.7,1.5,2.0] )
	# draw_kVkF_frame( counting_kVkF, "plots/atlas_counting/interpCode0_kVkF_combined_naive.eps",        opts={'interpCode0':True,'model':'template20_etasNone'},         r=[0.65,-1.7,1.5,2.0] )
	draw_kVkF_frame( counting_kVkF_overlay, "plots/atlas_counting/interpCode0_kVkF_combined_template10_etasgeneric10_learningFull_overlay.eps", opts={'interpCode0':True,'skipNaive':True,'model':['template10_etasgeneric10_learningFull','template10_etasgeneric10_learningFull_wideGauss1.3']},  r=[0.65,-1.7,1.5,2.0] )

	# draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/kGlukGamma_combined.eps",                                                            r=[0.8,0.6,1.9,1.6] )
	# draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/kGlukGamma_combined_template14_etasgeneric_M4.eps",        opts={'model':'template14_etasgeneric_M4'},         r=[0.8,0.6,1.9,1.6] )
	# draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/kGlukGamma_combined_template14_etasgeneric_M4_box1.0.eps", opts={'model':'template14_etasgeneric_M4_box1.0'},  r=[0.8,0.6,1.9,1.6] )
	# draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/kGlukGamma_combined_template14_etasgeneric_M5.eps",        opts={'model':'template14_etasgeneric_M5'},         r=[0.8,0.6,1.9,1.6] )
	# draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/kGlukGamma_combined_template14_etasgeneric_M5_box1.0.eps", opts={'model':'template14_etasgeneric_M5_box1.0'},  r=[0.8,0.6,1.9,1.6] )
	# draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/kGlukGamma_combined_template10_etasgeneric_M5.eps",        opts={'model':'template10_etasgeneric_M5'},         r=[0.8,0.6,1.9,1.6] )
	# draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/kGlukGamma_combined_template10_etasgeneric_M5_box1.0.eps", opts={'model':'template10_etasgeneric_M5_box1.0'},  r=[0.8,0.6,1.9,1.6] )
	draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/kGlukGamma_combined_template20_etasgeneric20_learning.eps",        opts={'model':'template20_etasgeneric20_learning'},         r=[0.8,0.6,1.9,1.6] )
	draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/kGlukGamma_combined_template20_etasgeneric20_learning_box1.0.eps", opts={'model':'template20_etasgeneric20_learning_box1.0'},  r=[0.8,0.6,1.9,1.6] )
	draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric10_learning.eps",        opts={'interpCode0':True,'model':'template10_etasgeneric10_learning'},         r=[0.8,0.6,1.9,1.6] )
	draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric10_learning_box1.0.eps", opts={'interpCode0':True,'model':'template10_etasgeneric10_learning_box1.0'},  r=[0.8,0.6,1.9,1.6] )
	draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/interpCode0_kGlukGamma_combined_template20_etasgeneric20_learning.eps",        opts={'interpCode0':True,'model':'template20_etasgeneric20_learning'},         r=[0.8,0.6,1.9,1.6] )
	draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/interpCode0_kGlukGamma_combined_template20_etasgeneric20_learning_box1.0.eps", opts={'interpCode0':True,'model':'template20_etasgeneric20_learning_box1.0'},  r=[0.8,0.6,1.9,1.6] )
	draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric10_learningFull.eps",        opts={'interpCode0':True,'model':'template10_etasgeneric10_learningFull'},         r=[0.8,0.6,1.9,1.6] )
	draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric10_learningFull_box1.0.eps", opts={'interpCode0':True,'model':'template10_etasgeneric10_learningFull_box1.0'},  r=[0.8,0.6,1.9,1.6] )
	draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric10_learningFull_wideGauss1.3.eps", opts={'interpCode0':True,'model':'template10_etasgeneric10_learningFull_wideGauss1.3'},  r=[0.8,0.6,1.9,1.6] )
	draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/interpCode0_kGlukGamma_combined_template20_etasgeneric20_learningFull.eps",        opts={'interpCode0':True,'model':'template20_etasgeneric20_learningFull'},         r=[0.8,0.6,1.9,1.6] )
	draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/interpCode0_kGlukGamma_combined_template20_etasgeneric20_learningFull_box1.0.eps", opts={'interpCode0':True,'model':'template20_etasgeneric20_learningFull_box1.0'},  r=[0.8,0.6,1.9,1.6] )
	draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/interpCode0_kGlukGamma_combined_template20_etasgeneric20_learningFull_wideGauss1.3.eps", opts={'interpCode0':True,'model':'template20_etasgeneric20_learningFull_wideGauss1.3'},  r=[0.8,0.6,1.9,1.6] )
	draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric_M5.eps",        opts={'interpCode0':True,'model':'template10_etasgeneric_M5'},         r=[0.8,0.6,1.9,1.6] )
	draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric_M5_box1.0.eps", opts={'interpCode0':True,'model':'template10_etasgeneric_M5_box1.0'},  r=[0.8,0.6,1.9,1.6] )
	draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric_M5_wideGauss1.3.eps", opts={'interpCode0':True,'model':'template10_etasgeneric_M5_wideGauss1.3'},  r=[0.8,0.6,1.9,1.6] )
	# draw_kGlukGamma_frame( counting_kGlukGamma, "plots/atlas_counting/interpCode0_kGlukGamma_combined_naive.eps", opts={'interpCode0':True,'model':'template20_etasNone'},  r=[0.8,0.6,1.9,1.6] )
	draw_kGlukGamma_frame( counting_kGlukGamma_overlay, "plots/atlas_counting/interpCode0_kGlukGamma_combined_template10_etasgeneric10_learningFull_overlay.eps", opts={'interpCode0':True,'skipNaive':True,'model':['template10_etasgeneric10_learningFull','template10_etasgeneric10_learningFull_wideGauss1.3']},  r=[0.8,0.6,1.9,1.6] )


	fileList = "`\ls plots/twoBin/*.eps plots/atlas_counting/*.eps`"
	# print( "Merging eps files" )
	# os.system( "gs -q -dNOPAUSE -dBATCH -sEPSCrop -sDEVICE=pdfwrite -sOutputFile=plots/plots.pdf "+fileList )
	print( "Creating zip file" )
	os.system( "rm plots/plots.zip" )
	os.system( "zip -r plots/plots.zip "+fileList )