Skip to content

Fix RD V0ll lines, OS lines were just a copy of SS lines

Rate change from local test:

rate (before) rate (after) difference difference (%)
Hlt2RD_BdToKSMuE_DD 94.883 67.7736 -27.1094 -28.5714
Hlt2RD_BuToKSPipMuE_DD 27.1094 67.7736 40.6641 150
Hlt2RD_BdToKSEE_DD 13.5547 54.2188 40.6641 300
Hlt2RD_BuToKSPipEE_DD 27.1094 40.6641 13.5547 50
Hlt2RD_BuToKSPipMuE_LL 13.5547 27.1094 13.5547 100
Hlt2RD_LbToLEE_DD 13.5547 27.1094 13.5547 100
Hlt2RD_LbToLMuE_LL 0 27.1094 27.1094 inf
Hlt2RD_BuToKSPipMuMu_DD 13.5547 0 -13.5547 -100

[skip ci] Follow up on !4504 (merged)

Basically we had here only SS lines now.

You can run locally

from copy import deepcopy

B2V0ll_Selections = {
    "dimuons": {
        "pidmu_muon_min": 0.0,
        "vchi2pdof_max": 9.0,
        "am_max": 5500.0 ,
        "pt_muon_min": 500.0 ,
    },
    "dielectrons": {
        "pid_e_min": 0.0,
        "vfaspfchi2ndof_max": 9.0,
        "am_max": 5500.0 ,
        "pt_e_min": 500 ,
        "p_e_min": 3000.0 ,
        "ipchi2_e_min": 12.0,
        "track_types": ["long", "upstream"],
        "combination_policy": "at_least_one_long",
        "acceptance_cut": True,
    },
}

for dilepton in ["dimuons", "muonelectrons"]:
    B2V0ll_Selections[f"{dilepton}_SS"] = deepcopy(B2V0ll_Selections[dilepton])
    B2V0ll_Selections[f"{dilepton}_SS"]["same_sign"] = True

# Different definition for electrons
B2V0ll_Selections["dielectrons_SS"] = deepcopy(B2V0ll_Selections["dielectrons"])
B2V0ll_Selections["dielectrons_SS"]["opposite_sign"] = False

print("dimuons: \t\t", B2V0ll_Selections["dimuons"])
print("dimuons_SS: \t", B2V0ll_Selections["dimuons_SS"])

print("dielectrons: \t\t", B2V0ll_Selections["dielectrons"])
print("dielectrons_SS: \t", B2V0ll_Selections["dielectrons_SS"])

once with and once without the deepcopy function as python is not doing a copy but a reference the way it is written here.

Edited by Fionn Caitlin Ros Bishop

Merge request reports

Loading