From b05f04d9e61e30d6f92138694591901e509732a2 Mon Sep 17 00:00:00 2001 From: Michael Carrigan Date: Thu, 19 Sep 2024 12:40:12 -0400 Subject: [PATCH] updated locations for background data --- BackgroundEstimation/test/bkgdEstimate_2022.py | 10 +++++----- BackgroundEstimation/test/createFiducialMaps.py | 10 ++++------ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/BackgroundEstimation/test/bkgdEstimate_2022.py b/BackgroundEstimation/test/bkgdEstimate_2022.py index 5b2c12b8..2ac29dd7 100755 --- a/BackgroundEstimation/test/bkgdEstimate_2022.py +++ b/BackgroundEstimation/test/bkgdEstimate_2022.py @@ -155,11 +155,11 @@ electronBkgdEstimate.addLuminosityLabel(str(round(lumi["EGamma_2022" + runPeriod] / 1000.0, 2)) + " fb^{-1}(13 TeV)") electronBkgdEstimate.addPlotLabel("EGamma 2022" + runPeriod) - electronBkgdEstimate.addChannel("TagProbe", "ZtoEleProbeTrk" + nLayersWords[0], "EGamma_2022" + runPeriod, dirs['Mike'] + "EGamma_2022/EGamma_2022F_zToEE/") - electronBkgdEstimate.addChannel("TagProbePass", "ZtoEleProbeTrkWithFilter" + nLayersWords[0], "EGamma_2022" + runPeriod, dirs['Mike'] + "EGamma_2022/EGamma_2022F_zToEE/") - electronBkgdEstimate.addChannel("TagProbePassSS", "ZtoEleProbeTrkWithSSFilter" + nLayersWords[0], "EGamma_2022" + runPeriod, dirs['Mike'] + "EGamma_2022/EGamma_2022F_zToEE/") - electronBkgdEstimate.addChannel("TagPt35", "ElectronTagPt55" + nLayersWords[0], "EGamma_2022" + runPeriod, dirs['Mike'] + "EGamma_2022/EGamma_2022F_electronTagPT/") - electronBkgdEstimate.addChannel("TagPt35MetTrig", "ElectronTagPt55MetTrig" + nLayersWords[0], "EGamma_2022" + runPeriod, dirs['Mike'] + "EGamma_2022/EGamma_2022F_electronTagPT/") + electronBkgdEstimate.addChannel("TagProbe", "ZtoEleProbeTrk" + nLayersWords[0], "EGamma_2022" + runPeriod, dirs['Mike'] + "abyss/EGamma_2022/EGamma_2022F_ZtoEleProbeTrk/") + electronBkgdEstimate.addChannel("TagProbePass", "ZtoEleProbeTrkWithFilter" + nLayersWords[0], "EGamma_2022" + runPeriod, dirs['Mike'] + "abyss/EGamma_2022/EGamma_2022F_ZtoEleProbeTrk/") + electronBkgdEstimate.addChannel("TagProbePassSS", "ZtoEleProbeTrkWithSSFilter" + nLayersWords[0], "EGamma_2022" + runPeriod, dirs['Mike'] + "abyss/EGamma_2022/EGamma_2022F_ZtoEleProbeTrk/") + electronBkgdEstimate.addChannel("TagPt35", "ElectronTagPt55" + nLayersWords[0], "EGamma_2022" + runPeriod, dirs['Mike'] + "abyss/EGamma_2022/EGamma_2022F_TagPT/") + electronBkgdEstimate.addChannel("TagPt35MetTrig", "ElectronTagPt55MetTrig" + nLayersWords[0], "EGamma_2022" + runPeriod, dirs['Mike'] + "abyss/EGamma_2022/EGamma_2022F_TagPT/") '''if runPeriod in ['C', 'D', 'CD'] and applyHEMveto: # HEM 15/16 issue; veto MET in phi range diff --git a/BackgroundEstimation/test/createFiducialMaps.py b/BackgroundEstimation/test/createFiducialMaps.py index 0812aea9..ecd7b8d6 100755 --- a/BackgroundEstimation/test/createFiducialMaps.py +++ b/BackgroundEstimation/test/createFiducialMaps.py @@ -14,9 +14,7 @@ canvas = TCanvas("c1", "c1", 800, 800) selectionNames = ['FiducialCalcBefore', 'FiducialCalcAfter'] -sim = True - -simulation = False +sim = False # Will use Dataset_runPeriod.root runPeriods = ['2015'] @@ -30,8 +28,8 @@ selectionNames = ['FiducialCalcBeforeOldCuts', 'FiducialCalcAfterOldCuts'] if os.environ['CMSSW_VERSION'].startswith('CMSSW_12') or os.environ['CMSSW_VERSION'].startswith('CMSSW_13'): runPeriods = ['2022F'] - #selectionNames = ['FiducialCalcBeforeOldCuts', 'FiducialCalcAfterOldCuts'] - selectionNames = ['FiducialCalcBeforeOldCuts', 'DeepSetsAfter'] + selectionNames = ['FiducialCalcBeforeOldCuts', 'FiducialCalcAfterOldCuts'] + #selectionNames = ['FiducialCalcBeforeOldCuts', 'DeepSetsAfter'] for runPeriod in runPeriods: @@ -54,7 +52,7 @@ condorDirectory = dirs['Mike'] + 'sim/DY_Jets_M50_deepSets_v2' datasetName = 'DYJetsToLL_M50_merged' else: - condorDirectory = dirs['Mike'] + 'EGamma_2022/EGamma_2022F_fiducialMap' + condorDirectory = dirs['Mike'] + 'abyss/EGamma_2022/EGamma_2022F_fiducialMap' datasetName = 'EGamma' fout = TFile.Open("newElectronFiducialMap_" + runPeriod + ".root", "recreate")