Skip to content
Snippets Groups Projects
Commit c6f49600 authored by Davide Fazzini's avatar Davide Fazzini
Browse files

adding test for LHCbIntegration Moore-DaVinci chain

parent 989e95ad
No related branches found
No related tags found
1 merge request!743Option file for the LHCbIntegration Moore-DaVinci chain
Pipeline #4438308 passed
###############################################################################
# (c) Copyright 2022 CERN for the benefit of the LHCb Collaboration #
# #
# This software is distributed under the terms of the GNU General Public #
# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". #
# #
# In applying this licence, CERN does not waive the privileges and immunities #
# granted to it by virtue of its status as an Intergovernmental Organization #
# or submit itself to any jurisdiction. #
###############################################################################
"""
Test for checking the correct processing of Hlt2 .dst file where packed reco
objects are persisted by means of a pass through line.
"""
from FunTuple import FunTuple_Particles as Funtuple
from FunTuple.functorcollections import Kinematics
from PyConf.components import force_location
from DaVinci import Options, make_config
from DaVinci.algorithms import add_filter
def main(options: Options):
bs2jpsiphi_line = "Hlt2Generic_Bs0ToJpsiPhi_JPsiToMupMum_Line"
bs2jpsiphi_data = force_location(
f"/Event/HLT2/{bs2jpsiphi_line}/Particles")
fields = {
'Bs': "[B_s0 -> (J/psi(1S) -> mu+ mu-) (phi(1020) -> K+ K-)]CC",
'Jpsi': "[B_s0 -> ^(J/psi(1S) -> mu+ mu-) (phi(1020) -> K+ K-)]CC",
'Phi': "[B_s0 -> (J/psi(1S) -> mu+ mu-) ^(phi(1020) -> K+ K-)]CC"
}
#FunTuple: make functor collection from the imported functor library Kinematic
variables_all = Kinematics()
#FunTuple: associate functor collections to branch name
variables = {
'ALL': variables_all, #adds variables to all branches
}
filter_bs = add_filter(options, "HDRFilter_Bs2JpsiPhi",
f"HLT_PASS('{bs2jpsiphi_line}')")
tuple_bs = Funtuple(
name="Bs2JpsiPhi_Tuple",
tuple_name="DecayTree",
fields=fields,
variables=variables,
inputs=bs2jpsiphi_data)
algs = {
"Bs2JpsiPhi": [filter_bs, tuple_bs],
}
return make_config(options, algs)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment