Example #1
0
from hep.cms.Dataset.CMSDataset import CMSDataset
from hep.root.TFile import TFile

# ______________________________________________________________________ ||
input_dir = "/cmsuf/data/store/user/t2/users/klo/IHEPA/raid/Higgs/DarkZ-NTuple/20181116/SkimTree_DarkPhoton_ZX_Run2016Data_m4l70/"
tree_path_in_file = "passedEvents"

# ______________________________________________________________________ ||
ZX = CMSDataset(
    "ZX",
    [
        TFile(
            os.path.join(input_dir,
                         "Data_Run2016-03Feb2017_noDuplicates_FRWeight.root"),
            tree_path_in_file,
        ),
    ],
    isMC=True,
    skip_weight=True,
    plot_name="$Z+X$",
)

ZX.branches = [
    "mass4l",
    "massZ1",
    "massZ2",
    "genWeight",
    "passedFullSelection",
    "passedZXCRSelection",
    "dataMCWeight",
Example #2
0
site = Site()
if site.where == site.ufhpc:
    input_dir = "/cmsuf/data/store/user/t2/users/klo/IHEPA/raid/Higgs/DarkZ-NTuple/20190122/SkimTree_DarkPhoton_Run2016Data_m4l70/"
elif site.where == site.laptop:
    input_dir = "/Users/lucien/CMS/NTuple/lucien/Higgs/DarkZ-NTuple/20190122/SkimTree_DarkPhoton_Run2016Data_m4l70/"

tree_path_in_file = "passedEvents"

# ______________________________________________________________________ ||
ggH = CMSDataset(
    "ggH",
    [
        TFile(
            os.path.join(
                input_dir,
                "GluGluHToZZTo4L_M125_13TeV_powheg2_JHUgenV6_pythia8.root"),
            tree_path_in_file,
        ),
    ],
    xs=48.52 * 0.0002768,
    sumw=999800.0,
    plot_name="$gg \\rightarrow H$",
)

# ______________________________________________________________________ ||
qqZZ = CMSDataset(
    "qqZZ",
    [
        TFile(
            os.path.join(input_dir, "ZZTo4L_13TeV_powheg_pythia8.root"),
            tree_path_in_file,
        ),
Example #3
0
    25,
    30,
    35,
]

# ____________________________________________________________________________________________________________________________________________ ||
hzzd_sample_dict = {}
for m in mass_points:
    hzzd_sample_dict[m] = CMSDataset(
        "HZZd_M" + str(m),
        [
            TFile(
                os.path.join(
                    input_dir,
                    "HToZZdTo4L_M125_MZd%s_eps1e-2_13TeV_madgraph_pythia8.root"
                    % str(m)),
                tree_path_in_file,
            ),
        ],
        xs=hzzd_xs_dict[m] * epsilon**2,
        plot_name="$H \\rightarrow ZZ_{d}" + " [" + str(m) + "GeV]$",
        isSignal=True,
    )
    hzzd_sample_dict[m].read_sumw_by_text_file(
        os.path.join(
            input_dir,
            "HToZZdTo4L_M125_MZd%s_eps1e-2_13TeV_madgraph_pythia8.txt" %
            str(m)))

for m, sig in hzzd_sample_dict.items():
    sig.branches = [
Example #4
0
import os

from hep.cms.Dataset.CMSDataset import CMSDataset
from hep.root.TFile import TFile

# ______________________________________________________________________ ||
input_dir = "/cmsuf/data/store/user/t2/users/klo/Zprime/EXO-18-008/94X_Data_DarkZNTuple/"
tree_path_in_file = "passedEvents"

# ______________________________________________________________________ ||
data2017 = CMSDataset(
        "Data2017",
        [TFile(os.path.join(input_dir,"Data_Run2017-17Nov2017-v1_noDuplicates.root"),tree_path_in_file,),],
        isMC = False,
        )

# ______________________________________________________________________ ||
Example #5
0
import os

from hep.cms.Dataset.CMSDataset import CMSDataset
from hep.root.TFile import TFile

# ______________________________________________________________________ ||
input_dir = "/cmsuf/data/store/user/t2/users/klo/IHEPA/raid/Higgs/DarkZ-NTuple/20181116/SkimTree_DarkPhoton_Run2016Data_m4l70/"
tree_path_in_file = "passedEvents"

# ______________________________________________________________________ ||
data2016 = CMSDataset(
    "Data2016",
    [
        TFile(
            os.path.join(input_dir,
                         "Data_Run2016-03Feb2017_4l_noDuplicates.root"),
            tree_path_in_file,
        ),
    ],
    isMC=False,
)

# ______________________________________________________________________ ||
data2016.branches = [
    "mass4l",
    "massZ1",
    "massZ2",
    "genWeight",
    "passedFullSelection",
    "passedZXCRSelection",
    "dataMCWeight",
Example #6
0
import os

from hep.cms.Dataset.CMSDataset import CMSDataset
from hep.root.TFile import TFile

# ______________________________________________________________________ ||
input_dir = "/cmsuf/data/store/user/t2/users/klo/Zprime/EXO-18-008/80X_Data_DarkZNTuple/"
tree_path_in_file = "passedEvents"

# ______________________________________________________________________ ||
data2016 = CMSDataset(
    "Data2016",
    [
        TFile(
            os.path.join(input_dir, "Data_Run2016-03Feb2017_4l.root"),
            tree_path_in_file,
        ),
    ],
    isMC=False,
)

# ______________________________________________________________________ ||
Example #7
0
# ______________________________________________________________________ ||
skim_dir = "/cmsuf/data/store/user/t2/users/klo/HToZaToLLGG/UFHZZLiteAnalyzer/HToZA_MC17_bkg/"
input_dir = "/cmsuf/data/store/user/t2/users/klo/HToZaToLLGG/HToZA_MC17_bkg/"
#tree_path_in_file = "Ana/passedEvents"
tree_path_in_file = "passedEvents"
hist_path_in_file = "Ana/sumWeights"

# ______________________________________________________________________ ||
DYJetsToLL = CMSDataset(
    "DYLLJets",
    [
        TFile(
            os.path.join(
                skim_dir,
                "DYJetsToLL_M-50_TuneCP5_13TeV-madgraphMLM-pythia8_RunIIFall17MiniAODv2.root"
            ),
            tree_path_in_file,
        ),
    ],
    xs=6104.0,
    plot_name="DYJets",
)
DYJetsToLL.read_sumw_by_hist(
    os.path.join(
        input_dir,
        "DYJetsToLL_M-50_TuneCP5_13TeV-madgraphMLM-pythia8_RunIIFall17MiniAODv2.root"
    ), hist_path_in_file)

# ______________________________________________________________________ ||
TTJets = CMSDataset(
    "TTJets",
Example #8
0
from hep.cms.Dataset.CMSDataset import CMSDataset
from hep.root.TFile import TFile

# ______________________________________________________________________ ||
input_dir = "/cmsuf/data/store/user/t2/users/klo/Zprime/EXO-18-008/94X_MCProd_DarkZNTuple/"
tree_path_in_file = "passedEvents"

# ______________________________________________________________________ ||
qqZZ = CMSDataset(
    "qqZZ",
    [
        TFile(
            os.path.join(
                input_dir,
                "ZZTo4L_13TeV_powheg_pythia8_RunIIFall17MiniAOD-94X_mc2017_realistic_v10_ext1-v1.root"
            ),
            tree_path_in_file,
        ),
    ],
    xs=1.256,
    sumw=95344560.0,
    plot_name="$qq \\rightarrow ZZ$",
)

# ______________________________________________________________________ ||
ggZZ = CMSDataset(
    "ggZZ",
    [
        TFile(
            os.path.join(input_dir,
                         "GluGluToContinToZZTo4mu_13TeV_MCFM701_pythia8.root"),