Skip to content

Draft: b2cc sprucing testcode modified for simulation

Xiaofan Hu requested to merge xihu/B2CC_Monitoring into master

When trying to test our spruce lines with MC (with @peilian), and found that if we have dst file written in HLT2, then in the spruce, we will get the error below:

  File "/auto/work/lipl/stack/Moore/Hlt/Moore/python/Moore/config.py", line 199, in report_writers_nodes
    packed_data) = persist_line_outputs(
  File "/auto/work/lipl/stack/LHCb/InstallArea/x86_64_v2-centos7-gcc11+detdesc-opt/python/PyConf/tonic.py", line 644, in configurable(persist_line_outputs)
    return wrapped(**kwargs)
  File "/auto/work/lipl/stack/Moore/Hlt/Moore/python/Moore/persistence/__init__.py", line 172, in persist_line_outputs
    protoparticle_relations += [r['ChargedPP2MC'], r['NeutralPP2MC']]
KeyError: 'ChargedPP2MC'

This can be fixed (thanks to @nskidmor) by using binds to force the Simulation argument of reconstruction in RecoConf.reco_objects_from_file and RecoConf.reco_objects_for_spruce to be True.

Edited by Peilian Li

Merge request reports