-
Notifications
You must be signed in to change notification settings - Fork 37
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
doc: add instruction & feat: JEC/jetveto from jsonpog #106
Conversation
- doc: add instructions of the CommFW, remove contents from readme - doc: add api information - env: update missing module -
- add plots for plot description - more info in docstring
flatCorrFactor = corr.evaluate(*values) | ||
corrFactor = ak.unflatten(flatCorrFactor, nj) | ||
nocorrjet["EventID"] = ak.broadcast_arrays(events.event, nocorrjet.pt)[0] | ||
nocorrjet["Genpt"] = events.GenJet[nocorrjet.genJetIdx].pt |
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.
This should only run for MC (I think):
nocorrjet["Genpt"] = events.GenJet[nocorrjet.genJetIdx].pt | |
if "GenJet" in events.fields: nocorrjet["Genpt"] = events.GenJet[nocorrjet.genJetIdx].pt |
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.
(maybe I was wrong here, but I got a mistake when running this PR on Summer22 data): AttributeError: no field named 'GenJet'
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.
Hi @philippgadow thanks for the suggestion, you are right, I need to fix this :p I was only test on MC and this does not show error messages
also I saw the BTA producer workflows giving an error (also in the CI):
I fixed it locally with |
Hi @philippgadow indeed this is because introduce the year in the correction configuration, to fix it, we need to change the @@ -73,7 +73,14 @@ class NanoProcessor(processor.ProcessorABC):
if "JME" in self.SF_map.keys() or "jetveto" in self.SF_map.keys():
shifts = JME_shifts(
- shifts, self.SF_map, events, self._campaign, isRealData, False, True
+ shifts,
+ self.SF_map,
+ events,
+ self._year,
+ self._campaign,
+ isRealData,
+ False,
+ True,
) |
@@ -106,6 +106,7 @@ | |||
"--campaign", | |||
help="campaign name (same as the campaign in runner.py)", | |||
default=None, | |||
require=True, |
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.
require=True, | |
required=True, |
Thanks :) - I just realised that I wasn't really fixing the issue and have modified the workflow, it's running now. |
add documentation for commissioning