Exemplo n.º 1
0
        lambda leps, jets, event: len(leps) >= 2 and len(jets) >= 3,
        lambda leps, jets, event: leps[0].conePt > 20 and leps[1].conePt > 10,
    ])))

from CMGTools.TTHAnalysis.tools.BDT_eventReco_cpp import BDT_eventReco
MODULES.append(('BDTv8_Hj', lambda: BDT_eventReco(
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/TMVAClassification_bloose_BDTG.weights.xml',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/TMVAClassification_btight_BDTG.weights.xml',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/Hj_2017_configA_dcsv_BDTG.weights.xml',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/Hjj_csv_BDTG.weights.xml',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/resTop_xgb_csv_order_deepCTag.xml.gz',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/HadTopTagger_resolved_XGB_CSV_sort_withKinFit.xml.gz',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/TF_jets_kinfit_httTT.root',
    algostring='k_BDTv8_Hj',
    csv_looseWP=0.5426,
    csv_mediumWP=0.8484,
    selection=[
        lambda leps, jets, event: len(leps) >= 2 and len(jets) >= 3,
        lambda leps, jets, event: leps[0].conePt > 20 and leps[1].conePt > 10,
    ])))
MODULES.append(('BDTrTT_Hj', lambda: BDT_eventReco(
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/TMVAClassification_bloose_BDTG.weights.xml',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/TMVAClassification_btight_BDTG.weights.xml',
Exemplo n.º 2
0
    Trigger_3m, Trigger_mee, Trigger_mme, Trigger_2lss, Trigger_3l
]

from CMGTools.TTHAnalysis.tools.BDT_eventReco_cpp import BDT_eventReco

BDThttTT_Hj = lambda: BDT_eventReco(
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/TMVAClassification_bloose_BDTG.weights.xml',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/TMVAClassification_btight_BDTG.weights.xml',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/Hjtagger_legacy_xgboost_v1.weights.xml',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/Hjj_csv_BDTG.weights.xml',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/resTop_xgb_csv_order_deepCTag.xml.gz',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/HTT_HadTopTagger_2017_nomasscut_nvar17_resolved.xml',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/TF_jets_kinfit_httTT.root',
    algostring='k_httTT_Hj',
    csv_looseWP=0.5426,
    csv_mediumWP=0.8484,
    selection=[
        lambda leps, jets, event: len(leps) >= 2 and len(jets) >= 3,
        lambda leps, jets, event: leps[0].conePt > 20 and leps[1].conePt > 10,
    ])

from CMGTools.TTHAnalysis.tools.finalMVA_DNN import finalMVA_DNN
finalMVA = lambda: finalMVA_DNN()

from PhysicsTools.NanoAODTools.postprocessing.modules.btv.btagSFProducer import btagSFProducer
Exemplo n.º 3
0
    Trigger_3m, Trigger_mee, Trigger_mme, Trigger_2lss, Trigger_3l, Trigger_MET
]

from CMGTools.TTHAnalysis.tools.BDT_eventReco_cpp import BDT_eventReco

BDThttTT_Hj = lambda: BDT_eventReco(
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/TMVAClassification_bloose_BDTG.weights.xml',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/TMVAClassification_btight_BDTG.weights.xml',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/Hjtagger_legacy_xgboost_v1.weights.xml',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/Hjj_csv_BDTG.weights.xml',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/resTop_xgb_csv_order_deepCTag.xml.gz',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/HTT_HadTopTagger_2017_nomasscut_nvar17_resolved.xml',
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/TF_jets_kinfit_httTT.root',
    algostring='k_httTT_Hj',
    csv_looseWP=0.5426,
    csv_mediumWP=0.8484,
    selection=[
        lambda leps, jets, event: len(leps) >= 2,
        lambda leps, jets, event: leps[0].conePt > 20 and leps[1].conePt > 10,
    ])

BDThttTT_allvariations = lambda: BDT_eventReco(
    os.environ["CMSSW_BASE"] +
    '/src/CMGTools/TTHAnalysis/data/kinMVA/tth/TMVAClassification_bloose_BDTG.weights.xml',
    os.environ["CMSSW_BASE"] +