Improve rd multilepton lines
Starting with a list of things to improve:
-
Add intermediates to B->4mu line same as for B2EEMuMu, generic four lepton builder based on two dilepton builders -
Add intermediates for B->4e line more difficult, it creates electron candidates very simple while dielectron objects (which are used in other lines e.g. B2EEMuMu) are way more complicated, is this intentional and the difference understood? Can we change also B24e to align with the other one? - This makes tupling simpler and control plots/cross checks
-
Change BPVfunctors in builder withOWNPV -
Remove isolation variables, tagging_particlesforpersist_reco=Truelines as these are not needed -
Think about TBCs in rdbuilder_thor.py(more of a general thing), e.g.trchi2dof_max,trghostprob_max -
Rename make_b_4lkeywordMAXDOCAwithMAXSDOCA -
Add sprucing (?), see comment here -
Consistent naming of keyword arguments, e.g. here and here -
Combine make_b_4l,make_b_2mu2eandmake_generic_4lepton_LLPinto one builder function -
Reconsider Kaon PID cuts -
Consider renaming Nmu_builder.pytob_to_multilepton_builder.pyto be consistent with other builder files and because it is not only "n times mu" what is build here -
Consider to rename lines e.g. LLlike here as there are no not long muon lines it could be confused with -
Why min_PID_Mu=1 at one point and min_PID_Mu=0 on another -
Why min_PID_E=3 at one point and min_PID_E=2 on another -
MAXSDOCAcut has unit in most other use cases throughout Moore, is this intentional that here it has no explicit unit? -
Add downstream LLP lines with various topologies LLD, LDD, DDD -
Add all types of tracks to make_rd_detached_dielectronin MuMuEE. Fromtrack_types="long"totrack_types="all".
Tests
Time taken:
rd-devel-march25:
time: 2:23:22.02 total, compression: 38.02%, 54.7 MiB => 20.8 MiB
B2multilepton:
time: 1:56:47.78 total, compression: 38.06%, 54.7 MiB => 20.8 MiB
Rates of this MR comparing against rd-devel-march25 with data (100_000 events):
| rate (before) | rate (after) | difference | difference (%) | |
|---|---|---|---|---|
| Hlt2RD_BToHHGamma_Incl_Full | 541.671 | 541.671 | 0 | 0 |
| Hlt2RD_BToHHGamma_GammaToEELL_Incl_Full | 528.774 | 528.774 | 0 | 0 |
| Hlt2RD_BToHHHGamma_GammaToEEDD_Incl_Full | 386.908 | 386.908 | 0 | 0 |
| Hlt2RD_BToHHHGamma_Incl_Full | 206.351 | 206.351 | 0 | 0 |
| Hlt2RD_BToHHHGamma_GammaToEELL_Incl_Full | 206.351 | 206.351 | 0 | 0 |
| Hlt2RD_BToHHGamma_GammaToEEDD_Incl_Full | 180.557 | 180.557 | 0 | 0 |
| Hlt2RD_DiMuonSoft_Full | 154.763 | 154.763 | 0 | 0 |
| Hlt2RD_DiElectronSoft_Full | 77.3815 | 77.3815 | 0 | 0 |
| Hlt2RD_BTo2LLP_LLPToEE_LL | nan | 12.8969 | nan | nan |
| Hlt2RD_BTo3LLP_LLPToMuMu_LLL | nan | 0 | nan | nan |
| Hlt2RD_BTo2LLP_LLPToMuMu_DD | nan | 0 | nan | nan |
| Hlt2RD_BuTo2LLPKp_LLPToEE_LL | nan | 0 | nan | nan |
| Hlt2RD_BuTo2LLPKp_LLPToMuMu_DD | nan | 0 | nan | nan |
| Hlt2RD_BuTo2LLPKp_LLPToMuMu_LL | nan | 0 | nan | nan |
| Hlt2RD_BuTo3LLPKp_LLPToEE_LLL | nan | 0 | nan | nan |
| Hlt2RD_BuTo3LLPKp_LLPToMuMu_LLL | nan | 0 | nan | nan |
| Hlt2RD_BTo3LLP_LLPToEE_LLL | nan | 0 | nan | nan |
| Hlt2RD_BTo2LLP_LLPToMuMu_LL | nan | 0 | nan | nan |
| Hlt2RD_Displaced4E_Incl | nan | 0 | nan | nan |
| Hlt2RD_Displaced4Mu_Incl | nan | 0 | nan | nan |
| Hlt2RD_DisplacedMuMuEE_Incl | nan | 0 | nan | nan |
Edited by Jan Peter Wagner