Skip to content
Snippets Groups Projects

Update Hlt1/Hlt2 examples for postTS

Merged Luke Grazette requested to merge lugrazet-update-hlt1example into 2024-patches
Compare and
11 files
+ 164
129
Compare changes
  • Side-by-side
  • Inline
Files
11
@@ -18,36 +18,23 @@ Then you'll be able to run it with
Moore/run gaudirun.py Moore/hlt1_pp_expected_24_without_UT.py
or
lb-run -c <a detdesc binaryTag> Moore/<latest 2024-patches release> gaudirun.py Moore/hlt1_pp_expected_24_without_UT.py
Please note that until Moore!3219 is merged, HLT1 flagging mode is
not possible on the master branch - this HLT1 filters! If you notice
that !3219 has been merged, and no-one has yet changed this tutorial
to use it - please feel free to do so!
"""
from DDDB.CheckDD4Hep import UseDD4Hep
if UseDD4Hep:
raise RuntimeError(
"Sorry, you'll need a detdesc stack to run over this MC. Please see https://lhcbdoc.web.cern.ch/lhcbdoc/moore/master/tutorials/running_over_mc.html#switching-to-a-detdesc-compatible-platform"
)
# https://mattermost.web.cern.ch/lhcb/pl/tz5eowsiytrpfxi3br8oy1k3xy
raise RuntimeError("""
"Sorry, you'll need a detdesc stack to run over this MC. Please see https://lhcbdoc.web.cern.ch/lhcbdoc/moore/master/tutorials/running_over_mc.html#switching-to-a-detdesc-compatible-platform".
DD4HEP is suggested to be used on '2024.Q1.2' MC onwards. This input is 'expected-2024' and thus not suitable.
""")
# This output is used in Hlt/Hlt2Conf/options/hlt2_pp_expected_24_without_UT.py,
# if this script gets updated to use 2024.Q1.2 MC as input than that comment can be removed too.
from Moore.options import options
from Moore.config import run_allen
from RecoConf.hlt1_allen import allen_gaudi_config as allen_sequence
from Moore.production import hlt1
# Input-specific options
options.conddb_tag = "sim-20231017-vc-md100"
options.dddb_tag = "dddb-20231017"
options.input_files = [
# 'LFN:/lhcb/MC/Dev/DIGI/00206084/0000/00206084_00000004_1.digi',
# Note: lhcb GRID proxy will be required to access this file
# lambda_b to lambda_c(2593) (->lambda_c pi pi ) mu mu
# with HltEfficiencyChecker use decay = "${Lamdab}[Lambda_b0 => ( Lambda_c(2595)+ => ( Lambda_c+ => ${pplus}p+ ${Kminus}K- ${piplus1}pi+ ) ${piplus0}pi+ ${piminus0}pi- ) ${mu}mu- nu_mu~ ]CC"
"root://xrootd-lhcb.cr.cnaf.infn.it:1094//storage/gpfs_lhcb/disk/lhcb/MC/Dev/DIGI/00206084/0000/00206084_00000004_1.digi"
]
options.input_type = "ROOT"
options.input_raw_format = 0.5
options.simulation = True
options.data_type = "Upgrade"
# Arbitrary example input
options.set_input_and_conds_from_testfiledb('expected_2024_BsToJpsiPhi_xdigi')
# Output options
options.output_file = 'hlt1_output.dst'
@@ -55,7 +42,6 @@ options.output_type = 'ROOT'
# Misc options
options.scheduler_legacy_mode = False
options.evt_max = 1000
options.evt_max = 50
with allen_sequence.bind(sequence="hlt1_pp_matching_no_ut_1000KHz"):
run_allen(options)
hlt1(options, "--sequence=hlt1_pp_matching_no_ut_1000KHz", "--flagging")
Loading