Functors for tag-and-probe tracking efficiency

Functors to perform the matching between the tag track and the long track. Functors are tested in DaVinci!1407 (merged)

To do:

  • Implement the functionality of the MuonProbeToLongMatcher, but with optional cuts on the matching fractions.
  • Write Functors to return the matching fraction of the best matching track, per detector type
  • Write Functor to return the best-matched track, to access its properties via Functor composition
  • Deal with LHCb::Particles vs LHCb::ProtoParticles as input.

Example usage:

pions = make_long_pions()

all_vars = FunctorCollection({
   "VPOVERLAP": F.VPLHCBIDOVERLAP(Particles = pions),                                                                                                                                                       
   "UTOVERLAP": F.UTLHCBIDOVERLAP(Particles = pions),                                                                                                                                                       
   "FTOVERLAP": F.FTLHCBIDOVERLAP(Particles = pions, FTFrac = 0.6, MuonFrac = 0.4),                                                                                                                                                       
   "MUONOVERLAP": F.MUONLHCBIDOVERLAP(Particles = pions, UseMuonNeighbours = False),                                                                                                                                                   
   "MUONOVERLAPWITHNEIGHBOURS": F.MUONLHCBIDOVERLAPWITHNEIGHBOURS(Particles = pions),                                                                                                                       
   "PTOFBESTOVERLAP" : F.PT @ F.BESTLHCBIDOVERLAP(Particles = pions),
...
})

@rowina @peilian

Edited by Felipe Cesario Laterza Lopes

Merge request reports

Loading