New reset functions in madminer.delphes
@@ -405,6 +405,17 @@ class DelphesProcessor:
self.cuts.append(definition)
self.cuts_default_pass.append(pass_if_not_parsed)
+ def reset_observables(self):
+ """ Resets all observables. """
+ self.observables = OrderedDict()
+ self.observables_required = OrderedDict()
+ self.observables_defaults = OrderedDict()
+
+ def reset_cuts(self):
+ """ Resets all cuts. """
+ self.cuts = []
+ self.cuts_default_pass = []
+
def analyse_delphes_samples(self, delete_delphes_files=False):
"""
Main function that parses the Delphes samples (ROOT files), checks acceptance and cuts, and extracts
