implementing the SAS for electrons functions
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
assigned to @cdaumann
added 1 commit
- a32ab82e - created separated file for electron systematics, and using electron as object
37 38 if is_correction: 39 # scale is a residual correction on data to match MC calibration. Check if is MC, throw error in this case. 40 if hasattr(events, "GenPart"): 41 raise ValueError("Scale corrections should only be applied to data!") 42 43 if year in ["2016preVFP", "2016postVFP", "2017", "2018"]: 44 # the correction is already applied for Run 2 45 logger.info("the scale correction for Run 2 MC is already applied in nAOD, nothing to be done") 46 else: 47 correction = evaluator.evaluate("total_correction", gain, run, eta, r9, ecalEnergy_) 48 ecal_energy_corr = ecalEnergy_ * correction 49 50 corrected_electrons = deepcopy(events.Electron) 51 ecal_energy_corr = ak.unflatten(ecal_energy_corr, counts) 52 corrected_electrons["ele_ecalEnergy"] = ecal_energy_corr Hi @cdaumann, shouldn't the electron scale correction also change it's pT in the end? Here you only change the ECAL energy. Should be sufficient for what you want to do in the Zee processor. I might be missing something, but for an analysis that needs precision in electrons, we'd need an actual correction to the electron pT, no?
added 26 commits
-
f640e722...5a766f5c - 24 commits from branch
master
- 5a51d149 - Merge branch 'master' of...
- ee4fe7a9 - fixing flake8 issues
-
f640e722...5a766f5c - 24 commits from branch
- Resolved by Jan Lukas Spah
Hi @jspah,
can we merge this branch? With the flake8 issues fixed, I think it is nice and ready to go and I would like to use it.
mentioned in commit 0b4d85d0
Please register or sign in to reply