Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated locations for background data #53

Open
wants to merge 1 commit into
base: update_CMSSW_13
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions BackgroundEstimation/test/bkgdEstimate_2022.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 4 additions & 6 deletions BackgroundEstimation/test/createFiducialMaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand All @@ -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:

Expand All @@ -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")
Expand Down