Ejemplo n.º 1
0
 def configureSelector(self, a):
     from Configurables import ITTrackSelector
     a.Selector = ITTrackSelector()
     a.Selector.RequireOverlap = True
     a.Selector.MinPCut = 5000
     a.Selector.TrackTypes = ["Long"]
     if self._fitted:
         a.Selector.MaxChi2Cut = 5
         a.Selector.MaxChi2PerDoFMatch = 5
         a.Selector.MaxChi2PerDoFVelo = 5
         a.Selector.MaxChi2PerDoFDownstream = 5
alignSelectorA.Selector.MaxChi2PerDoFVelo = 5
alignSelectorA.Selector.MaxChi2PerDoFDownstream = 5
alignSelectorA.Selector.MinNTTHits = 3
alignSelectorA.Selector.MinPCut = 5000
alignSelectorA.Selector.MaxPCut = 200000
alignSelectorA.Selector.MinPtCut = 2000
alignSelectorA.Selector.TrackTypes = ["Long", "Downstream", "Upstream"]
alignSelectorA.Selector.TrackTypes = ["Long", "Downstream"]
alignSelectorA.Selector.TrackTypes = ["Long"]
alignSelectorAlgs.append(alignSelectorA)

#this one selects specifically overlap tracks. we only take T-tracks with overlaps
alignSelectorB = TrackListRefiner("AlignSelectorB",
                                  inputLocation="Rec/Track/Best",
                                  outputLocation="Rec/Track/AlignTracksB",
                                  Selector=ITTrackSelector())
alignSelectorB.Selector.RequireOverlap = True
alignSelectorB.Selector.MinPCut = 10000
alignSelectorB.Selector.MaxPCut = 200000
alignSelectorB.Selector.MinPtCut = 500
alignSelectorB.Selector.MaxChi2Cut = 5
alignSelectorB.Selector.MaxChi2PerDoFMatch = 5
alignSelectorB.Selector.MaxChi2PerDoFVelo = 5
alignSelectorB.Selector.MaxChi2PerDoFDownstream = 5
alignSelectorB.Selector.MinNTTHits = 3
alignSelectorB.Selector.TrackTypes = ["Long", "Downstream", "Ttrack"]
alignSelectorB.Selector.TrackTypes = ["Long"]
alignSelectorAlgs.append(alignSelectorB)

#this one selects specifically overlap tracks. we only take T-tracks with overlaps
alignSelectorITMod = TrackListRefiner(