Skip to content
Snippets Groups Projects

B2OC branch to collect updates for Hlt2 2024

Merged Alessandro Bertolin requested to merge b2oc_upgrade into master
Compare and
27 files
+ 6841
1867
Compare changes
  • Side-by-side
  • Inline
Files
27
@@ -8,73 +8,104 @@
# granted to it by virtue of its status as an Intergovernmental Organization #
# or submit itself to any jurisdiction. #
###############################################################################
"""Example option on how to test on any specific lines in B2OC.
"""Example option on how to test on any specific Hlt2 line in B2OC.
Run like any other options file:
# Run like any other options file with:
./Moore/run gaudirun.py hlt2_b2oc_example.py
# To run on a specific line, BdToDsmK_DsmToKpKmPim in this example, that
# is booked by unique function in hlt2_b2oc.py:
from Hlt2Conf.lines.b_to_open_charm.hlt2_b2oc import BdToDsmK_DsmToKpKmPim
all_lines = {}
from Hlt2Conf.lines.b_to_open_charm.hlt2_b2oc import make_hlt2_lines
default_lines = [
'BdToDsmK_DsmToKpKmPim',
]
extra_config = {
'flavour_tagging': [
'BdToDsmK_DsmToKpKmPim',
]
}
make_hlt2_lines(
line_dict=all_lines,
all_lines=default_lines,
extra_config=extra_config)
"""
from Moore import options, run_moore
from RecoConf.global_tools import stateProvider_with_simplified_geom
# TODO stateProvider_with_simplified_geom must go away from option files
from RecoConf.reconstruction_objects import reconstruction
###############################################################################
# B2OC: configure which lines to test
# configure which lines to test
###############################################################################
# Run on ALL B2OC lines:
#from Hlt2Conf.lines.b_to_open_charm import all_lines
# Run on any specific line:
#from Hlt2Conf.lines.b_to_open_charm.hlt2_b2oc import BdToDsmK_DsmToHHH_Test_hlt2_line
# Book lines with generic functions
all_lines = {}
from Hlt2Conf.lines.b_to_open_charm.hlt2_b2oc import make_default_hlt2_lines
default_lines = [
'BdToDsmK_DsmToHHH',
]
make_default_hlt2_lines(line_dict=all_lines, default_lines=default_lines)
# Run on ALL B2OC lines
from Hlt2Conf.lines.b_to_open_charm import all_lines
###############################################################################
# configure input data set
###############################################################################
# TIP: to go from a BK path to a root-URL
# 1) lb-run LHCbDirac dirac-bookkeeping-get-files -B <BK path> # to get list of LFN's
# 2) lb-run LHCbDirac dirac-dms-lfn-accessURL --Protocol="xroot" -l <an LFN> # to get root-URL
# List of available upgrade MC is on
# https://twiki.cern.ch/twiki/bin/viewauth/LHCbPhysics/B2OCUpgrade#Upgrade_MC_event_types_available
# Some locations are listed in
# https://gitlab.cern.ch/lhcb-b2oc/b2ocupgrade/-/blob/master/Moore_input_files/
# Uncomment the following lines to configure input data from grid locations
#input_files = [
# # MinBias 30000000 AFTER Hlt1
# 'root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/LDST/00075219/0000/00075219_00000001_1.ldst',
#]
#options.input_files = input_files
#options.input_type = 'ROOT'
#options.simulation = True
#options.data_type = 'Upgrade'
#options.dddb_tag = 'dddb-20171126'
#options.conddb_tag = 'sim-20171127-vc-md100'
# Configure input data from testfileDB
# Comment the next line if configure input data above
options.set_input_and_conds_from_testfiledb('upgrade_minbias_hlt1_filtered')
# When running from Upgrade MC,
# must use the post-juggling locations of the raw event
options.input_raw_format = 4.3
input_files = [
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_0.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_1.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_2.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_3.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_4.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_5.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_6.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_7.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_8.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_9.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_10.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_11.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_12.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_13.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_14.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_15.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_16.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_17.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_18.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_19.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_20.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_21.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_22.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_23.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_24.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_25.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_26.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_27.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_28.dst',
'root://eoslhcb.cern.ch//eos/lhcb/wg/rta/WP3/bandwidth_division/Beam6800GeV-expected-2024-MagDown-nu7.6/hlt1_filtered/30000000/input_29.dst',
]
options.input_files = input_files
options.input_type = 'ROOT'
options.simulation = True
options.data_type = 'Upgrade'
options.dddb_tag = 'dddb-20231017'
options.conddb_tag = 'sim-20231017-vc-md100'
# Set a reasonable number of events
options.evt_max = 100
###############################################################################
# configure output files
###############################################################################
# Write the output file
options.output_file = 'hlt2_b2oc_lines.dst'
options.output_type = 'ROOT'
options.output_manifest_file = "hlt2_b2oc_example.tck.json"
options.output_manifest_file = "hlt2_b2oc_lines.tck.json"
# Hlt2 monitoring histos
options.histo_file = 'hlt2_b2oc_monitoring.root'
###############################################################################
# run Moore
###############################################################################
def make_lines():
@@ -83,4 +114,6 @@ def make_lines():
public_tools = [stateProvider_with_simplified_geom()]
config = run_moore(options, make_lines, public_tools)
with reconstruction.bind(from_file=False):
config = run_moore(
options, make_lines, public_tools, exclude_incompatible=True)
Loading