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

Make a schema for HcalNanoAOD #1

Open
DryRun opened this issue Feb 27, 2023 · 0 comments
Open

Make a schema for HcalNanoAOD #1

DryRun opened this issue Feb 27, 2023 · 0 comments

Comments

@DryRun
Copy link
Owner

DryRun commented Feb 27, 2023

The NanoAOD schema from coffea works OK for HcalNanoAOD, but throws a lot of warnings:

warnings.warn(
/afs/cern.ch/user/d/dryu/HCAL/test/hcalanalysis/venv/lib/python3.8/site-packages/coffea/nanoevents/schemas/nanoaod.py:193: RuntimeWarning: Missing cross-reference index for Electron_jetIdx => Jet
warnings.warn(
/afs/cern.ch/user/d/dryu/HCAL/test/hcalanalysis/venv/lib/python3.8/site-packages/coffea/nanoevents/schemas/nanoaod.py:193: RuntimeWarning: Missing cross-reference index for Electron_photonIdx => Photon
warnings.warn(
/afs/cern.ch/user/d/dryu/HCAL/test/hcalanalysis/venv/lib/python3.8/site-packages/coffea/nanoevents/schemas/nanoaod.py:193: RuntimeWarning: Missing cross-reference index for FatJet_subJetIdx1 => SubJet
...                    

The source is clear, HcalNano doesn't contain any physics objects. We should make an HcalNano-specific schema that doesn't try to load these objects. Further, the schema could handle common operations like repacking the branches split by TS (e.g. DigiHB_adc0/1/2/3/4/5/6/7) into a single object, subtracting the pedestal, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant