Skip to content
Snippets Groups Projects

Initial lbexec support

Merged Chris Burr requested to merge cburr/lbexec into master
31 files
+ 140
77
Compare changes
  • Side-by-side
  • Inline
Files
31
@@ -10,9 +10,6 @@
###############################################################################
"""
Example of a DaVinci job filling all available functors. This is obviously a stress test and not realistic.
This example is meant to be run with
$ ./run davinci --inputfiledb Spruce_all_lines_dst Phys/DaVinci/options/DaVinciDB-Example.yaml --joboptfile DaVinciExamples/python/DaVinciExamples/tupling/option_davinci_tupling_from_spruce.yaml --user_algorithms DaVinciExamples/python/DaVinciExamples/tupling/example-tupling-AllFunctors:alg_config --evt_max 100 |& cat | tee log
"""
__author__ = "P. Koppenburg"
+2
__date__ = "2021-11-23"
@@ -27,7 +24,7 @@ from DecayTreeFitter import DTFAlg
from DaVinci.truth_matching import configured_MCTruthAndBkgCatAlg
from PyConf.Algorithms import PrintDecayTree
from DaVinci import options
from DaVinci import make_config
#
# Definition of strucing line
@@ -39,9 +36,6 @@ _basic = 'basic'
_composite = 'composite'
_toplevel = 'toplevel'
options.ntuple_file = "DV_example_allFunctors_ntp.root"
options.histo_file = "DV_example_allFunctors_his.root"
def all_variables(pvs, DTFR, mctruth, ptype):
"""
@@ -255,7 +249,7 @@ def event_variables(PVs, ODIN, decreports):
return evt_vars
def alg_config():
def alg_config(options):
"""
Algorithm configuration function called from the comad line
"""
@@ -312,7 +306,8 @@ def alg_config():
#
# Sprucing filter
#
my_filter = add_filter("HDRFilter_B0DsK", f"HLT_PASS('{bd2dsk_line}')")
my_filter = add_filter(options, "HDRFilter_B0DsK",
f"HLT_PASS('{bd2dsk_line}')")
#
# FunTuple
@@ -329,6 +324,5 @@ def alg_config():
#
# Algorithms to be run
#
return {
"UserAlgs": [PrintDecayTree(Input=bd2dsk_data), my_filter, my_tuple]
}, []
return make_config(
options, [PrintDecayTree(Input=bd2dsk_data), my_filter, my_tuple])
Loading