Skip to content
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

HLT menu updates 74X #8071

Merged
merged 3 commits into from Mar 16, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 23 additions & 0 deletions HLTrigger/Configuration/python/CustomConfigs.py
Expand Up @@ -115,3 +115,26 @@ def L1REPACK(process):
process=L1T(process)

return process


def customizeHLTforCMSSW(process):
# Apply cff-based customisations to a process
# Can't use process.load(customFile) as it only loads additional objects into the process
# One can not remove any module this way, but modify it!

class Module(object):
pass
locals = Module()

globals = process.__dict__

import imp
customFile = imp.find_module('HLTrigger/Configuration/customizeHLTforCMSSW')[1]
# import pkgutil
# customFile = pkgutil.get_loader('HLTrigger/Configuration/customizeHLTforCMSSW').filename

# execfile(customFile, globals, locals.__dict__)
execfile(customFile, globals)
process.extend(locals)

return process