-
Notifications
You must be signed in to change notification settings - Fork 12
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
Vbf datacards systs tt exploration #35
Changes from all commits
5e4cbba
251d62b
12568c0
bcf5394
034e792
147bc94
db53dd6
ec68c72
de9f3a3
dfe4880
82001a9
e6b2642
c3acfea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -387,6 +387,8 @@ def process(self, events: ak.Array): | |
) | ||
|
||
skimmed_events["nGoodVBFJets"] = np.array(ak.sum(vbf_jet_mask, axis=1)) | ||
# Temp | ||
skimmed_events["gen_weights"] = gen_weights | ||
|
||
# VBF ak4 Jet vars (pt, eta, phi, M, nGoodJets) | ||
# if self._vbf_search: | ||
|
@@ -452,7 +454,7 @@ def process(self, events: ak.Array): | |
msds = jmsr_shifted_vars["msoftdrop"][shift] | ||
pnetms = jmsr_shifted_vars["particleNet_mass"][shift] | ||
|
||
if self._save_all: | ||
if self._save_all & False: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we still want this? |
||
cut = ( | ||
(pnetms[~bb_mask] >= self.preselection["VVparticleNet_mass"][0]) | ||
+ (msds[~bb_mask] >= self.preselection["VVparticleNet_mass"][0]) | ||
|
@@ -634,6 +636,14 @@ def process(self, events: ak.Array): | |
|
||
# TODO: need to be careful about the sum of gen weights used for the LHE/QCDScale uncertainties | ||
logger.debug("weights ", weights._weights.keys()) | ||
|
||
# TEMP: save each individual weight | ||
skimmed_events["L1EcalPrefiring"] = ak.to_numpy(events.L1PreFiringWeight.Nom) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this not be saved from the "single_weight" for loop below? |
||
|
||
for key in weights._weights.keys(): | ||
print(f"single_weight_{key}") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the print() can be removed here. |
||
skimmed_events[f"single_weight_{key}"] = weights.partial_weight([key]) | ||
|
||
for systematic in systematics: | ||
if systematic in weights.variations: | ||
weight = weights.weight(modifier=systematic) | ||
|
@@ -1014,7 +1024,7 @@ def getVBFVars( | |
# int list representing the number of passing vbf jets per event | ||
vbfVars[f"nGoodVBFJets"] = n_good_vbf_jets_sorted_pt.to_numpy() | ||
|
||
adding_bdt_vars = True | ||
adding_bdt_vars = False | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I changed this to false - can you confirm that we don't need these in the processor since they can be added in postprocessing? |
||
if adding_bdt_vars == True: | ||
# Adapted from HIG-20-005 ggF_Killer 6.2.2 | ||
# https://coffeateam.github.io/coffea/api/coffea.nanoevents.methods.vector.PtEtaPhiMLorentzVector.html | ||
|
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.
Will this not be saved from the "single_weight" for loop below?
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 think this branch has a lot of bad "quick fixes" for saving the weight information which should not be kept otherwise. So would we just erase the pull request?
Yea, that part is redundant I think.