Skip to content
Snippets Groups Projects

Make "process" a required input and configure pyconf functions globally once with user input

Merged Abhijit Mathad requested to merge AM_process into master
2 files
+ 34
17
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -8,6 +8,7 @@
# granted to it by virtue of its status as an Intergovernmental Organization #
# or submit itself to any jurisdiction. #
###############################################################################
from contextlib import contextmanager
from enum import Enum
from typing import Optional
@@ -34,3 +35,12 @@ class Options(DefaultOptions):
# For xgen files we need to unpack only mc particles and vertices
# Needed until unpacking will become functional
unpack_only_mc: bool = False
@contextmanager
def apply_binds(self):
from DaVinci.reco_objects import reconstruction, upfront_reconstruction
reconstruction.global_bind(process=self.process)
upfront_reconstruction.global_bind(process=self.process)
with super().apply_binds():
yield
Loading