예제 #1
0
#!/usr/bin/env python
"""Print plots of jet resolution (reco pt - gen pt / gen pt) split by pt, etc"""

import argparse
from MyStyle import My_Style
My_Style.cd()
import os
from itertools import product
from array import array

import ROOT
ROOT.PyConfig.IgnoreCommandLineOptions = True
ROOT.gROOT.SetBatch(1)
ROOT.TH1.SetDefaultSumw2()
ROOT.gStyle.SetOptStat(0)
ROOT.gStyle.SetOptFit(1)

# My stuff
from comparator import Contribution, Plot, grab_obj
import qg_common as qgc
import qg_general_plots as qgg
import common_utils as cu

# Control output format
OUTPUT_FMT = "pdf"


def determine_fit_range(hist):
    """Determine lower & upper limit of fit range
    
    Parameters
예제 #2
0
#!/usr/bin/env python
"""Print 2D flavour correlation plots. Iterates over every hist in every dir"""

import ROOT
from MyStyle import My_Style
My_Style.cd()
import os
os.nice(10)
from uuid import uuid1

# My stuff
from comparator import Contribution, Plot
import qg_common as qgc
import qg_general_plots as qgg
import common_utils as cu

# For debugging
import sys
import tracers
# sys.settrace(tracers.trace_calls)
# sys.settrace(tracers.trace_calls_detail)
# sys.settrace(tracers.trace_calls_and_returns)

# import hunter
# hunter.trace(module='comparator')

ROOT.PyConfig.IgnoreCommandLineOptions = True
ROOT.gROOT.SetBatch(1)
ROOT.TH1.SetDefaultSumw2()
ROOT.gStyle.SetOptStat(0)
ROOT.gStyle.SetPaintTextFormat('.2e')