Skip to content
Snippets Groups Projects

WIP: fix MCLinking in TDR branch for LHCb::Tracks

Closed Renato Quagliani requested to merge TDR-rquaglia_fixhackMCLinking into TDR
1 file
+ 11
3
Compare changes
  • Side-by-side
  • Inline
@@ -6,6 +6,7 @@ from GaudiKernel.SystemOfUnits import mm
def PrUpgradeChecking(defTracks={}):
# match hits and tracks
log.warning("Run upgrade checkers.")
from Configurables import (UnpackMCParticle, UnpackMCVertex,
PrLHCbID2MCParticle)
# Check if VP is part of the list of detectors.
@@ -16,6 +17,8 @@ def PrUpgradeChecking(defTracks={}):
if 'VP' in LHCbApp().upgradeDetectors():
withVP = True
trackTypes = TrackSys().getProp("TrackTypes")
from Configurables import PrTrackConverter
if "Truth" in trackTypes:
truthSeq = GaudiSequencer("RecoTruthSeq")
truthSeq.Members = [UnpackMCParticle(), UnpackMCVertex()]
@@ -44,8 +47,9 @@ def PrUpgradeChecking(defTracks={}):
GaudiSequencer("CheckPatSeq").Members += [checker2]
PrChecker2("PrChecker2Fast").addTool(MCHybridFactory)
PrChecker2("PrChecker2Fast").Upgrade = True
PrChecker2("PrChecker2Fast").ForwardTracks = defTracks[
"ForwardFast"]["Location"]
PrChecker2("PrChecker2Fast").VeloTracks = defTracks["Velo"]["Location"]
#PrChecker2("PrChecker2Fast").NewTracks = defTracks["VeloFitted"]["Location"]
#PrChecker2("PrChecker2Fast").ForwardTracks = defTracks["ForwardFast"]["Location"]
PrChecker2("PrChecker2Fast").Eta25Cut = True
PrChecker2("PrChecker2Fast").GhostProbCut = 0.9
# PrChecker2("PrChecker2Fast").WriteTexOutput = True
@@ -68,4 +72,8 @@ def PrUpgradeChecking(defTracks={}):
from Configurables import TrackResChecker
GaudiSequencer("CheckPatSeq").Members += [ TrackResChecker("TrackResCheckerFast")];
TrackResChecker("TrackResCheckerFast").HistoPrint = False
TrackResChecker("TrackResCheckerFast").TracksInContainer = defTracks["ForwardFastFitted"]["Location"]
\ No newline at end of file
TrackResChecker("TrackResCheckerFast").TracksInContainer = defTracks["ForwardFastFitted"]["Location"]
log.warning("Pre-appending a track copy in TES from vector<Track> to KeyedContainer to allow truth matching, this is an hack, not a final solution")
from Configurables import PrTrackConverter
GaudiSequencer("MCLinksTrSeq").Members.insert(0, PrTrackConverter() )
Loading