-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add L1Nano compatibility and first configs for 14x release validation #58
Conversation
@@ -24,7 +24,13 @@ def _transform_key(self, raw_key: str, obj: str): | |||
NTuple branch names for quality and region | |||
to "quality"/"region". | |||
""" | |||
key = raw_key.removeprefix(obj).lower() | |||
## nano | |||
if ("_" in raw_key) and ("dr_0" not in raw_key): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In theory this could be dr_1
as well https://github.com/cms-l1-dpg/Phase2-L1MenuTools/blob/0ca5cf27473788010c3186ab42384382ded5d994/menu_tools/caching/cache_objects.py#L25C9-L25C64
@@ -63,7 +63,12 @@ def get_branches(ntuple_path: str, tree: str, obj: str): | |||
else: | |||
prefix = "L1PhaseII/" | |||
|
|||
obj_branches = [x.removeprefix(prefix + obj) for x in all_branches if obj in x] | |||
## nano |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would leave the indentation level as before (i.e. not put this code in the with
block) as there is no operation here anymore requiring the file to be opened.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in #65
…ano, add matching eff vs eta for taus
Tau-Jet-MET updates
Superseded by #65 |
_
in the branch names -> added some exceptions for backward compatibility with the menu ntuples