Skip to content

Commit

Permalink
Merge pull request #53 from cmstas/jec
Browse files Browse the repository at this point in the history
JERC
  • Loading branch information
kmohrman authored Oct 7, 2024
2 parents f164a99 + 6d1c508 commit 7cfbaee
Show file tree
Hide file tree
Showing 49 changed files with 380,420 additions and 230 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
run: |
mkdir dir_for_topcoffea
cd dir_for_topcoffea
git clone https://github.com/TopEFT/topcoffea.git
git clone -b clib_jme https://github.com/TopEFT/topcoffea.git
cd topcoffea
conda run -n coffea-env pip install -e .
cd ../..
Expand Down
241 changes: 241 additions & 0 deletions analysis/wwz/for_jec_27_var.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,241 @@

# This is a file for things related to the 27 JEC variations
# - For things that would be too long and messy to keep in our regular scripts, but want to keep them around for reference
# - If we ever have to actually move to using the 27 variations, we should probably figure out a cleaner way to do these things
# - But as it stands, it's not worth the effort


# JERC Syst List
# Would not be used by anything, as far as I can tell
jerc_list = [
"AbsoluteMPFBias_correlated","AbsoluteScale_correlated","FlavorQCD_correlated","Fragmentation_correlated","PileUpDataMC_correlated",
"PileUpPtBB_correlated","PileUpPtEC1_correlated","PileUpPtEC2_correlated","PileUpPtHF_correlated","PileUpPtRef_correlated",
"RelativeFSR_correlated","RelativeJERHF_correlated","RelativePtBB_correlated","RelativePtHF_correlated","RelativeBal_correlated",
"SinglePionECAL_correlated","SinglePionHCAL_correlated"
]

JERC_LST = [
"AbsoluteMPFBias_correlated",
"AbsoluteScale_correlated",
"FlavorQCD_correlated",
"Fragmentation_correlated",
"PileUpDataMC_correlated",
"PileUpPtBB_correlated",
"PileUpPtEC1_correlated",
"PileUpPtEC2_correlated",
"PileUpPtHF_correlated",
"PileUpPtRef_correlated",
"RelativeFSR_correlated",
"RelativeJERHF_correlated",
"RelativePtBB_correlated",
"RelativePtHF_correlated",
"RelativeBal_correlated",
"SinglePionECAL_correlated",
"SinglePionHCAL_correlated",

"AbsoluteStat_uncorrelated_2016APV",
"RelativeJEREC1_uncorrelated_2016APV",
"RelativeJEREC2_uncorrelated_2016APV",
"RelativePtEC1_uncorrelated_2016APV",
"RelativePtEC2_uncorrelated_2016APV",
"TimePtEta_uncorrelated_2016APV",
"RelativeSample_uncorrelated_2016APV",
"RelativeStatEC_uncorrelated_2016APV",
"RelativeStatFSR_uncorrelated_2016APV",
"RelativeStatHF_uncorrelated_2016APV",
"JER_2016APV",

"AbsoluteStat_uncorrelated_2016",
"RelativeJEREC1_uncorrelated_2016",
"RelativeJEREC2_uncorrelated_2016",
"RelativePtEC1_uncorrelated_2016",
"RelativePtEC2_uncorrelated_2016",
"TimePtEta_uncorrelated_2016",
"RelativeSample_uncorrelated_2016",
"RelativeStatEC_uncorrelated_2016",
"RelativeStatFSR_uncorrelated_2016",
"RelativeStatHF_uncorrelated_2016",
"JER_2016",

"AbsoluteStat_uncorrelated_2017",
"RelativeJEREC1_uncorrelated_2017",
"RelativeJEREC2_uncorrelated_2017",
"RelativePtEC1_uncorrelated_2017",
"RelativePtEC2_uncorrelated_2017",
"TimePtEta_uncorrelated_2017",
"RelativeSample_uncorrelated_2017",
"RelativeStatEC_uncorrelated_2017",
"RelativeStatFSR_uncorrelated_2017",
"RelativeStatHF_uncorrelated_2017",
"JER_2017",

"AbsoluteStat_uncorrelated_2018",
"RelativeJEREC1_uncorrelated_2018",
"RelativeJEREC2_uncorrelated_2018",
"RelativePtEC1_uncorrelated_2018",
"RelativePtEC2_uncorrelated_2018",
"TimePtEta_uncorrelated_2018",
"RelativeSample_uncorrelated_2018",
"RelativeStatEC_uncorrelated_2018",
"RelativeStatFSR_uncorrelated_2018",
"RelativeStatHF_uncorrelated_2018",
"JER_2018",

"AbsoluteStat_uncorrelated_2022",
"RelativeJEREC1_uncorrelated_2022",
"RelativeJEREC2_uncorrelated_2022",
"RelativePtEC1_uncorrelated_2022",
"RelativePtEC2_uncorrelated_2022",
"TimePtEta_uncorrelated_2022",
"RelativeSample_uncorrelated_2022",
"RelativeStatEC_uncorrelated_2022",
"RelativeStatFSR_uncorrelated_2022",
"RelativeStatHF_uncorrelated_2022",
"JER_2022",

"AbsoluteStat_uncorrelated_2022EE",
"RelativeJEREC1_uncorrelated_2022EE",
"RelativeJEREC2_uncorrelated_2022EE",
"RelativePtEC1_uncorrelated_2022EE",
"RelativePtEC2_uncorrelated_2022EE",
"TimePtEta_uncorrelated_2022EE",
"RelativeSample_uncorrelated_2022EE",
"RelativeStatEC_uncorrelated_2022EE",
"RelativeStatFSR_uncorrelated_2022EE",
"RelativeStatHF_uncorrelated_2022EE",
"JER_2022EE",

"AbsoluteStat_uncorrelated_2023",
"RelativeJEREC1_uncorrelated_2023",
"RelativeJEREC2_uncorrelated_2023",
"RelativePtEC1_uncorrelated_2023",
"RelativePtEC2_uncorrelated_2023",
"TimePtEta_uncorrelated_2023",
"RelativeSample_uncorrelated_2023",
"RelativeStatEC_uncorrelated_2023",
"RelativeStatFSR_uncorrelated_2023",
"RelativeStatHF_uncorrelated_2023",
"JER_2023",

"AbsoluteStat_uncorrelated_2023BPix",
"RelativeJEREC1_uncorrelated_2023BPix",
"RelativeJEREC2_uncorrelated_2023BPix",
"RelativePtEC1_uncorrelated_2023BPix",
"RelativePtEC2_uncorrelated_2023BPix",
"TimePtEta_uncorrelated_2023BPix",
"RelativeSample_uncorrelated_2023BPix",
"RelativeStatEC_uncorrelated_2023BPix",
"RelativeStatFSR_uncorrelated_2023BPix",
"RelativeStatHF_uncorrelated_2023BPix",
"JER_2023BPix",
]

SYSTS_SPECIAL = {

"run2" : {
"btagSFlight_uncorrelated_2016APV" : {"yr_rel":"UL16APV", "yr_notrel": ["UL16", "UL17", "UL18"]},
"btagSFbc_uncorrelated_2016APV" : {"yr_rel":"UL16APV", "yr_notrel": ["UL16", "UL17", "UL18"]},
"btagSFlight_uncorrelated_2016" : {"yr_rel":"UL16", "yr_notrel": ["UL16APV", "UL17", "UL18"]},
"btagSFbc_uncorrelated_2016" : {"yr_rel":"UL16", "yr_notrel": ["UL16APV", "UL17", "UL18"]},
"btagSFlight_uncorrelated_2017" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL18"]},
"btagSFbc_uncorrelated_2017" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL18"]},
"btagSFlight_uncorrelated_2018" : {"yr_rel":"UL18", "yr_notrel": ["UL16APV", "UL16", "UL17"]},
"btagSFbc_uncorrelated_2018" : {"yr_rel":"UL18", "yr_notrel": ["UL16APV", "UL16", "UL17"]},
"AbsoluteStat_uncorrelated_2016APV" : {"yr_rel":"UL16APV", "yr_notrel": ["UL16", "UL17", "UL18"]},
"RelativeJEREC1_uncorrelated_2016APV" : {"yr_rel":"UL16APV", "yr_notrel": ["UL16", "UL17", "UL18"]},
"RelativeJEREC2_uncorrelated_2016APV" : {"yr_rel":"UL16APV", "yr_notrel": ["UL16", "UL17", "UL18"]},
"RelativePtEC1_uncorrelated_2016APV" : {"yr_rel":"UL16APV", "yr_notrel": ["UL16", "UL17", "UL18"]},
"RelativePtEC2_uncorrelated_2016APV" : {"yr_rel":"UL16APV", "yr_notrel": ["UL16", "UL17", "UL18"]},
"TimePtEta_uncorrelated_2016APV" : {"yr_rel":"UL16APV", "yr_notrel": ["UL16", "UL17", "UL18"]},
"RelativeSample_uncorrelated_2016APV" : {"yr_rel":"UL16APV", "yr_notrel": ["UL16", "UL17", "UL18"]},
"RelativeStatEC_uncorrelated_2016APV" : {"yr_rel":"UL16APV", "yr_notrel": ["UL16", "UL17", "UL18"]},
"RelativeStatFSR_uncorrelated_2016APV": {"yr_rel":"UL16APV", "yr_notrel": ["UL16", "UL17", "UL18"]},
"RelativeStatHF_uncorrelated_2016APV" : {"yr_rel":"UL16APV", "yr_notrel": ["UL16", "UL17", "UL18"]},
"JER_2016APV" : {"yr_rel":"UL16APV", "yr_notrel": ["UL16", "UL17", "UL18"]},
"AbsoluteStat_uncorrelated_2016" : {"yr_rel":"UL16", "yr_notrel": ["UL16APV", "UL17", "UL18"]},
"RelativeJEREC1_uncorrelated_2016" : {"yr_rel":"UL16", "yr_notrel": ["UL16APV", "UL17", "UL18"]},
"RelativeJEREC2_uncorrelated_2016" : {"yr_rel":"UL16", "yr_notrel": ["UL16APV", "UL17", "UL18"]},
"RelativePtEC1_uncorrelated_2016" : {"yr_rel":"UL16", "yr_notrel": ["UL16APV", "UL17", "UL18"]},
"RelativePtEC2_uncorrelated_2016" : {"yr_rel":"UL16", "yr_notrel": ["UL16APV", "UL17", "UL18"]},
"TimePtEta_uncorrelated_2016" : {"yr_rel":"UL16", "yr_notrel": ["UL16APV", "UL17", "UL18"]},
"RelativeSample_uncorrelated_2016" : {"yr_rel":"UL16", "yr_notrel": ["UL16APV", "UL17", "UL18"]},
"RelativeStatEC_uncorrelated_2016" : {"yr_rel":"UL16", "yr_notrel": ["UL16APV", "UL17", "UL18"]},
"RelativeStatFSR_uncorrelated_2016": {"yr_rel":"UL16", "yr_notrel": ["UL16APV", "UL17", "UL18"]},
"RelativeStatHF_uncorrelated_2016" : {"yr_rel":"UL16", "yr_notrel": ["UL16APV", "UL17", "UL18"]},
"JER_2016" : {"yr_rel":"UL16", "yr_notrel": ["UL16APV", "UL17", "UL18"]},
"AbsoluteStat_uncorrelated_2017" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL18"]},
"RelativeJEREC1_uncorrelated_2017" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL18"]},
"RelativeJEREC2_uncorrelated_2017" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL18"]},
"RelativePtEC1_uncorrelated_2017" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL18"]},
"RelativePtEC2_uncorrelated_2017" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL18"]},
"TimePtEta_uncorrelated_2017" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL18"]},
"RelativeSample_uncorrelated_2017" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL18"]},
"RelativeStatEC_uncorrelated_2017" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL18"]},
"RelativeStatFSR_uncorrelated_2017": {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL18"]},
"RelativeStatHF_uncorrelated_2017" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL18"]},
"JER_2017" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL18"]},
"AbsoluteStat_uncorrelated_2018" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL17"]},
"RelativeJEREC1_uncorrelated_2018" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL17"]},
"RelativeJEREC2_uncorrelated_2018" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL17"]},
"RelativePtEC1_uncorrelated_2018" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL17"]},
"RelativePtEC2_uncorrelated_2018" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL17"]},
"TimePtEta_uncorrelated_2018" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL17"]},
"RelativeSample_uncorrelated_2018" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL17"]},
"RelativeStatEC_uncorrelated_2018" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL17"]},
"RelativeStatFSR_uncorrelated_2018": {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL17"]},
"RelativeStatHF_uncorrelated_2018" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL17"]},
"JER_2018" : {"yr_rel":"UL17", "yr_notrel": ["UL16APV", "UL16", "UL17"]},
},

"run3" : {
"btagSFbc_uncorrelated_2022" : {"yr_rel":"2022", "yr_notrel": ["2022EE","2023","2023BPix"]},
"btagSFbc_uncorrelated_2022EE" : {"yr_rel":"2022EE", "yr_notrel": ["2022","2023","2023BPix"]},
"btagSFbc_uncorrelated_2023" : {"yr_rel":"2023", "yr_notrel": ["2022","2022EE","2023BPix"]},
"btagSFbc_uncorrelated_2023BPix" : {"yr_rel":"2023BPix", "yr_notrel": ["2022","2022EE","2023"]},
"AbsoluteStat_uncorrelated_2022" : {"yr_rel":"2022", "yr_notrel": ["2022EE","2023","2023BPix"]},
"RelativeJEREC1_uncorrelated_2022" : {"yr_rel":"2022", "yr_notrel": ["2022EE","2023","2023BPix"]},
"RelativeJEREC2_uncorrelated_2022" : {"yr_rel":"2022", "yr_notrel": ["2022EE","2023","2023BPix"]},
"RelativePtEC1_uncorrelated_2022" : {"yr_rel":"2022", "yr_notrel": ["2022EE","2023","2023BPix"]},
"RelativePtEC2_uncorrelated_2022" : {"yr_rel":"2022", "yr_notrel": ["2022EE","2023","2023BPix"]},
"TimePtEta_uncorrelated_2022" : {"yr_rel":"2022", "yr_notrel": ["2022EE","2023","2023BPix"]},
"RelativeSample_uncorrelated_2022" : {"yr_rel":"2022", "yr_notrel": ["2022EE","2023","2023BPix"]},
"RelativeStatEC_uncorrelated_2022" : {"yr_rel":"2022", "yr_notrel": ["2022EE","2023","2023BPix"]},
"RelativeStatFSR_uncorrelated_2022": {"yr_rel":"2022", "yr_notrel": ["2022EE","2023","2023BPix"]},
"RelativeStatHF_uncorrelated_2022" : {"yr_rel":"2022", "yr_notrel": ["2022EE","2023","2023BPix"]},
"JER_2022" : {"yr_rel":"2022", "yr_notrel": ["2022EE","2023","2023BPix"]},
"AbsoluteStat_uncorrelated_2022EE" : {"yr_rel":"2022EE", "yr_notrel": ["2022","2023","2023BPix"]},
"RelativeJEREC1_uncorrelated_2022EE" : {"yr_rel":"2022EE", "yr_notrel": ["2022","2023","2023BPix"]},
"RelativeJEREC2_uncorrelated_2022EE" : {"yr_rel":"2022EE", "yr_notrel": ["2022","2023","2023BPix"]},
"RelativePtEC1_uncorrelated_2022EE" : {"yr_rel":"2022EE", "yr_notrel": ["2022","2023","2023BPix"]},
"RelativePtEC2_uncorrelated_2022EE" : {"yr_rel":"2022EE", "yr_notrel": ["2022","2023","2023BPix"]},
"TimePtEta_uncorrelated_2022EE" : {"yr_rel":"2022EE", "yr_notrel": ["2022","2023","2023BPix"]},
"RelativeSample_uncorrelated_2022EE" : {"yr_rel":"2022EE", "yr_notrel": ["2022","2023","2023BPix"]},
"RelativeStatEC_uncorrelated_2022EE" : {"yr_rel":"2022EE", "yr_notrel": ["2022","2023","2023BPix"]},
"RelativeStatFSR_uncorrelated_2022EE": {"yr_rel":"2022EE", "yr_notrel": ["2022","2023","2023BPix"]},
"RelativeStatHF_uncorrelated_2022EE" : {"yr_rel":"2022EE", "yr_notrel": ["2022","2023","2023BPix"]},
"JER_2022EE" : {"yr_rel":"2022EE", "yr_notrel": ["2022","2023","2023BPix"]},
"AbsoluteStat_uncorrelated_2023" : {"yr_rel":"2023", "yr_notrel": ["2022","2022EE","2023BPix"]},
"RelativeJEREC1_uncorrelated_2023" : {"yr_rel":"2023", "yr_notrel": ["2022","2022EE","2023BPix"]},
"RelativeJEREC2_uncorrelated_2023" : {"yr_rel":"2023", "yr_notrel": ["2022","2022EE","2023BPix"]},
"RelativePtEC1_uncorrelated_2023" : {"yr_rel":"2023", "yr_notrel": ["2022","2022EE","2023BPix"]},
"RelativePtEC2_uncorrelated_2023" : {"yr_rel":"2023", "yr_notrel": ["2022","2022EE","2023BPix"]},
"TimePtEta_uncorrelated_2023" : {"yr_rel":"2023", "yr_notrel": ["2022","2022EE","2023BPix"]},
"RelativeSample_uncorrelated_2023" : {"yr_rel":"2023", "yr_notrel": ["2022","2022EE","2023BPix"]},
"RelativeStatEC_uncorrelated_2023" : {"yr_rel":"2023", "yr_notrel": ["2022","2022EE","2023BPix"]},
"RelativeStatFSR_uncorrelated_2023": {"yr_rel":"2023", "yr_notrel": ["2022","2022EE","2023BPix"]},
"RelativeStatHF_uncorrelated_2023" : {"yr_rel":"2023", "yr_notrel": ["2022","2022EE","2023BPix"]},
"JER_2023" : {"yr_rel":"2023", "yr_notrel": ["2022","2022EE","2023BPix"]},
"AbsoluteStat_uncorrelated_2023BPix" : {"yr_rel":"2023BPix", "yr_notrel": ["2022","2022EE","2023"]},
"RelativeJEREC1_uncorrelated_2023BPix" : {"yr_rel":"2023BPix", "yr_notrel": ["2022","2022EE","2023"]},
"RelativeJEREC2_uncorrelated_2023BPix" : {"yr_rel":"2023BPix", "yr_notrel": ["2022","2022EE","2023"]},
"RelativePtEC1_uncorrelated_2023BPix" : {"yr_rel":"2023BPix", "yr_notrel": ["2022","2022EE","2023"]},
"RelativePtEC2_uncorrelated_2023BPix" : {"yr_rel":"2023BPix", "yr_notrel": ["2022","2022EE","2023"]},
"TimePtEta_uncorrelated_2023BPix" : {"yr_rel":"2023BPix", "yr_notrel": ["2022","2022EE","2023"]},
"RelativeSample_uncorrelated_2023BPix" : {"yr_rel":"2023BPix", "yr_notrel": ["2022","2022EE","2023"]},
"RelativeStatEC_uncorrelated_2023BPix" : {"yr_rel":"2023BPix", "yr_notrel": ["2022","2022EE","2023"]},
"RelativeStatFSR_uncorrelated_2023BPix": {"yr_rel":"2023BPix", "yr_notrel": ["2022","2022EE","2023"]},
"RelativeStatHF_uncorrelated_2023BPix" : {"yr_rel":"2023BPix", "yr_notrel": ["2022","2022EE","2023"]},
"JER_2023BPix" : {"yr_rel":"2023BPix", "yr_notrel": ["2022","2022EE","2023"]},
},

}
Loading

0 comments on commit 7cfbaee

Please sign in to comment.