Esempio n. 1
0
import sys
import glob

import slideMaker as sm

# test2 and test3 can be folders with your plots, so you can execute this script anywhere really
sm.addGlobalOptions("--graphicspaths ../yield_plots/")

# sm.initSlides(me="Nick",themeName="alex",opts="--casual Nick --themecolor random --font gillius")
sm.initSlides(me="Nick",themeName="alex",opts="--casual Nick --themecolor 81,73,69 --font gillius")
sm.addSlide(title="SS: 74X vs 76X ", opts="")

# samples = [
# "TChiChi_mChi-150_mLSP-1",
# "TChiNeu_mChi-300_mLSP-285",
# "TChiNeu_mChi-300_mLSP-290",
# "TChiNeu_mChi-300_mLSP-295",
# "TChiNeu_mChi-300_mLSP-297",
# "TChiNeu_mChi-300_mLSP-299",
# ]

# plot_types = [
#         "mChi", "chargino daughters", "W daughters", "met", "pfjet pt", "pfjet eta"
#         ]



plot_types = [
        ["HH"          , "high_yields.pdf"   , "high_yields_76x.pdf"]   ,
        ["HL"          , "hl_yields.pdf"     , "hl_yields_76x.pdf"]     ,
        ["$H_T$"       , "kinem_ht_.pdf"     , "kinem_ht__76x.pdf"]     ,
Esempio n. 2
0
import sys

import slideMaker as sm

sm.addGlobalOptions("--makegui")

content = """
 - first \\textbf{bullet} \\red{point} and if I make it long enough, it should wrap to the next line
   -- first secondary bullet \\textcolor{blue}{point}. similarly this should wrap to the next line given enough length
   -- second secondary bullet point $\\met$
   -- third secondary bullet \\orange{test}
"""

sm.addObject("t1","text",(0.25,0.15),width=0.3, text="testlabel", color="red", size=0, bold=False,opts="--rotate -45") 
sm.addObject("t2","text",(0.75,0.15),width=0.3, text="testlabel", color="coolblue", size=0, bold=False) 
sm.addObject("a1","arrow", (0.31,0.15), (0.69,0.15))
sm.addObject("a2","arrow", (0.31,0.15), (0.65,0.46), opts="--crayon --noarrowhead")

sm.addObject("a0","arrow")
sm.addObject("c0","circle")

# supported themes are "nick", "alex", and "madrid"
# test2 and test3 can be folders with your plots, so you can execute this script anywhere really
# themecolor takes RGB. could put in explicit color names, but RGB more robust
# also try the --modernfont option
sm.initSlides(me="Nick",themeName="nick",opts="--graphicspaths ./test2/,./test3/ --themecolor 51,51,179")
sm.addSlide(title="Perturbation Theory on $H_m(dS_n,\\mathbb{R})$ Orbifolds", opts="--shorttitle snarxiv hep-th")

# pass in a list of textobjects (which are just dicts, so they can be modified too)
sm.addSlide(p1="yields.pdf",p2="yields.pdf", objects=["t1","t2","a1","a2"])
sm.addSlide(p1="yields.pdf",p2="yields.pdf")
Esempio n. 3
0
import sys, os
import slideMaker as sm
import tableMaker as tm

sm.addGlobalOptions("--graphicspaths /home/users/namin/2015/fr/CMSSW_7_4_1_patch1/src/testing/SSAnalysis/WZRun2/pdfs_before/")

sm.initSlides(me="Nick",themeName="alex",opts="--themecolor 13,26,129")
sm.addSlide(title="WZ Scale Factor ENDL With 832.7 pb$^{-1} (OLD)$", opts="")

sm.addSlide(title="Overview", text="""
        - Using latest json with 832 pb$^{-1}$
        - Construct \\coolblue{WZ control region} with baseline requirement of $\\met > 30$ and Njets$>2$ and
          -- 3 tight leptons
          -- Pair of leptons has $|m_{\\ell\\ell}-m_Z|\\leq15$
          -- Njets$<5$
          -- 0 btags
          -- in the HighHigh region (each lepton has $\\pt>25$)
""")

sm.addSlide(p1="h1D_njets.pdf", p2="h1D_nbtags.pdf", title="N-1 plots: njets, nbtags")
sm.addSlide(p1="h1D_lep1pt.pdf", p2="h1D_lep2pt.pdf", title="N-1 plots: lepton $\\pt$")

sm.addSlide(p1="h1D_met.pdf", p2="h1D_mtmin.pdf", title="CR plots: $\\met$, $\\mtmin$")
sm.addSlide(p1="h1D_ht.pdf", p2="h1D_zmass.pdf", title="CR plots: $\\Ht$, $m_{\\ell\\ell}$")

# DATA
# data = 14.00 pm 3.74

# WZ
# wz = 8.44 pm 0.13
Esempio n. 4
0
import sys, os
import slideMaker as sm
import tableMaker as tm

sm.addGlobalOptions("--graphicspaths ../pdfs/")

sm.initSlides(me="Nick", themeName="alexmod", opts="--themecolor 13,26,129")
sm.addSlide(title="WZ Scale Factor ENDL With 1.264 fb$^{-1} (OLD)$", opts="")

sm.addSlide(title="Overview",
            text="""
        - Using latest json with 1.264 fb$^{-1}$
        - Construct \\coolblue{WZ control region} with baseline requirement of $\\met > 30$ and Njets$>2$ and
          -- 3 tight leptons
          -- Pair of leptons has $|m_{\\ell\\ell}-m_Z|\\leq15$
          -- $2<$Njets$<5$
          -- 0 btags
          -- in the HighHigh region (each lepton has $\\pt>25$)
""")

sm.addSlide(p1="h1D_njets.pdf",
            p2="h1D_nbtags.pdf",
            title="N-1 plots: njets, nbtags")
sm.addSlide(p1="h1D_lep1pt.pdf",
            p2="h1D_lep2pt.pdf",
            title="N-1 plots: lepton $\\pt$")

sm.addSlide(p1="h1D_met.pdf",
            p2="h1D_mtmin.pdf",
            title="CR plots: $\\met$, $\\mtmin$")
sm.addSlide(p1="h1D_ht.pdf",
Esempio n. 5
0
import sys, os
import slideMaker as sm
import tableMaker as tm

# sm.addGlobalOptions("--graphicspaths ../plots_120215/,/home/users/namin/2015/jec/an2013_131/CMSSW_7_4_1_patch1/src/JetMETAnalysis/JetAnalyzers/test/flat/,/home/users/namin/2015/jec/an2013_131/CMSSW_7_4_1_patch1/src/JetMETAnalysis/JetAnalyzers/test/flat/images/")
# sm.addGlobalOptions("--graphicspaths ../plots/,/home/users/namin/2015/jec/an2013_131/CMSSW_7_4_1_patch1/src/JetMETAnalysis/JetAnalyzers/test/flat/,/home/users/namin/2015/jec/an2013_131/CMSSW_7_4_1_patch1/src/JetMETAnalysis/JetAnalyzers/test/flat/images/")
sm.addGlobalOptions("--graphicspaths ../plots/,../../l1/images/")

# sm.initSlides(me="Nick",themeName="alex",opts="--themecolor 100,74,196 --casual \\textbf{Nick Amin} ENDL \\today --font gillius")
# sm.initSlides(me="Nick",themeName="alex",opts="--themecolor 29,76,165 --casual \\textbf{Nick Amin} ENDL \\today --font gillius")
sm.initSlides(me="Nick",
              themeName="alexmod",
              opts="--themecolor 255,105,180 --font gillius")

sm.addSlide(title="80X FastSim JECs", opts="")
# - Use PU, NoPU samples to derive \\textbf{L1} corrections
# -- /QCD\\_Pt-15to7000\\_TuneCUETP8M1\\_Flat\\_13TeV\\_pythia8/ RunIISpring15FSPremixDR-NoPU\\_ForSUSJECs\\_MCRUN2\\_74\\_V9-v1/AODSIM
# -- /QCD\\_Pt-15to7000\\_TuneCUETP8M1\\_Flat\\_13TeV\\_pythia8/ RunIISpring15FSPremixDR-FlatPU0To50\\_ForSUSJECs\\_MCRUN2\\_74\\_V9-v1/AODSIM
# -- Corrects for PU in bins of $\\eta$ as a function of $\\pt$
# - Use NoPU sample to derive \\textbf{L2L3} correction
# -- L3Absolute makes response flat in $\\pt$ using absolute response ($\\pt^\\text{gen}-\\pt^\\text{reco}$). Text file produced from this is a dummy file nowadays (L2L3 done together in one step)
# -- L2Relative makes response flat in $\\eta$ using relative response ($\\pt^\\text{reco}/\\pt^\\text{gen}$).
# - Produce corrections for ak\\{4,8\\}\\{pf,pfchs\\} jets since this is what we have in FastSim
# -- Use TAMU framework (\\url{https://github.com/cms-jet/})
# -- Focus on AK4PFchs here (other 3 are in backup)
sm.addSlide(title="Overview",
            text="""
        - Use PU, NoPU samples (made from same GEN events) to derive L1 corrections
        -- /QCD\\_Pt-15to7000\\_TuneCUETP8M1\\_Flat\\_13TeV\\_pythia8/RunIISpring16FSPremixDR-NoPU\\_ForSUSJECs\\_80X\\_mcRun2\\_asymptotic\\_v12-v1/AODSIM
        -- /QCD\\_Pt-15to7000\\_TuneCUETP8M1\\_Flat\\_13TeV\\_pythia8/RunIISpring16FSPremixDR-FlatPU0To50\\_ForSUSJECs\\_80X\\_mcRun2\\_asymptotic\\_v12-v1/AODSIM
        - Use L1 corrected PU sample to derive L2L3 correction
Esempio n. 6
0
import sys, os
import slideMaker as sm
import tableMaker as tm

# sm.addGlobalOptions("--graphicspaths ../plots_120215/,/home/users/namin/2015/jec/an2013_131/CMSSW_7_4_1_patch1/src/JetMETAnalysis/JetAnalyzers/test/flat/,/home/users/namin/2015/jec/an2013_131/CMSSW_7_4_1_patch1/src/JetMETAnalysis/JetAnalyzers/test/flat/images/")
# sm.addGlobalOptions("--graphicspaths ../plots/,/home/users/namin/2015/jec/an2013_131/CMSSW_7_4_1_patch1/src/JetMETAnalysis/JetAnalyzers/test/flat/,/home/users/namin/2015/jec/an2013_131/CMSSW_7_4_1_patch1/src/JetMETAnalysis/JetAnalyzers/test/flat/images/")
sm.addGlobalOptions("--graphicspaths ../plots/,../../l1/images/")

# sm.initSlides(me="Nick",themeName="alex",opts="--themecolor 100,74,196 --casual \\textbf{Nick Amin} ENDL \\today --font gillius")
# sm.initSlides(me="Nick",themeName="alex",opts="--themecolor 29,76,165 --casual \\textbf{Nick Amin} ENDL \\today --font gillius")
sm.initSlides(me="Nick",themeName="alexmod",opts="--themecolor 255,105,180 --font gillius")

sm.addSlide(title="80X FastSim JECs", opts="")
        # - Use PU, NoPU samples to derive \\textbf{L1} corrections
        # -- /QCD\\_Pt-15to7000\\_TuneCUETP8M1\\_Flat\\_13TeV\\_pythia8/ RunIISpring15FSPremixDR-NoPU\\_ForSUSJECs\\_MCRUN2\\_74\\_V9-v1/AODSIM
        # -- /QCD\\_Pt-15to7000\\_TuneCUETP8M1\\_Flat\\_13TeV\\_pythia8/ RunIISpring15FSPremixDR-FlatPU0To50\\_ForSUSJECs\\_MCRUN2\\_74\\_V9-v1/AODSIM
        # -- Corrects for PU in bins of $\\eta$ as a function of $\\pt$
        # - Use NoPU sample to derive \\textbf{L2L3} correction
        # -- L3Absolute makes response flat in $\\pt$ using absolute response ($\\pt^\\text{gen}-\\pt^\\text{reco}$). Text file produced from this is a dummy file nowadays (L2L3 done together in one step)
        # -- L2Relative makes response flat in $\\eta$ using relative response ($\\pt^\\text{reco}/\\pt^\\text{gen}$).
        # - Produce corrections for ak\\{4,8\\}\\{pf,pfchs\\} jets since this is what we have in FastSim
        # -- Use TAMU framework (\\url{https://github.com/cms-jet/})
        # -- Focus on AK4PFchs here (other 3 are in backup)
sm.addSlide(title="Overview", text="""
        - Use PU, NoPU samples (made from same GEN events) to derive L1 corrections
        -- /QCD\\_Pt-15to7000\\_TuneCUETP8M1\\_Flat\\_13TeV\\_pythia8/RunIISpring16FSPremixDR-NoPU\\_ForSUSJECs\\_80X\\_mcRun2\\_asymptotic\\_v12-v1/AODSIM
        -- /QCD\\_Pt-15to7000\\_TuneCUETP8M1\\_Flat\\_13TeV\\_pythia8/RunIISpring16FSPremixDR-FlatPU0To50\\_ForSUSJECs\\_80X\\_mcRun2\\_asymptotic\\_v12-v1/AODSIM
        - Use L1 corrected PU sample to derive L2L3 correction
        - Produce corrections for ak\\{4,8\\}\\{pf,pfchs\\} jets
        -- Use TAMU framework (\\url{https://github.com/cms-jet/})
        -- Focus on AK4PFchs here (other 3 are in backup)
Esempio n. 7
0
import sys

import slideMaker as sm

# test2 and test3 can be folders with your plots, so you can execute this script anywhere really
sm.addGlobalOptions("--makegui --graphicspaths ./test2/,./test3/")

content = """
 - first \\textbf{bullet} \\red{point} and if I make it long enough, it should wrap to the next line
   -- first secondary bullet \\textcolor{blue}{point}. similarly this should wrap to the next line given enough length
   -- second secondary bullet point $\\met$, $\\Ht$, $\\mtmin$, $\\mt$, $\\pt$
   -- third secondary bullet \\orange{test}
"""

sm.addObject("t1",
             "text", (0.25, 0.15),
             width=0.3,
             text="testlabel",
             color="red",
             size=0,
             bold=False,
             opts="--rotate -45")
sm.addObject("t2",
             "text", (0.75, 0.15),
             width=0.3,
             text="testlabel",
             color="coolblue",
             size=0,
             bold=False)
sm.addObject("a1", "arrow", (0.31, 0.15), (0.69, 0.15))
sm.addObject("a2",
Esempio n. 8
0
import slideMaker as sm
import utils

#To get the GUI
sm.addGlobalOptions("--makegui")

content = """
 - PHYS14 samples use v1.29
   -- Does not include triggers or MET filters, as these are not available for PHYS14
   -- DY sample only exists for $M_{ll} > 50$ GeV
 - Run2 samples use v3.05
   -- Does not include triggers or MET filters, to match PHYS14
   -- Use only DY sample with $M_{ll} > 50$ GeV, to match PHYS14
 - All plots use SS ``loose baseline'' selection:
   -- Require a SS (or OS) numer-numer pair 
   -- Do not impose a nJets or MET/HT requirement
 - All plots use most up-to-date JEC corrections (and propogated to MET), except where uncorrected
   -- PHYS14: PHYS14\\_V1\\_MC\\_L*\\_AK4PFchs collection
   -- Run2: Summer15\\_25nsV2\\_MC\\_L*\\_AK4PFchs.txt collection

"""

content2 = """
 - Clearly there are some cross-section differences
   -- WZ $\\rightarrow 3 \\ell$ used to be 2.17 pb, now it is 1.67.  
   -- ttZ used to be .842, now it is .789.
 - The W+Jets sample has very poor statistics
   -- We used the inclusive here, since the HT-binned is only for HT $\\geq$ 100 GeV
"""

content3 = """