Ejemplo n.º 1
0
input_dir = "/cmsuf/data/store/user/t2/users/klo/MLHEP/LiteTree/210115_mg_hzz_hel_v2/"
tree_path_in_file = "LiteTree"
sumw = 100000

# ____________________________________________________________________________________________________________________________________________ ||
sample_dict = {}
for f in os.listdir(input_dir):
    if ".root" not in f: continue
    param_str = f.replace(".root", "")
    sample_dict[param_str] = CMSDataset(
        "HZZ_CWW_" + param_str,
        [
            TFile(
                os.path.join(input_dir, f),
                tree_path_in_file,
            ),
        ],
        xs=0.1,
        sumw=sumw,
        isMC=True,
        isSignal=True,
        plot_name="HZZ_CWW_" + "%4.4f" % float(param_str),
    )
    sample_dict[param_str].param = float(param_str)
    sample_dict[param_str].branches = [
        "mass4l",
        "massZ1",
        "massZ2",
        "pT4l",
        "rapidity4l",
        "pTZ1",
        "pTZ2",
Ejemplo n.º 2
0
from PyLooper.hep.cms.dataset.CMSDataset import CMSDataset
from PyLooper.hep.root.TFile import TFile

# ____________________________________________________________________________________________________________________________________________ ||
input_dir = "/cmsuf/data/store/user/t2/users/klo/MLHEP/LiteTree/210117_mg_zz_hel/"
tree_path_in_file = "LiteTree"
sumw = 100 * 5000

# ____________________________________________________________________________________________________________________________________________ ||
ZZ = CMSDataset(
    "ZZ",
    [
        TFile(
            os.path.join(input_dir, f),
            tree_path_in_file,
        ) for f in os.listdir(input_dir) if ".root" in f
    ],
    xs=1.256,
    sumw=sumw,
    isMC=True,
    plot_name="ZZ",
)
ZZ.param = -1.
ZZ.branches = [
    "mass4l",
    "massZ1",
    "massZ2",
    "pT4l",
    "rapidity4l",
    "pTZ1",
    "pTZ2",
Ejemplo n.º 3
0
import os

from PyLooper.hep.cms.dataset.CMSDataset import CMSDataset
from PyLooper.hep.root.TFile import TFile

# ______________________________________________________________________ ||
input_dir = "/cmsuf/data/store/user/t2/users/klo/Higgs/DarkZ/NTuples/ZPlusX_Early2017_v1/"
tree_path_in_file = "passedEvents"

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

# ______________________________________________________________________ ||

data2017.branches = [
    #"genWeight",
    "passedFullSelection",
    "passedZXCRSelection",
    "passedZ1LSelection",
    #"dataMCWeight",
    #"pileupWeight",
#input_dir           = "/Users/lucien/CMS/ztoll-ml/Data/201210_mg_dyll/"
#input_dir           = "/cmsuf/data/store/user/t2/users/klo/MLHEP/MuonTree/201211_mg_dyll/"
input_dir = "/cmsuf/data/store/user/t2/users/klo/MLHEP/MuonTree/210112_mg_dyll/"
tree_path_in_file = "LiteTree"

# ____________________________________________________________________________________________________________________________________________ ||
sample_dict = {}
for f in os.listdir(input_dir):
    if ".root" not in f: continue
    mass_str = f.replace(".root", "")
    sample_dict[mass_str] = CMSDataset(
        "DYToLL_M" + mass_str,
        [
            TFile(
                os.path.join(input_dir, f),
                tree_path_in_file,
            ),
        ],
        xs=1.,
        sumw=1.,
        plot_name="DYToLL_M" + mass_str,
    )
    sample_dict[mass_str].mass = float(mass_str)
    sample_dict[mass_str].branches = [
        "Muon_Pt",
        "Muon_Eta",
        "Muon_Phi",
        "Muon_GenPt",
        "Muon_GenEta",
        "Muon_GenPhi",
        "Muon_GenMass",
    ]
Ejemplo n.º 5
0
from PyLooper.hep.cms.dataset.CMSDataset import CMSDataset
from PyLooper.hep.root.TFile import TFile

# ____________________________________________________________________________________________________________________________________________ ||
input_dir = "/cmsuf/data/store/user/t2/users/klo/MLHEP/LiteTree/210115_mg_hzz_hel_v2/"
tree_path_in_file = "LiteTree"
sumw = 100000

# ____________________________________________________________________________________________________________________________________________ ||
ggH = CMSDataset(
    "Higgs",
    [
        TFile(
            os.path.join(input_dir, "0.002312241433103379.root"),
            tree_path_in_file,
        )
    ],
    xs=48.52 * 0.0002768,
    sumw=sumw,
    isMC=True,
    plot_name="SM Higgs",
)
ggH.param = 0.0
ggH.branches = [
    "mass4l",
    "massZ1",
    "massZ2",
    "pT4l",
    "rapidity4l",
    "pTZ1",
    "pTZ2",
Ejemplo n.º 6
0
import os

from PyLooper.hep.cms.dataset.CMSDataset import CMSDataset
from PyLooper.hep.root.TFile import TFile

# ____________________________________________________________________________________________________________________________________________ ||
input_dir           = "/cmsuf/data/store/user/t2/users/klo/Higgs/DarkZ/NTuples/ZPlusX_Early2017_v1/"
tree_path_in_file   = "Ana/passedEvents"

# ____________________________________________________________________________________________________________________________________________ ||
DYJetsToLL_M10To50_2017 = CMSDataset(
    "DYJetsToLL_M10To50",
    [TFile(os.path.join(input_dir,"DYJetsToLL_M10To50.root"),tree_path_in_file,),],
    xs = 15810.0,
    sumw = 37951928.0,
    plot_name = "DYJetsToLL_M10To50"
    )
# ____________________________________________________________________________________________________________________________________________ ||
DYJetsToLL_M50_2017 = CMSDataset(
    "DYJetsToLL_M50",
    [TFile(os.path.join(input_dir,"DYJetsToLL_M50.root"),tree_path_in_file,),],
    xs = 5343.0,
    sumw = 18700012.0,
    plot_name = "DYJetsToLL_M50"
    )
# ____________________________________________________________________________________________________________________________________________ ||
TTJets_2017 = CMSDataset(
    "TTJets",
    [TFile(os.path.join(input_dir,"TTJets.root"),tree_path_in_file,),],
    xs = 54.23,
    sumw = 100907248.0,
Ejemplo n.º 7
0
import os

from PyLooper.hep.cms.dataset.CMSDataset import CMSDataset
from PyLooper.hep.root.TFile import TFile

# ____________________________________________________________________________________________________________________________________________ ||
input_dir = "/Users/lucien/CMS/ztoll-ml/Data/"
tree_path_in_file = "LiteTree"

# ____________________________________________________________________________________________________________________________________________ ||
ZJetsToLL_LO_MLM = CMSDataset(
    "ZJetsToLL_LO_MLM",
    [
        TFile(
            os.path.join(input_dir, "2020-07-09_MuonTreeProducer.root"),
            tree_path_in_file,
        ),
    ],
    xs=1.,
    sumw=1.,
    plot_name="ZJetsToLL_LO_MLM",
)

ZJetsToLL_LO_MLM.branches = [
    "Muon_Pt",
    "Muon_Eta",
    "Muon_Phi",
    "Muon_GenPt",
    "Muon_GenEta",
    "Muon_GenPhi",
    "Muon_GenMass",
]