Make v11 compatible and include dZ variable
List of important changes to have HiggsDNA compatible with nanoAOD v11:
-
events.fixedGridRhoAll
->events.Rho.fixedGridRhoAll
-
photons.trkSumPtHollowConeDR03 ->
photons.pfChargedIsoPFPV` (can be reverted for HiggsDNA that processes nanoAOD v12 if need be) -
photons.pfRelIso03_chg
->photons.pfRelIso03_chg_quadratic
(we can discuss if the cut value needs to be changed but at least this variable works right now) - Added
photons["charge"] = awkward.zeros_like(photons.pt)
because thePhotons
collection in nanoAOD v11 does not containcharge
anymore. We just assume that photons have zero charge now, I guess. Hope that does not cause any problems. -
diphotons["dZ"] = events.GenVtx.z - events.PV.z
for MC, zeros for data
Helpful links:
- validated with sample https://cmsweb.cern.ch/das/request?view=list&limit=50&instance=prod%2Fglobal&input=dataset%3D/GJet_PT-20_DoubleEMEnriched_MGG-40to80_TuneCP5_13p6TeV_pythia8/Run3Summer22EENanoAODv11-126X_mcRun3_2022_realistic_postEE_v1-v2/NANOAODSIM
- nanoAOD v11 self documentation: https://cms-nanoaod-integration.web.cern.ch/autoDoc/NanoAODv11/2022postEE/doc_WZ_TuneCP5_13p6TeV_pythia8_Run3Summer22EENanoAODv11-126X_mcRun3_2022_realistic_postEE_v1-v1.html
Solves #23 (closed) and #25 (closed).
Edited by Jan Lukas Spah