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

CMS - add creation of NanoAOD content documentation to NanoAOD scripts #213

Open
katilp opened this issue Nov 8, 2023 · 1 comment
Open

Comments

@katilp
Copy link
Member

katilp commented Nov 8, 2023

Add a step to generate the NanoAOD automated docs for NanoAOD datasets
Include it in the scripts for

@jmhogan Can you point to the script to generate the docs? Found it:
This: https://github.com/cms-sw/cmssw/blob/master/PhysicsTools/NanoAOD/test/inspectNanoFile.py
Usage:

python3 inspectNanoFile.py --doc <name>.html <input nano root file>

and in json

python3 inspectNanoFile.py --json <name>.html  <input nano root file>

(NB the json contains also numerical values for the contents of the input file, and the HTML only the documentation)

Example:
doc.json

@katilp katilp added this to To do in CMS-2016-pp-release Nov 8, 2023
@katilp
Copy link
Member Author

katilp commented Dec 7, 2023

This works only for PFNano and normal Nano.

For NanoAODRun1 this is provided
https://github.com/cms-opendata-analyses/NanoAODRun1ProducerTool/blob/main/tools/documentation.py

and works:

[kati@lxplus931 ~]$ python3 documentation.py --doc test.html /eos/opendata/cms/derived-data/NanoAODRun1/01-Jul-22/Run2010A_MuOnia/FD8E1400-3DAD-490F-8559-40CF80AFD3CE.root
HTML documentation saved to test.html

(plain lxplus, new OS)

@katilp katilp moved this from To do to In progress in CMS-2016-pp-release Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant