Skip to content

B2OC: tuning Dstar and phi builder (shifters please ignore)

Linxuan Zhu requested to merge lzhu_2024_patches into 2024-patches-b2oc-upgrade

Changed the Dstar, phi2kk, and four_body builder in builders/d_builder.py and builders/basic_builder.py. Split BdToDstpDstmPhi line into four lines, and modified make_b2ddh in b_to_ddh_standalone.py.

There is still too many candidates issue for Hlt2B2OC_BdToDstpDstmPhi_DstpToD0Pi_D0ToKPiPiPi_D0ToKPi line The warning says

B2OCB2XCombiner_71cf5491 WARNING Suppressing message: 'Too many candidates. Stopping the combination.' which means the large nCandidate issue for phi and Dstar builder is removed, now we have large nCandidate issue for b builder.

The rate for the four BdToDstpDstmPhi lines is

   LAZY_AND: Hlt2B2OC_BuToDstDK_DstToD0Pi_D0ToKPiOrKPiPiPi_DToHHHDecisionWithOutput         #=146344  Sum=4           Eff=|(0.002733286 +- 0.00136662)%|
   LAZY_AND: Hlt2B2OC_BdToDstpDstmPhi_DstpToD0Pi_D0ToKPiPiPi_D0ToKPiDecisionWithOutput             #=146344  Sum=1           Eff=|(0.0006833215 +- 0.000683319)%|
   LAZY_AND: Hlt2B2OC_BdToDstpDstmPhi_DstpToD0Pi_D0ToKPiPiPi_D0ToKPiPiPiDecisionWithOutput         #=146344  Sum=0           Eff=|( 0.000000 +- 0.00000 )%|
   LAZY_AND: Hlt2B2OC_BdToDstpDstmPhi_DstpToD0Pi_D0ToKPi_D0ToKPiDecisionWithOutput                 #=146344  Sum=0           Eff=|( 0.000000 +- 0.00000 )%|
   LAZY_AND: Hlt2B2OC_BdToDstpDstmPhi_DstpToD0Pi_D0ToKPi_D0ToKPiPiPiDecisionWithOutput             #=146344  Sum=0           Eff=|( 0.000000 +- 0.00000 )%|

The builders still need to be tuned. We further require ipchi2 of the final particles apart from the soft pion from Dstar to be larger than 6. The efficiency loss based on Run2 MC sample Bu To Dstp (D0 to K pi pi pi) Dm Kp

root [3] chain->GetEntries()
(long long) 570189
root [4] chain->GetEntries("D1_D_K_IPCHI2_OWNPV>6&&D1_D_pi1_IPCHI2_OWNPV>6&&D1_D_pi2_IPCHI2_OWNPV>6&&D1_D_pi3_IPCHI2_OWNPV>6&&D2_K_IPCHI2_OWNPV>6&&D2_pi1_IPCHI2_OWNPV>6&&D2_pi2_IPCHI2_OWNPV>6&&Bach_IPCHI2_OWNPV>6")
(long long) 548339
root [5] 548339./570189.
(double) 0.96167937

The clone angle cuts are also applied to phi2kk, three_body, and four_body builders. Finally, the too many multiple candidates warning are gone. And the rates are

   LAZY_AND: Hlt2B2OC_BdToDstpDstmPhi_DstpToD0Pi_D0ToKPiPiPi_D0ToKPiDecisionWithOutput             #=146344  Sum=1           Eff=|(0.0006833215 +- 0.000683319)%|
   LAZY_AND: Hlt2B2OC_BdToDstpDstmPhi_DstpToD0Pi_D0ToKPiPiPi_D0ToKPiPiPiDecisionWithOutput         #=146344  Sum=0           Eff=|( 0.000000 +- 0.00000 )%|
   LAZY_AND: Hlt2B2OC_BdToDstpDstmPhi_DstpToD0Pi_D0ToKPi_D0ToKPiDecisionWithOutput                 #=146344  Sum=0           Eff=|( 0.000000 +- 0.00000 )%|
   LAZY_AND: Hlt2B2OC_BdToDstpDstmPhi_DstpToD0Pi_D0ToKPi_D0ToKPiPiPiDecisionWithOutput             #=146344  Sum=0           Eff=|( 0.000000 +- 0.00000 )%|
   LAZY_AND: Hlt2B2OC_BuToDstDK_DstToD0Pi_D0ToKPiOrKPiPiPi_DToHHHDecisionWithOutput                #=146344  Sum=4           Eff=|(0.002733286 +- 0.00136662)%|
Edited by Linxuan Zhu

Merge request reports