Skip to content

Draft: Add PP2MCP table for redoing neutral associatio

Yingrui Hou requested to merge add_table_to_CaloFuture2MCTool into 2024-patches

When checking the MC of B0->KstGamma (2024-expected, nu=4.3), a fraction of signal photons are matched to its mother or grand(grand) mother mc particle.image

These photons are mainly mismatched to B0/B*/b. After checking the NeutralPP2MCPtable, it's understood that the B0/B*/b can have the largest contribution (raw weight value in NeutralPP2MCP table) to the Calo Clusters since this is the total contribution of its daughters. A specific weight estimator for neutral particles was implemented since Run1/2, and migrated to the CaloFuture2MCTool, this tool should work with MCTRUTH = MCTruthAndBkgCat(data, name="MCTruthAndBkgCat_coll", redo_neutral_assoc=True). However, when running redo_neutral_assoc without PP2MCP table, there are warning messages, and photon truth-matching is skipped:

MCTruthAndBkgCat_coll.Background... SUCCESS Exceptions/Errors/Warnings/Infos Statistics : 0/0/4/0
MCTruthAndBkgCat_coll.Background... SUCCESS  #WARNINGS   = 1        Message = ' ... CaloFutureCluster  will be re-processed (require full DST)'
MCTruthAndBkgCat_coll.Background... SUCCESS  #WARNINGS   = 1        Message = ' ... assume an identical reconstruction version  '
MCTruthAndBkgCat_coll.Background... SUCCESS  #WARNINGS   = 1        Message = ' ... try using Hypo->Cluster reference  '
MCTruthAndBkgCat_coll.Background... SUCCESS  #WARNINGS   = 1        Message = 'No Hypo2MC link at '/Event/HLT2/Rec/Calo/Photons' '

In Run1/2, the link of CaloHyp2 to MCParticles is needed to run this Calo MC tool, while in Run3 this information is saved in the NeutralPP2MCP table. So the location of NeutralPP2MCP is added to use the CaloFuture2MCTool to redo the neutral association for better truth-matching results.

A comparison was made to check the effect ofredo_neutral_assoc=True+PP2MCP table.

w/ PP2MCP (this MR) w/o PP2MCP (2024-pathces)
redo_neutral_assoc image image
!redo_neutral_assoc image image

Merge request reports